summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-26Python 3 tests pass, except for skips.Barry Warsaw
2015-01-26Down to it.Barry Warsaw
2015-01-26Another handling of b64decode.Barry Warsaw
Also, restore Python 2 compatibility.
2015-01-26* More str/bytes fixes.Barry Warsaw
* Temporarily skip the MAAS tests in py3 since they need to be ported to oauthlib.
2015-01-26More Python 3 test fixes.Barry Warsaw
2015-01-26Avoid a nose bug when running under the test suite and no exception is inBarry Warsaw
flight.
2015-01-26Fix a few string/bytes problems with Python 3.Barry Warsaw
2015-01-26More test repairs.Barry Warsaw
2015-01-23* Fix the filter() imports.Barry Warsaw
* In Py3, pass universal_newlines to subprocess.Popen()
2015-01-22Low hanging Python 3 fruit.Barry Warsaw
2015-01-22Conversion from mocker to mock completed.Barry Warsaw
2015-01-22More conversions from mocker to mock.Barry Warsaw
2015-01-22More conversions from mocker to mock.Barry Warsaw
2015-01-22More test ports from mocker to mock.Barry Warsaw
2015-01-22Clean up.Barry Warsaw
2015-01-22Convert helpers.py and test_data.py from mocker to mock.Barry Warsaw
2015-01-22Use .addCleanup() instead of a .tearDown() where appropriate, although weBarry Warsaw
might have to rewrite this for Python 2.6. Disable Cepko tests (test_cs_util.py) since they are essentially worthless. Convert test_azure to unittest.mock.
2015-01-22Port test__init__.py to unittest.mock.Barry Warsaw
2015-01-21Largely merge lp:~harlowja/cloud-init/py2-3 albeit manually because it seemedBarry Warsaw
to be behind trunk. `tox -e py27` passes full test suite. Now to work on replacing mocker.
2015-01-21More octal literal fixes.Barry Warsaw
2015-01-21Fix file modes to be Python 2/3 compatible.Barry Warsaw
2015-01-21Only install cheetah (and only run the cheetah templating test) when in PythonBarry Warsaw
2. Cheetah is not compatible with Python 3.
2015-01-21* Added a simple tox.ini fileBarry Warsaw
* Use universal_newlines in setup.py so it will work properly in Python 3. * Fix a pyflakes complaint in setup.py * Add a simple MANIFEST.in
2015-01-16hostname: apply hostname same as is writtenScott Moser
on RHEL, we were writing to persistent configuration the fqdn, but invoking 'hostname' on the first boot with just the shortname. On 'reboot', then the hostname would differ. Now, whatever we write, invoke hostname with. Also remove some duplicate code. LP: #1246485
2015-01-16pep8 fixesScott Moser
2015-01-16systemd: run cloud-init before systemd-user-sessions.serviceSteve Langasek
This fixes a race condition that can cause cloud-init output to be spit out over the login prompt on the console when booting under systemd.
2015-01-16Use systemd-user-sessions.service for sequencing, not getty.target, for ↵Steve Langasek
correct race-free ordering
2015-01-15Ensure that when running under systemd, cloud-init.service is run before weSteve Langasek
display any getty on the console so that the cloud-init output doesn't get written on top of a login prompt.
2015-01-15Use the GCE short hostname.Scott Moser
Google Compute Engine fqdn hostnames are usually longer than 64 characters. This causes issues with many tools (often Java based). Note that per gethostname(2): POSIX.1-2001 guarantees that "Host names (not including the terminating null byte) are limed to HOST_NAME_MAX bytes". On Linux, HOST_NAME_MAX is defined with the value 64. LP: #1383794
2015-01-14Use the short name for GCE hostnames per GCE's request (LP: #1383794).Ben Howard
2015-01-06Enable user-data encoding support for GCE.Scott Moser
Enable user-data encoding support for GCE. Extended and updated tests to support checking the user-data encoding. User can now pass in user-data encoded in base64 and indicate they've done so by adding a tag 'user-data-encoding' with value 'base64'. LP: #1404311
2015-01-06remove the user-data-encoding from test meta-dataScott Moser
just so we don't come to rely on it being set to 'base64' or ''. rather the default case is that it wont be present at all.
2015-01-06merge from trunkScott Moser
2015-01-06tools/run-pep8: remove leading ',' fed to --ignoreScott Moser
--ignore was being called with ',E121,E...' rather than 'E121,E...'. that resulted in odd behavior, missing the pep8 errors that are fixed here.
2015-01-06pep8Scott Moser
2015-01-06Corrected errant logging message.Wayne Witzel III
2014-12-19add user-data encoding support for gceWayne Witzel III
2014-12-09tools/ccfg-merge-debug: fix for updated user-data/vendor-dataScott Moser
this was broken previously when user-data and vender-data were brought together.
2014-12-01Cleanups for netinfo.pyJoshua Harlow
- Handle ipv6 route information not existing gracefully (for systems that don't have it) - Fix the getgateway function (broken due to ipv4/ipv6 keys now existing in route info) - Separate the centering of the route info ipv4 information from the centering of the ipv6 information so that this looks prettier... - Use try: except: else instead of settings value to None and then later checking for None (more pythonic this way)
2014-11-30Fix some whitespace issuesJoshua Harlow
2014-11-30Fix the ipv6 header centeringJoshua Harlow
2014-11-30Fix the getgateway functionJoshua Harlow
After the routeinfo function started to return a dictionary containing ipv4 and ipv6 information we now need to make sure we search the appropriate key.
2014-11-30Be more tolerant of missing informationJoshua Harlow
Instead of failing when IPv6 information is not found we should be more tolerant of said information not existing so that we behave like the pre IPv6 addition.
2014-11-25Fixes rpm spec file build issues (its not currently building).Joshua Harlow
Currently the rpm building process that cloud-init provides is not working correctly. This adjusts the spec file, the setup.py file and the distro files to ensure that it continues to work as expected.
2014-11-25Update with trunk and resolve conflictsJoshua Harlow
2014-11-24Use assertNotEqual which exists on python2.6Joshua Harlow
Instead of using assertGreater which is new on python2.7 just use assertNotEqual which does exist on python2.6 to perform the same/similar operation. This makes the unittest not break on python2.6
2014-11-24IPv6 support for rhel distroJoshua Harlow
When the ubuntu networking info file has ipv6 addresses inside it we need to make sure that we parse that information out and place it (at least) in the rhel network configuration writing. In later patches the other distros that use this parsed network configuration will likely also need to be updated (ubuntu and debian already should function as expected with regard to ipv6 support).
2014-11-24Updated unittestsShraddha Pandhe
+ Scenario with multiple NICs
2014-11-24IPv6 support for rhel distroShraddha Pandhe
- Saw an issue in my earlier commit with multiple NICs. This commit fixes that issue, along with the indentation issue
2014-11-22Update to use a newer and better OMNIBUS_URLJoshua Harlow
This is minor change which uses the new Chef (company) top level domain for grabbing the Omnibus installation shell script.