Created by Ryan Harper on 2016-05-24 and last modified on 2016-05-24
Get this branch:
bzr branch lp:~raharper/cloud-init/trunk.network-data-bridge
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Ryan Harper

Recent revisions

1219. By Ryan Harper on 2016-05-24

ConfigDrive: Add support for "bridge" link types

Openstack Mikata LinuxBridge mode emits links with type: bridge
which need conversion into network config bridge. This patch
creates the require keys and copies in any keys from network_data.json
that start with 'bridge'. It's unclear whether the OpenStack
LinuxBridge mode provides the ability to attach interfaces to the
bridge so we do not attempt to populate the key 'bridge_interfaces' with
a specific value at this time.

1218. By Matt Fischer on 2016-05-17

Document improvements for runcmd/bootcmd

Note that runcmd runs only on first boot.
Note that strings need to be quoted, not escaped.
Switch bootcmd list text to use - not * like everything else.

1217. By Joshua Harlow on 2016-05-12

Enable flake8 and fix a large amount of reported issues

1216. By Scott Moser on 2016-05-06

fix timestamp in reporting events.

If no timestamp was passed into a ReportingEvent, then the default was
used. That default was 'time.time()' which was evaluated once only at
import time.

1215. By Scott Moser on 2016-04-29

Paths: fix instance path if datasource's id has a '/'.

If the datasource's instance id contained a '/' then the instance_id path
would not be as expected under /var/lib/cloud/instances/instance_id.

1214. By Scott Moser on 2016-04-29

Config Drive: fix check_instance_id signature.

After reboot cloud-init would fail as the previously pickled object
would have a check_instance_id signature but it didn't match expected

1213. By Dan Watkins on 2016-04-29

cloudstack: Only use DHCPv4 lease files as a datasource

1212. By Scott Moser on 2016-04-15

network: do not write interface as 'auto' from ip= on command line.

When ip= on the kernel command line defines the networking, set
those network devices to be manually controlled, instead of 'auto'.

The reason for this is that if they're marked as 'auto':
 a.) a second attempt will be made to ifup them.
 b.) they'll be brought down on shutdown

'b' is problematic on network root filesystem.

Also this picks up 2 changes from curtin's net module:
  - Cleanup newline logic so we always have a clean '\n\n' between stanza
  - Add a unittest to validate bonding network config render, specifically
    when to emit auto $iface for dependent bond slaves.

1211. By Scott Moser on 2016-04-15

apply networking less often

Do not apply networking configuration whenever a previous datasource
has been loaded from disk and found to be valid (via positive
 return 'check_instance_id' or user configuration of manual_cache_clean).

This effectively means that we apply fallback networking only once
per instance rather than every boot on any datasource with
'check_instance_id' implemented.

1210. By Scott Moser on 2016-04-15

networking: no longer delete eth0.cfg on debian/ubuntu

Ubuntu cloud images in created a file during build that
would interfere with cloud-init's discovered or rendered networking.
To avoid the issues, cloud-init was deleting
/etc/network/interfaces.d/eth0.cfg .

The build process no longer creates this file.
However, to address any existing files cloud-init will still remove
the file if it has known content and warn otherwise.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.