~harrykas/cloud-init:freebsd_improvement

Last commit made on 2018-02-16
Get this branch:
git clone -b freebsd_improvement https://git.launchpad.net/~harrykas/cloud-init
Only Serhii Kharchenko can upload to this branch. If you are Serhii Kharchenko please log in for upload directions.

Branch merges

Branch information

Name:
freebsd_improvement
Repository:
lp:~harrykas/cloud-init

Recent commits

b379cf0... by Serhii Kharchenko

cc_set_passwords: style fixes, 2nd try

8d81e99... by Serhii Kharchenko

cc_set_passwords: style fixes

445c7d4... by Serhii Kharchenko

cc_set_passwords: added FreeBSD support

08edf4f... by Serhii Kharchenko

cc_resizefs: FreeBSD growfs should be executed with -y parameter

99171fb... by Robert Schweikert

SUSE: Fix groups used for ownership of cloud-init.log

On SUSE distributions the neither the "adm" nor the "wheel" group are set
up by default causing log file permission change to fail. Set the
user:group to root:root in the cloud-init default config file generated
during install.

boo: 1080595

42923ff... by Scott Moser

ds-identify: check /writable/system-data/ for nocloud seed.

Ubuntu core seeds information to nocloud via a bind-mount of
/writable/system-data/var/lib/cloud over /var/lib/cloud.
When ds-identify runs as a systemd generator that mount is not
guaranteed to have been done. It is guaranteed at
cloud-init-local.service time, but not generator time.

Images built with 'ubuntu-image --cloud-init=user-data-file'
would have cloud-init disabled.

The fix here is just to consider the seed dir under /writable/system-data.

LP: #1747070

754f540... by Scott Moser

tests: run nosetests in cloudinit/ directory, fix py26 fallout.

When we moved some tests to live under cloudinit/ we inadvertantly
failed to change all things that would run nose to include that
directory.

This changes all the 'nose' invocations to consistently run with
tests/unittests and cloudinit/.

Also, it works around, more correctly this time, a python2.6-ism with
the following code:
   with assertRaises(SystemExit) as cm:
      sys.exit(2)

a1ca220... by Scott Moser

tools: run-centos: git clone rather than tar.

This changes tools/run-centos to collect up your git working directory
via 'git' commands rather than just collecting the whole directory.
The reason for this is that even a clean tree that has had tox run
on it might have up to 400M of data in it.

It adds a '--dirty' flag to run-centos to collect up local changes.

f576b2a... by Scott Moser

tests: add support for logs with lxd from snap and future lxd 3.

This puts in place detection for if 'show-log' will work with lxc
client, and uses that if present. The 'lxc console --show-log' is
not expected to work until lxd/liblxc3.0. That should come in a
few months. The hope is that when that function arrives, this
code will move over to using it.

For other scenarios (all current lxd installs) this will now
support getting logs from a snap installed lxd or a package installed
lxd via the old 'lxc.console.logfile'.

If installed from snap, a platform error will be raised until
the user does:
   sudo mkdir --mode=1777 -p /var/snap/lxd/common/consoles

LP: #1745663

644048e... by Chad Smith

EC2: Fix get_instance_id called against cached datasource pickle.

Fix an issue in EC2 where the datasource.identity had not been
initialized before being used when restoring datasource from pickle.
This is exposed in upgrade and reboot path.

LP: #1748354