lp:~smoser/cloud-init/trunk.mcollective-cleanup
- Get this branch:
- bzr branch lp:~smoser/cloud-init/trunk.mcollective-cleanup
Branch merges
- Server Team CI bot: Needs Fixing (continuous-integration)
- Sergii Golovatiuk (community): Approve
- cloud-init Commiters: Pending requested
-
Diff: 298 lines (+176/-62)2 files modifiedcloudinit/config/cc_mcollective.py (+52/-44)
tests/unittests/test_handler/test_handler_mcollective.py (+124/-18)
Branch information
Recent revisions
- 1257. By Scott Moser
-
add some tests and cleanups for mcollective
Things here:
- restart rather than 'start' the service, to pick up a config change
that we would have written.
- update the config and write cert files whether or not the file
existed on the system.
- improve test coverage - 1256. By Scott Moser
-
improvements to eni rendering
Some improvements here, and some bug fixes.
- bring curtin revno 394's to support post-up for interface aliases.
- sort attributes per interface for nicer order and consistent rendering
- use arrays for each 'section' rather than content += . This allows
better separation of the sections and also will perform better as long
strings with += are slow.
- improve how 'lo' is handled. If a network state that was being rendered
had an entry for 'lo', then the rendered ENI would have 2 'lo'
sections.
- no longer skip 'lo' sections when loading an ENI in parse_deb_config
- fix inet value for subnets, don't add interface attributes to alias
(LP: #1588547)Also add some tests of reading yaml and rendering ENI.
- 1255. By Scott Moser
-
ConfigDrive: fix writing of 'injected' files and legacy networking
Previous commit inadvertently disabled the consumption of 'injected' files
in configdrive (openstack server boot --file=/target/ file=local- file)
unless the datasource was in 'pass' mode. The default mode is 'net' so
that was not likely to happen.Also here are:
a.) some comments to apply_network_config b.) add backwards compatibility for distros that do not yet implement
apply_network_ config by converting the network config into ENI format
and calling apply_network.This is required because prior to the previous commit, those distros
would have had 'apply_network' called with the openstack provided
ENI file. But after this change they will have apply_network_config
called by cloudinit's main.c.) add network_
state_to_ eni for converting net config to eni
it supports the not-actually-correct 'hwaddress' field in ENI - 1254. By Scott Moser
-
Fix mcollective module with python3
fixes mcollective when used with python3 and also adds a unit test.
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