~raharper/cloud-init:fix/ephemeral-dhcp-static-routes

Last commit made on 2019-07-16
Get this branch:
git clone -b fix/ephemeral-dhcp-static-routes https://git.launchpad.net/~raharper/cloud-init
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Branch information

Name:
fix/ephemeral-dhcp-static-routes
Repository:
lp:~raharper/cloud-init

Recent commits

24e1632... by Ryan Harper

parse_static_routes: on parsing error return parsed static routes like dhclient

3a9ec1a... by Ryan Harper

Log and error if netlength is invalid

b5a4708... by Ryan Harper

rfc3442: update docstring to indicate inclusion of net length

7ff9772... by Ryan Harper

RFC3442: add additional unittests and error logging

Adding additional unittests for parsing of RFC3442 format.
  - Fix missing net_length for class a, b, c routes
  - Removed hard-coded net_length for default routes
  - Log an error with details on what failed during parsing

20187bf... by Ryan Harper

address feedback on parsing rfc3442

dhcp.py/parse_static_routes:
 - Fix comments to match code and correct values
 - Always return a list type
 - Reduce parsing of the result but returning a list of tuples
   containing the network address and the gateway.
 - fix unittests

d8ea5dc... by Ryan Harper

net: add rfc3442 (classless static routes) to EphemeralDHCP

The EphemeralDHCP context manager did not parse or handle
rfc3442 classless static routes which prevented reading
datasource metadata in some clouds. This branch adds support
for extracting the field from the leases output, parsing the
format and then adding the required iproute2 ip commands to
apply (and teardown) the static routes.

LP: #1821102

deaeb71... by Mark T. Voelker

Allow identification of OpenStack by Asset Tag

When OpenStack is deployed on some hypervisors (such as VMware
vSphere), cloud-init doesn't detect that it needs to probe the
metadata service because the DMI product name field can't be set
to a field that is recognized by cloud-init. However, the asset
tag field can be set via flavor extra specs or image metadata.
A similar approach is already used to identify Open Telekom Cloud.

This patch allows cloud init to recognize "OpenStack Nova" or
"OpenStack Compute" in the asset tag field as an indication that
the instance being configured is running on an OpenStack platform.

LP: #1669875

c3cd42c... by Brian Murray

Fix spelling error making 'an Ubuntu' consistent.

19ddb1f... by Paride Legovini

run-container: centos: comment out the repo mirrorlist

In this way only the 'baseurl' mirror is used, which is easier
to allow through firewalls and proxies.

ded1ec8... by Ryan Harper

netplan: update netplan key mappings for gratuitous-arp

Previous versions of netplan included a misspelling for the
bond parameter around gratuitous-arp. This has been fixed and released
and cloud-init needs to accept both values. This branch fixes the
key that will be rendered and transforms the previous misspelling
when capturing network_state.

LP: #1827238