lp:~larsks/cloud-init/fix-systemd-detection

Created by Lars Kellogg-Stedman and last modified
Get this branch:
bzr branch lp:~larsks/cloud-init/fix-systemd-detection
Only Lars Kellogg-Stedman can upload to this branch. If you are Lars Kellogg-Stedman please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Lars Kellogg-Stedman
Project:
cloud-init
Status:
Merged

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 FilesystemMockingTestcase.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 systemd

This 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)

1110. By Scott Moser

Doc: include information on vendor-data in OpenStack

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.

1105. By Scott Moser

pep8 fixes

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
This branch contains Public information 
Everyone can see this information.