~erik-m-bray+ubuntu/cloud-init:master

Last commit made on 2016-12-19
Get this branch:
git clone -b master https://git.launchpad.net/~erik-m-bray+ubuntu/cloud-init
Only E. Madison Bray can upload to this branch. If you are E. Madison Bray please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~erik-m-bray+ubuntu/cloud-init

Recent commits

0715631... by Scott Moser

network: add ENI unit test for statically rendered routes.

This just adds a unit test for a case found to be failing in curtin.
The issue was reported under bug 1649652.

c011294... by Lars Kellogg-Stedman

set_hostname: avoid erroneously appending domain to fqdn

In some situations, cloud-init will erroneously append a default
domain to an already fully qualified hostname, resulting in something
like 'localhost.localdomain.localdomain'. This patch checks to see if
the value returned by util.get_hostname() contains a '.', and if it
does treats it as a fully qualified name.

Resolves: rhbz#1389048
LP: #1647910

39fb5a0... by Anhad Jai Singh <email address hidden>

doc: change 'nobootwait' to 'nofail' in docs

'nobootwait' is an upstart specific extension to the mount syntax that is
not supported by other mount systems. As Ubuntu 16.04 moved from upstart
to systemd, support for 'nobootwait' was lost.

All examples using 'nobootwait' are updated to use the standard 'nofail',
which gives the expected behaviour of not failing to boot in case a volume
is missing. There are subtle differences in semantics between
'nobootwait' and 'nofail', but it is the best substitute that gives
behaviour similar to the upstart specific option.

1b6d162... by Joshua Harlow

Replace an expired bit.ly link in code comment.

The bit.ly link seems to have expired. Replace it with link to
'latest' version of EC2 docs.

ca3ae67... by Scott Moser

user-groups: fix bug when groups was provided as string and had spaces

Cloud-config provided like:
  users:
    - default
    - name: foobar
      groups: sudo, adm

Would result in adduser being called as:
  useradd foobar --groups 'sudo, adm' -m
Which would cause error:
  useradd: group ' adm' does not exist

The fix here is just to always normalize groups and remove whitespace.

Additionally a fix and unit tests to explicitly set system=False
or no_create_home=True. Previously those paths did not test the value
of the entry, only the presense of the entry.

LP: #1354694

c9c9197... by Scott Moser

mounts: use mount -a again to accomplish mounts

During recent changes to cc_mounts, on systemd systems, we started using
  systemctl daemon-reload
rather than 'mount -a' to get mounts done.

The belief was that since entries in /etc/fstab would be written
to tell systemd that they should be after cloud-init
(x-systemd.requires=cloud-init.service) that the reload would then
let systemd mount the units as expected.

That doesn't seem to work, and new mount entries end up not getting
mounted. The change here moves back to using 'mount -a', but
then also does a systemctl daemon-reload.

LP: #1647708

a9d41de... by Scott Moser

CloudSigma: Fix bug where datasource was not loaded in local search.

CloudSigma would not get any datasources loaded during cloud-init local.
Thus, when the network datasource was removed, *no* CloudSigma
datasources would be loaded.

LP: #1648380

cbf93eb... by Lars Kellogg-Stedman

when adding a user, strip whitespace from group list

The documentation shows group names in the 'groups:' key delimited by
", ", but this will result in group names that contain spaces. This
can cause the 'groupadd' or 'useradd' commands to fail.

This patch ensures that we strip whitespace from either end of the
group names passed to the 'groups:' key.

LP: #1354694

166df60... by Scott Moser

fix decoding of utf-8 chars in yaml test

Python 3 would fail to load yaml from doc/examples/cloud-config-apt.txt
when the LANG (specifically LC_CTYPE) was 'C'.

The changes here do 2 things:
 a.) remove the non-ascii characters from the yaml file.
 b.) fix the validate-yaml.py program to decode using utf-8 specifically
     rather than using the inherited settings.

This fixes it now for ascii and in the future also should non-ascii slip in.

f6d5dc4... by Joshua Harlow

Replace usage of sys_netdev_info with read_sys_net

I've seen cases of unable to read from files as
well as the existing os errors so catch io error
and skip by using the smarter read_sys_net instead.

LP: #1625766