~wesley-wiedenmeier/cloud-init:integration-testing-tmpdir

Last commit made on 2017-03-30
Get this branch:
git clone -b integration-testing-tmpdir https://git.launchpad.net/~wesley-wiedenmeier/cloud-init
Only Wesley Wiedenmeier can upload to this branch. If you are Wesley Wiedenmeier please log in for upload directions.

Branch merges

Branch information

Name:
integration-testing-tmpdir
Repository:
lp:~wesley-wiedenmeier/cloud-init

Recent commits

735e7bc... by Wesley Wiedenmeier

Integration Testing: improve handling of collected data during run

Previous behavior for run was to collect data into a temporary directory which
was always deleted when tests passed. This adds a command line option
'--preserve-data' that ensures that collected data will be left after tests
run. This also allows the directory to store collected data in during the run
command to be specified using '--data-dir'. This also includes updated
documentation for run tmpdir handling.

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

e80dbb8... by Scott Moser

apt_configure: run only when needed.

Do not bother configuring apt if no 'apt' config is provided and either:
 a.) running on snappy
 b.) there is no 'apt' command (possibly a different distro)

If apt config is provided in either of the above situations, then config
will continue.

LP: #1675185

dab9d6e... by Scott Moser

OpenStack: identify OpenStack by product 'OpenStack Compute'.

OpenStack clouds installed with RedHat RDO have the nova product
configured in /etc/nova/release to be 'OpenStack Compute' rather than
upstream nova default of 'OpenStack Nova'.

This was first reported on Finnish provider Nebula (http://nebula.fi).

LP: #1675349

328fe5a... by Scott Moser

GCE: Search GCE in ds-identify, consider serial number in check.

While documentation indicates that the smbios product name should
contain 'Google Compute Engine', experimentation and bug reports
indicate that is not always the case. The change here is to change
the check for GCE to also consider a serial number that starts with
'GoogleCompute-'.

Also, ds-identify was not currently searching for GCE if no config of
datasource_list was found. Most images have a datasource_list defined.
So update the list to include GCE.

LP: #1674861