summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-27Respond to review:Barry Warsaw
- Remove str() wrappers to second argument to write_files() where it is no longer necessary. Also: Fixed a couple of other octal literals which clearly weren't being tested.
2015-01-26super() works in all of Python 2.6, 2.7, and 3.4.Barry Warsaw
2015-01-26Repair the Python 2.6 tests.Barry Warsaw
2015-01-26Trunk merged and ported.Barry Warsaw
2015-01-26Port the MAAS code to oauthlib.Barry Warsaw
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-22remove dependency on dmidecode on linuxScott Moser
on linux we can read dmi information from /sys rather than using dmidecode binary, and thus removing a dependency.
2015-01-22merge from trunkScott Moser
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-21Use either syspath or dmidecode based on the availability.Ben Howard
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-14Drop reliance on dmidecode executable.Ben Howard
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