lp:~sgolovatiuk/cloud-init/fix_mcollective
- Get this branch:
- bzr branch lp:~sgolovatiuk/cloud-init/fix_mcollective
Branch merges
- cloud-init Commiters: Pending requested
-
Diff: 180 lines (+105/-31)2 files modifiedcloudinit/config/cc_mcollective.py (+45/-31)
tests/unittests/test_handler/test_handler_mcollective.py (+60/-0)
Related bugs
Bug #1597699: cc_mcollective.py fails on Ubuntu16.04 | High | Fix Released |
Related blueprints
Branch information
Recent revisions
- 1248. By Sergii Golovatiuk
-
Change StringIO to BytesIO in cc_mcollective.py
* StringIO from six doesn't act as 'binary stream' in Python 3.
This patch changes StringIO to BytesIO to have code compatible with
Python 3 and Python 2.
* Add try/except for IOError in case when server.cfg doesn't exists. This is
necessary for unit tests or cases when server.cfg is not included to package
* Add UnitTest for cc_mcollective.py - 1247. By Scott Moser
-
distros/debian.py: fix calling of eni renderer to not render link files
Under revno 1243 a failed attempt was made to not render systemd.link
files into /etc/systemd/network/ . The 'config' that was passed in was
incorrect though, and resulted in link files still getting rendered.(original bug was LP: #1594546).
- 1246. By Scott Moser
-
fix restoring from a datasource that did not have dsmode
On upgrade and reboot, if datasource restored from obj.pkl did not have
a dsmode attribute, then 'init --local' would fail due to stack trace. - 1245. By Scott Moser
-
user_data: fix error when user-data is not utf-8 decodable
when user-data was not decodable, cloud-init would raise exception.
This also changes the signature of user_data.convert_ string.
The 'headers' argument was never used, and woudl have been broken
if it was, as it was expected to be a dictionary but then was
passed in with *headers. - 1244. By Scott Moser
-
write_files: if no permissions are given, just use default without warn.
if no permissions were given in a write_files stanza, then
a warning would be emitted.The fix here is just to special case handling of None.
- 1243. By Scott Moser
-
do not render systemd.link files
When fixing bug 1579130, we made cloud-init rename devices itself,
rather than relying on the systemd.link files to do that.
That was necessary to
- rename devices in a container
- rename devices on first boot or in any situation when the
link files in the initramfs were stale.However, cloud-init was still writing .link files like:
/etc/systemd/network/ 50-cloud- init-ens2. link That leads to just a confusing situation as cloud-init will trump
any renaming systemd does in all cases.Also added here is a header into the rendered ENI file:
/etc/network/interfaces. d/50-cloud- init.cfg that describes how to disable cloud-init networking.
- 1242. By Scott Moser
-
support network rendering to sysconfig (for centos and RHEL)
This intends to add support for rendering of network data under sysconfig
distributions (centos and rhel). The end result will be support for
network configuration via ConfigDrive or NoCloud on these OS. - 1241. By Scott Moser
-
DataSourceNoCloud: fix stack trace on reboot, default to dsmode=net
On reboot (loading module from obj.pkl) we would hit a AttributeError
when trying to access cmdline_id.
Addtionally, dsmode was inadvertantly defaulting to local for
DataSourceNoCloud. - 1240. By Scott Moser
-
fix usage of OSError.message that will not work in python3
python3's OSError does not have a .message attribute.
- 1239. By Scott Moser
-
fix some errors reported by pylint
pylint --errors-only found several errors. Some of the changes
here represent real errors, others just code that pylint did
not like.
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