~jgrimm/cloud-init:fix_chef_example_source

Last commit made on 2017-03-31
Get this branch:
git clone -b fix_chef_example_source https://git.launchpad.net/~jgrimm/cloud-init
Only Jon Grimm can upload to this branch. If you are Jon Grimm please log in for upload directions.

Branch merges

Branch information

Name:
fix_chef_example_source
Repository:
lp:~jgrimm/cloud-init

Recent commits

08b55ba... by Jon Grimm

Merge branch 'fix_chef_example_source' of ssh://git.launchpad.net/~jgrimm/cloud-init into fix_chef_example_source

0ac7043... by Jon Grimm

Fix examples that reference upstream chef repository.

Also add integration test. Note: this new test is not comprehensive; it
simply ensures that the example chef configuration does not blow up and
that chef seems to be installed after its completion.

This new test is disabled by default as it depends on a 3rd party repository.

LP: #1678145

445a520... by Jon Grimm

Fix examples that reference upstream chef repository.

Also add integration test. Note: this new test is not comprehensive; it
simply ensures that the example chef configuration does not blow up and
that chef seems to be installed after its completion.

This new test is disabled by default as it depends on a 3rd party repository.

LP: #1678145

5442b51... by Scott Moser

tests: update OpenNebula and Digital Ocean to not rely on host interfaces.

Mock the use use of get_interfaces_by_mac in Digital Ocean and OpenNebula.
Its best to mock this for the tests as the results aren't expecting
it to fail.

Note, as it stands, OpenNebula relies on devices named 'eth0'.
The metadata (context) does not provide mac addresses.

d23543e... by Scott Moser

net: in netplan renderer delete known image-builtin content.

When rendering network configuration to netplan, remove known
"builtin" configurations. The specific example here is Ubuntu Core
that has netplan configuration in etc/netplan/00-snapd-config.yaml.

We also delete the derived files since netplan will have created
these derived files in its generator that runs well before cloud-init.

LP: #1675576

b704110... by David Tagatac

doc: correct grammar in capabilities.rst

a68e7d5... by Scott Moser

ds-identify: fix detecting of maas datasource.

The reading of MAAS datasource configuration was simply broken.
it was looking in /etc/cloud/*maas*.cfg rather than
/etc/cloud/cloud.cfg.d/*maas*.cfg.

along side here there is also:
 * doc improvement on check_config
 * remove the path restrictions when searching for values in both
   maas and ovf_vmware_guest_customization. that was done to improve
   performance as check_config's parsing is slow.
 * change to maas to search all config files rather than restricting
   to a subset as it tried before. that was done for
 * better variable names.
    - rename path_cloud_confd to path_etc_cloud
    - PATH_ETC_CLOUD: /etc/cloud
    - PATH_ETC_CI_CFG: /etc/cloud/cloud.cfg
    - PATH_ETC_CI_CFG_D: /etc/cloud/cloud.cfg.d

LP: #1677710

18762d7... by Ryan Harper

netplan: remove debugging prints, add debug logging

Remove debugging print statements. Change a few to use
logging.debug() where useful.

32b21ee... by Scott Moser

ds-identify: do not write None twice to datasource_list.

If the only the None datasource was listed in datasource_list, then
ds-identify would write a cloud.cfg witih:
 datasource_list: [None, None]

The fix is to just append None if the list only has None.

0e2030c... by Steve Langasek

support resizing partition and rootfs on system booted without initramfs.

When booted without an initramfs, the root device will be /dev/root, not a
named device. There is partial support for this when resizing filesystems,
but not for growing partitions, without which it doesn't do much good. Move
the /dev/root resolution code to util.py and use it from cc_growpart.py.

Also, booting without an initramfs only works with a root= argument that's
either a kernel device name (which is unstable) or a partition UUID. Handle
the case of root=PARTUUID=value, not just LABEL and UUID.

LP: #1677376