~raphael-glon/cloud-init:master

Last commit made on 2019-03-06
Get this branch:
git clone -b master https://git.launchpad.net/~raphael-glon/cloud-init
Only raphael.glon can upload to this branch. If you are raphael.glon please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~raphael-glon/cloud-init

Recent commits

1af82aa... by raphael.glon on 2019-03-05

Unittests: add bond rendering test for eni config

aa64677... by raphael.glon on 2019-03-06

Fix net/eni static routes for ipv6

this fixes:
    https://bugs.launchpad.net/cloud-init/+bug/1818669
    eni: post-up/pre down commands were not correct for ipv6

unittests: additional test to check the
rendered static routes for eni config

43f5850... by zolti on 2019-03-06

Example for Microsoft Azure data disk added.

109772c... by Dan Watkins on 2019-03-04

clean: correctly determine the path for excluding seed directory

Previously, init.paths.cloud_dir has a trailing slash, which meant that
"/var/lib/cloud//seed" was being compared to "/var/lib/cloud/seed" and
(of course), never matching.

In this commit, switch to using os.path.join to avoid this case (and
update the tests to catch it in future).

LP: #1818571

5352dd9... by Dan Watkins on 2019-03-04

helpers/openstack: Treat unknown link types as physical

Some deployments of OpenStack expose link types to the guest which
cloud-init doesn't recognise. These will almost always be physical, so
we can operate more robustly if we assume that they are (whilst warning
the user that we're seeing something unexpected).

LP: #1639263

edf052c... by Dan Watkins on 2019-03-04

drop Python 2.6 support and our NIH version detection

- Remove the last few places that use `if PY26`
- Replace our Python version detection logic with six's (which we were
  already using in most places)

eee0e09... by Ryan Harper on 2019-03-04

tip-pylint: Fix assignment-from-return-none errors

pylint now complains about assignment of None from a
return of a function call. This does not account for subclassing
so we resolve this issue by removing the assignment in the unittest.

bd35300... by Kurt Stieger on 2019-03-04

net: append type:dhcp[46] only if dhcp[46] is True in v2 netconfig

When providing netplan configuration to cloud-init, the internal
network state would enable DHCP if the 'dhcp' key was present in
the source config. In netplan, dhcp[46] is a boolean and the
value of the boolean should control whether DHCP is enabled rather
than the presence of the key. This issue leaded to inconsistant
sysconfig/network-scripts on fedora. 'BOOTPROTO' was always 'dhcp',
even if the address config was static.

After this change a dhcp subnet is added only if the 'dhcp' setting
in source cfg dict is True.

LP: #1818032

f2f530e... by Dan Watkins on 2019-02-27

cc_apt_pipelining: stop disabling pipelining by default

This was introduced due to Ubuntu using S3 mirrors, and S3 having a
buggy pipelining implementation. Those Ubuntu mirrors are no longer in
production and, furthremore, apt has also grown the ability to handle
servers with broken pipelining.

As such, we can stop disabling pipelining, which should result in
improved apt download speeds.

LP: #1794982

1182ad5... by Dan Watkins on 2019-02-26

tests: fix some slow tests and some leaking state

In test_ds_identify, don't mutate otherwise-static test data. When
running tests in a random order, this was causing failures due to
breaking preconditions for other tests.

In tests/helpers, reset logging level in tearDown. Some of the CLI
tests set the level of the root logger in a way that isn't correctly
reset.

For test_poll_imds_re_dhcp_on_timeout and
test_dhcp_discovery_run_in_sandbox_warns_invalid_pid, mock out
time.sleep; this saves ~11 seconds (or ~40% of previous test time!).