Last commit made on 2017-02-17
Get this branch:
git clone -b fix/LP1665773 https://git.launchpad.net/~slystopad/cloud-init
Only Serg Lystopad can upload to this branch. If you are Serg Lystopad please log in for upload directions.

Branch merges

Branch information


Recent commits

f935f23... by Serg Lystopad

Fixes configuration example for cc_set_passwords module

LP: #1665773

da25385... by Scott Moser

flake8: fix flake8 complaints in previous commit.

f81d6c7... by Lars Kellogg-Stedman

net: correct errors in cloudinit/net/sysconfig.py

There were some logic errors in sysconfig.py that appear to be the
result of accidentally typing "iface" where it should have been
"iface_cfg". This patch corrects those problems so that the module
can run successfully.

LP: #1665441
Resolves: rhbz#1389530

91be1d1... by Scott Moser

ec2_utils: fix MetadataLeafDecoder that returned bytes on empty

the MetadataLeafDecoder would return a bytes value b'' instead of
an empty string if the value of a key was empty. In all other cases
the value would be a string.

This was discovered when trying to json.dumps(get_instance_metadata())
on a recent OpenStack, where the value of 'public-ipv4' was empty.
The attempt to dump that with json would raise
 TypeError: b'' is not JSON serializable

1cd8cfa... by Scott Moser

apply the runtime configuration written by ds-identify.

When the ds-identify code landed, it started writing /run/cloud.cfg
but at the moment, nothing was reading that. The result is that
ds-identify only worked to disable cloud-init entirely.

65529b6... by Scott Moser

ds-identify: fix checking for filesystem label

has_fs_with_label regressed when refactoring to not have leading
and trailing , in DI_FS_LABELS.

LP: #1663735

e6098c2... by Scott Moser

ds-identify: read ds=nocloud properly

The nocloud datasource specifically would look for ds=nocloud or
ds=nocloud-net (often augmented with 'seedfrom') on the kernel command line.
Fix to return DS_FOUND in that case.

LP: #1663723

0df21b6... by Scott Moser

support nova-lxd by reading platform from environment of pid 1.

Nova lxd will now put the environment variable 'platform' into
pid 1's environment to the value 'OpenStack Nova', which is the same as
you would find in kvm guests.

LP: #1661797

7f85a3a... by Scott Moser

ds-identify: change aarch64 to use the default for non-dmi systems.

aarch64 does support dmi, but OpenStack does not populate guests
with this information, and there are currently bugs in qemu preventing
it from working correctly see bug #1663304 for more information.

So, for the time being, pretend as if there is no dmi data on aarch64,
which will make it enable cloud-init even when no datasources are found.

3bcb72c... by Joshua Powers

Remove style checking during build and add latest style checks to tox

- make check will no longer run the style checks, that way package builds
  wont fail on a style difference in versions of the style tools in
  that distro.
- created style-check make file target to continue to run pep8 and pyflakes
- added tox envs 'tip-pycodestyle' and 'tip-pyflakes' to run latest style
  checking. These are not enabled by default run of tox.

LP: #1652329