summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-09-21systemd: Ensure that cloud-init-local happens before NetworkManagerJoshua Harlow
2016-09-21Allow ephemeral drive to be unpartitionedPaul Meyer
If device has no partition table, the first line of output from `sgdisk -p <device>` will be "Creating new GPT entries.", instead of something like "Disk /dev/sdb: 266338304 sectors, 127.0 GiB". Also, protect against localized output by adjusting subp calls that parse sgdisk output to set LANG=C.
2016-09-21subp: add 'update_env' argumentScott Moser
In order for a caller to use 'env' argument of subp, they will realistically do: env = os.environ.copy() env['FOO'] = 'BZR' subp(cmd, env=env) This shortens that to be: subp(cmd, update_env={'FOO': 'BZR'}) Add tests, and update growpart tests to use mock when playing with os.environ.
2016-09-21releasing package cloud-init version 0.7.8-4-g970dbd1-0ubuntu1Scott Moser
2016-09-21update changelog (new upstream snapshot 0.7.8-4-g970dbd1).Scott Moser
2016-09-21merge from master at 0.7.8-4-g970dbd1Scott Moser
2016-09-21net: support reading ipv6 dhcp config from initramfsLaMont Jones
This adds support for understanding 'dhcp6' as a protocol that can be written into /run/net-IFACE.cfg files by the initramfs. The end result is supporting ipv6 dhcp from initramfs boot all the way into iscsi root. LP: #1621615, #1621507
2016-09-20releasing package cloud-init version 0.7.8-3-g80f5ec4-0ubuntu1Scott Moser
2016-09-20update changelog (new upstream snapshot 0.7.8-3-g80f5ec4).Scott Moser
2016-09-20merge from master at 0.7.8-3-g80f5ec4Scott Moser
2016-09-20Adjust mounts and disk configuration for systemd.Scott Moser
The end result of all of these changes is to get mounts managed by cloud-init to occur only after cloud-init.service is done. We need to do that so that filesystems that are set up by cloud-init (in disk_setup) do not get mounted by stale entries in /etc/fstab before the setup occurs. This can occur in 2 ways: a.) new instance with old /etc/fstab b.) same instance where disk needs adjusting (Azure resize will re-format the ephemeral disk). The list of changes here is: - move mounts and disk_setup module to cloud-init.service rather than config. cloud-init.service runs earlier in boot so it can get those mount points done earlier. - on systemd add 'x-systemd.requires=cloud-init.service' to fstab options - cloud-init-local.service: add Before=basic.target - cloud-init.service: - extend After, Before, and Wants to multiple lines rather than one long line. - sort consistently with cloud-init-local.service - add DefaultDependencies=no - add Before=default.target - add Conflicts=shutdown.target LP: #1611074
2016-09-15dmidecode: run dmidecode only on i?86 or x86_64 arch.Robert Schweikert
Dmidecode is not going to run successfully on anything other than an x86 or x86_64, just avoid running it anywhere else.
2016-09-15releasing package cloud-init version 0.7.8-1-g3705bb5-0ubuntu1~16.04.1Scott Moser
2016-09-15update changelog (new upstream snapshot 0.7.8-1-g3705bb5).Scott Moser
2016-09-15merge from master at 0.7.8-1-g3705bb5Scott Moser
2016-09-15releasing package cloud-init version 0.7.8-1-g3705bb5-0ubuntu1Scott Moser
2016-09-15update changelog (new upstream snapshot 0.7.8-1-g3705bb5).Scott Moser
2016-09-15merge from master at 0.7.8-1-g3705bb5Scott Moser
2016-09-15systemd: put cloud-init.target After multi-user.targetScott Moser
When we moved cloud-final.service to run After multi-user.target it caused a dependency loop (as cloud-init.target was still implied to be Before multi-user.target). journalctl would either show: cloud-init.target: Breaking ordering cycle by deleting job cloud-final.service/start or multi-user.target: Breaking ordering cycle by deleting job cloud-init.target/start The fix here is to clearly state that cloud-init.target is also After multi-user.target LP: #1623868
2016-09-14releasing package cloud-init version 0.7.7-31-g65ace7b-0ubuntu1~16.04.2Scott Moser
2016-09-14update changelogScott Moser
2016-09-14debian/control: add Breaks of older walinuxagentScott Moser
LP: #1623570
2016-09-12release 0.7.8Scott Moser
Bump the version in cloudinit/version.py to be 0.7.8.
2016-09-12releasing package cloud-init version 0.7.7-31-g65ace7b-0ubuntu1~16.04.1Scott Moser
2016-09-12update changelog (new upstream snapshot 0.7.7-31-g65ace7b).Scott Moser
2016-09-12merge from master at 0.7.7-31-g65ace7bScott Moser
2016-09-12releasing package cloud-init version 0.7.7-31-g65ace7b-0ubuntu1Scott Moser
2016-09-12update changelog (new upstream snapshot 0.7.7-31-g65ace7b).Scott Moser
2016-09-12merge from master at 0.7.7-31-g65ace7bScott Moser
2016-09-12Allow link type of null in network_data.jsonJon Grimm
Treat null type as yet another physical type, seen in real-world openstack cloud. Also, support the case where network_data.json provides mac addresses in upper case. Rackspace public cloud currently does that. LP: #1621968
2016-09-12DataSourceOVF: fix user-data as base64 with python3Scott Moser
When user-data was provided in the ovf environment python3 would call base64.decodestring() with a string rather than bytes and an exception would occur. This fixes the broken path and adds unit test. Also changes to return None rather than empty string when there is no user-data and when there is user-data return that as bytes instead of string. LP: #1619394
2016-09-12update package version in changelogScott Moser
2016-09-12remove obsolete .bzrignoreScott Moser
2016-09-09update changelogScott Moser
2016-09-09Merge branch 'ubuntu/devel' into ubuntu/xenialScott Moser
- debian/cloud-init.templates fix capitalisation in template so dpkg-reconfigure works to select OpenStack. (LP: #1575727) - d/README.source, d/control, d/new-upstream-snapshot, d/rules: sync with yakkety for changes due to move to git. - d/rules: change PYVER=python3 to PYVER=3 to adjust to upstream change. - debian/rules, debian/cloud-init.install: remove install file to ensure expected files are collected into cloud-init deb. (LP: #1615745) - debian/dirs: remove obsolete / unused file. LP: #1575727 LP: #1615745
2016-09-09Merge branch 'master' into ubuntu/xenialScott Moser
2016-09-09update changelogScott Moser
2016-09-09debian/control: fix missing dependency on python3-serialScott Moser
Add python3-serial to Depends. This is not resolved by ${python3:Depends} because it is commented out in requirements.txt. pyserial is problematic both because it is not pure python and because it is not available for python2.6. The commit 26ea813d2 removed pyserial and thus lost the automatic dependency. This makes SmartOS datasource work.
2016-09-09releasing package cloud-init version 0.7.7-28-g34a26f7-0ubuntu2Scott Moser
2016-09-09update changelogScott Moser
2016-09-09debian/control: fix missing dependency on python3-serialScott Moser
Add python3-serial to Depends. This is not resolved by ${python3:Depends} because it is commented out in requirements.txt. pyserial is problematic both because it is not pure python and because it is not available for python2.6. The commit 26ea813d2 removed pyserial and thus lost the automatic dependency. This makes SmartOS datasource work.
2016-09-09releasing package cloud-init version 0.7.7-28-g34a26f7-0ubuntu1Scott Moser
2016-09-09update changelog (new upstream snapshot 0.7.7-28-g34a26f7).Scott Moser
2016-09-09merge from master at 0.7.7-28-g34a26f7Scott Moser
2016-09-09systemd: Better support package and upgrade.Scott Moser
In systemd, package installation before the system is fully booted (systemctl is-system-running == starting) may result in the package not being started. Upgrade (package_upgrade: true) can also cause failure if that is done during systemd boot. The solution here is: a.) move config modules that do or may do package installation to 'final_modules'. That list is: - snappy - package-update-upgrade-install - fan - landscape - lxd - puppet - chef - salt-minion - mcollective b.) move cloud-final.service to run as 'Type=idle' LP: #1576692, #1621336
2016-09-08tests: cleanup tempdirs in apt_source testsScott Moser
test_handler_apt_source_v3.py was not cleaning up all its tmp dirs.
2016-09-08releasing package cloud-init version 0.7.7-26-g058dd75-0ubuntu1Scott Moser
2016-09-08update changelog (new upstream snapshot 0.7.7-26-g058dd75).Scott Moser
2016-09-08merge from master at 0.7.7-26-g058dd75Scott Moser
2016-09-08apt config conversion: treat empty string as not provided.Scott Moser
Old behavior allowed a user to provide: apt_mirror: "" And that was the same as: apt_mirror: null and the same as having not specified apt_mirror at all. This maintains that behavior for all old string values. LP: #1621180