lp:~larsks/cloud-init/fix-systemd-detection
- Get this branch:
- bzr branch lp:~larsks/cloud-init/fix-systemd-detection
Branch merges
- Dan Watkins: Approve
- Joshua Harlow: Pending requested
-
Diff: 102 lines (+37/-12)4 files modifiedcloudinit/distros/__init__.py (+8/-0)
cloudinit/distros/rhel.py (+0/-8)
tests/unittests/helpers.py (+6/-4)
tests/unittests/test_distros/test_generic.py (+23/-0)
Related bugs
Related blueprints
Branch information
Recent revisions
- 1113. By Lars Kellogg-Stedman
-
add tests for systemd detection
This adds the following tests in test_distros.
test_generic: - test_systemd_in_use
Test the situation in which /run/systemd/system exists.
- test_systemd_
not_in_ use Test the situation in which /run/systemd/system does not exists.
- test_systemd_
symlink This tests the situation in which /run/systemd/system exists but is a
*symlink* to a directory, which according to sd_booted() should return
false. - 1112. By Lars Kellogg-Stedman
-
transform paths in functions taking more than a single argument
Patch FilesystemMocki
ngTestcase. patchOS to support methods taking more
than a single path argument. This is required in order to properly mock
`os.symlink`, which takes two path arguments. - 1111. By Lars Kellogg-Stedman
-
check for systemd using sd_booted() semantics
The existing cloud-init code determines if systemd is in use by looking at the
distribution name and version. This is prone to error because:- RHEL derivatives other than CentOS (e.g., Scientific Linux) will fail this test, and
- Distributions that are not derived from RHEL also use systemdThis patch makes cloud-init use the same logic that is used in systemd's
sd_booted() method
(http://www.freedesktop .org/software/ systemd/ man/sd_ booted. html) - 1109. By Scott Moser
-
Azure: Redact on-disk user password in /var/lib/
ovf-env. xml The fabric provides the user password in plain text via the CDROM,
and cloud-init has previously wrote the ovf-env.xml in /var/lib/waagent
with the password in plain text. This change redacts the password. - 1108. By Scott Moser
-
EC2: be aware of eu-central-1 availability zone
eu-central-1 means that 'central' is a direction to update the
regular expression to understand. - 1107. By Scott Moser
-
packages/brpm: fix for oauth library name
brpm was broken when change from oauth to oauthlib.
- 1106. By Scott Moser
-
temporarily disasble test if no bin/cloud-init
the tests of bin/cloud-init would fail in a package build environment.
so, temporariliy skip them in that environment. - 1104. By Scott Moser
-
Azure: remove dependency on walinux-agent
This takes away our dependency on walinux-agent, by providing a builtin
path for doing cloud-init had delegated to it.Currently the default is to still use the old path, but adding this code
in will allow us to move to the new code path with more confidence.
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