lp:~smoser/cloud-init/trunk.net1
- Get this branch:
- bzr branch lp:~smoser/cloud-init/trunk.net1
Branch merges
Branch information
Recent revisions
- 1214. By Scott Moser
-
some final changes
a.) do not write systemd link files if we do not have a mac address.
the check is updated to check for value rather than just presense
(ie, 'mac_address': None)b.) DataSourceNoClo
udNet: search in the nocloud seed dir
this is important because NoCloud if dsmode is Net will look only
would pass by, expecting NoCloudNet to pick it up
but NoCloudNet would not look in /var/lib/cloud/seed/ nocloud
and thus skip it.c.) support the disabling of network configuration
via /var/lib/cloud/data/ upgraded- network
This is what the package upgrader is writing. - 1212. By Scott Moser
-
support reading network config from kernel command line
This adds support for suppling network configuration on the
kernel command line in 2 ways:
a.) kernel command line includes 'network-config= <base64> '
value of that parameter is base64 encoded json (or yaml)
it is taken as network config yaml.
In order to save space on kernel command line, it can be
base64 encoded gzipped json also.b.) ip= paired with files authored by klibc's ipconfig tool
When network devices are brought up in the initramfs, klibc's
ipconfig tool writes files are named /run/net-<DEVNAME> .conf.
The best documentation available on that tool is
/usr/share/doc/ libklibc/ README. ipconfig. gz. Also changes util.get_cmdline() to return the command line of
pid 1 if it is in a container. That is to make it consistent with
The systemd generator, and allow passing a command line to lxd,
as lxd does not mask /proc/cmdline. - 1211. By Scott Moser
-
ConfigDrive: convert OpenStack network_data.json to network_config.yaml
OpenStack clouds may provide network_data.json information via the
MetadataService in ConfigDrive.Teach ConfigDrive to read, store and convert the data into network_config
yaml format. Making this available allows cloud-init to read network
config from OpenStack and use the distro.apply_network_ config( ) method to
render the network_config from OpenStack into a distro network
configuration file. - 1209. By Scott Moser
-
provide datasource.
check_instance_ id with access to system config Changing this interface to allow for easy change later.
The thing that this will enable is:
a.) maas datasource to look at the system config and see if it
is configured with the same consumer_key
b.) datasource config could allow setting a variable that it
would look at. - 1208. By Scott Moser
-
trust existing datasource in modules or single
This fixes a bug where modules mode was not passing a 'existing'
flag to fetch. fetch had existing default to 'check'.
The DataSourceNoCloud when fed with data from a disk will return
False to check() as it is not a guarantee'd hit.That caused fetch to go looking for a new datasource.
That would have actually worked, but modules and single create
the Init with deps=[]. So it went looking for Datasources
that matched those deps, and only found DataSourceNone.I'm going to keep having modules and single specify deps=[]
as that will prevent them from going to look for a DS and
further making things worse.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~cloud-init-dev/cloud-init/trunk