~chad.smith/cloud-init:feature/azure-network-per-boot

Last commit made on 2018-08-14
Get this branch:
git clone -b feature/azure-network-per-boot https://git.launchpad.net/~chad.smith/cloud-init
Only Chad Smith can upload to this branch. If you are Chad Smith please log in for upload directions.

Branch merges

Branch information

Name:
feature/azure-network-per-boot
Repository:
lp:~chad.smith/cloud-init

Recent commits

d838fd9... by Chad Smith

avoid repetition with checking net.is_up or using EphemeralDHCPv4 context manager

c762ca7... by Chad Smith

drop systemd-detect-virt option from azure._is_viable_platform

8f970e6... by Chad Smith

_is_platform_viable returns True if default seed dir has ovf-env.xml

a89229b... by Chad Smith

pycodestyle: too many blank lines

59c62bd... by Chad Smith

drop LABEL=rd_rdfe_* disk prefix check as we think it is obsolete

3bb048e... by Chad Smith

update_events is a set

c1152c7... by Chad Smith

address smoser's review comments

- only remove ubuntu cloud-image scripts after a successful crawl_metadata
- tweak Azure._is_platform_viable to return false if virt-detect != microsoft

ee224a6... by Chad Smith

azure: allow azure to generate network configurati from IMDS per boot

Azure datasource now queries IMDS metadata service for network
configuration at link local address
http://169.254.169.254/metadata/instance?api-version=2017-12-01. The
azure metadata service presents a list of macs and allocated ip addresses
associated with this instance. Azure will now also regenerate network
configuration on every boot because it subscribes to EventType.BOOT
maintenance events as well as the 'first boot'
EventType.BOOT_NEW_INSTANCE.

For testing add azure-imds --kind to cloud-init devel net_convert tool
for debugging IMDS metadata.

Also refactor _get_data into 3 discrete methods:
  - is_platform_viable: check quickly whether the datasource is
    potentially compatible with the platform on which is is running
  - crawl_metadata: walk all potential metadata candidates, returning a
    structured dict of all metadata and userdata. Raise InvalidMetaData on
    error.
  - _get_data: call crawl_metadata and process results or error. Cache
    instance data on class attributes: metadata, userdata_raw etc.

f624927... by Wesley Gao

docs: Fix example cloud-init analyze command to match output.

Fix a typo in in documentation that showed 'analyze blame' but
intended to show 'analyze dump'.

41f508d... by Scott Moser

netplan: Correctly render macaddress on a bonds and bridges when provided.

When converting network config v1 to netplan, we were not correctly
rendering the 'macaddress' key on a bond. Not that the difference
in spelling between v1 'mac_address' and v2 'macaddress' is intentional.
Also fixed here is rendering of the macaddress for bridges.

LP: #1784699