summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-07-28add support for 'remotes'Scott Moser
2015-07-27fix kwargScott Moser
2015-07-27fix build with merge from trunkScott Moser
2015-07-27use 'restart' rather than 'reload' on non-systemd systemsScott Moser
Testing on trusty shows that: service rsyslog reload does produce a message like: rsyslogd was HUPed but does not result in new config being in honored. Using restart does, and with upstart that should be fine (as upstart will start only if previously running).
2015-07-27_read_dmi_syspath: fix bad log message causing unintended exceptionScott Moser
2015-07-27merge from trunkScott Moser
2015-07-27add rsyslog testsScott Moser
reasonable test of reworked rsyslog module
2015-07-27update existing rsyslog module with better code and docScott Moser
2015-07-24commit initial re-work/re-implementation of syslog configScott Moser
2015-07-22mounts: support reliably detecting and using Azure ephemeral disksScott Moser
Azure's ephemeral disks are not guaranteed to be assigned the same name by the kernel every boot. This causes problems on ~2% of Azure instances, and can be fixed by using udev rules to give us a deterministic path to mount; this patch introduces those udev rules and modifies the Azure data source to use them. Changes to a couple of config modules were also required. In some places, they just needed to learn to dereference symlinks. In cc_mounts this wasn't sufficient because the dereferenced device would have been put in /etc/fstab (rather defeating the point of using the udev rules in the first place). A fairly hefty refactor was required to separate "is this a valid block device?" from "what shall I put in fstab?". LP: #1411582
2015-07-22remove some overly verbose log messagesScott Moser
2015-07-22provide data source to mirror selection code for region-specific mirrors.Scott Moser
This makes the full data source available to the mirror selection code, which means we can implement region logic on the data source for everything to use rather than it being mirror-selection-specific. It also implements that region logic for EC2 and GCE. LP: #1470890
2015-07-22merge from trunkScott Moser
2015-07-22fixes bug: https://launchpad.net/bugs/1461242Scott Moser
ssh: generate ed25519 host keys if supported now we attempt to generate ed25519 host keys. If ssh-keygen does not support it, a debug log message will be written. LP: #1461242
2015-07-22ssh: generate ed25519 host keys if supportedScott Moser
now we attempt to generate ed25519 host keys. If ssh-keygen does not support it, a debug log message will be written. LP: #1461242
2015-07-22improve log messageScott Moser
2015-07-22fixes from testingScott Moser
2015-07-22merge from trunkScott Moser
2015-07-22packages/debian/control.in: add depends on iproute2Scott Moser
tests (specifically DataSourceOpenNebula) runs 'ip' which comes from iproute2.
2015-07-22replace '2' with 'TO' in globalsScott Moser
2015-07-22pep8 line too longScott Moser
2015-07-22merge from trunkScott Moser
2015-07-22Add DataSource.region and use it in mirror selection.Daniel Watkins
Also implement DataSource.region for EC2 and GCE data sources.
2015-07-22Make full data source available to code that handles mirror selection.Daniel Watkins
2015-07-21untested suggested changeScott Moser
LP: #1461242
2015-07-21fix 'make pyflakes'Scott Moser
2015-07-21tests: fix TestHandlerHandlePart testsScott Moser
these tests were previously passing, but doing so erroneously. I believe that an update to mock caused them to start failing. I've updated the tests now. The simple change is replacing 'assert_called_with_once' with 'assert_called_once_with'. The second set of changes is seemingly a correction of the following tests expectations: test_normal_version_2 : was not expecting to get frequency passed into handle_part, but should have been. test_no_handle_when_modfreq_once: was expecting to have handle_part called even though the test implies otherwise. test_exception_is_caught: this test just looked broken. Now, we're testing that the part handler is called and that no exception is raised past handle_part
2015-07-21Add udev rules for Azure ephemeral disks.Daniel Watkins
And install them in the Debian packaging.
2015-07-21Use /dev/disk devices for Azure ephemeral disk.Daniel Watkins
The ephemeral disk will not necessarily be assigned the same name at each boot (LP: #1411582), so we use some udev rules to ensure we always get the right one.
2015-07-21Extend disk_setup and mounts to handle /dev/disk symlinks.Daniel Watkins
2015-07-21Refactor cc_mounts.sanitize_devname to make it easier to modify.Daniel Watkins
2015-07-20Return a sensible value for DataSourceGCE.availability_zone.Daniel Watkins
LP: #1470880
2015-07-16CloudSigma: encode/decode data before communicating over the serial channelScott Moser
this fixes the cloudsigma datasource when used with python3. LP: #1475215
2015-07-16CloudSigma: encode/decode data before communicating over the serial channelDaniel Watkins
2015-07-10Fix regressed logic causing rightscale userdata to no longer work.Scott Moser
Change the logic for user data handling back to the original intent. A style change also modified the logic of the user data handling leading to user data being ignored even if it exists.
2015-07-06Return a sensible value for DataSourceGCE.availability_zone.Daniel Watkins
2015-07-06Reduce repetition in GCE data source tests.Daniel Watkins
2015-06-29- Fix logic change introduced by 1000.1.1Robert Schweikert
2015-06-16Use wget to fetch CloudStack passwords.Scott Moser
Different versions of the CloudStack password server respond differently; wget handles these nicely for us, so it's easier to just use wget. LP: #1464253, #1440263
2015-06-16Use wget to fetch CloudStack passwords.Daniel Watkins
Different versions of the CloudStack password server respond differently; wget handles these nicely for us, so it's easier to just use wget. LP: #1440263, #1464253
2015-06-16growpart: fix specification of 'devices' list.Scott Moser
given config: {'growpart': {'devices': ["/"]}} the 'devices' was ignored, it was incorrectly read from the top level non-namespaced location. LP: #1465436
2015-06-15apt_configure: fix importing of apt gpg keys under in python3Scott Moser
LP: #1463373
2015-06-15cc_rh_subscription: fixes for python3Scott Moser
2015-06-10Add ChangeLog entry for last merge.Daniel Watkins
2015-06-10Add a cloud-init plugin for helping users register and subscribe their ↵Daniel Watkins
RHEL-based systems. This patch adds a cloud-init plugin for helping users register and subscribe their RHEL based systems. As inputs, it can take: - user and password OR activation key and org | requires on of the two pair - auto-attach: True or False | optional - service-level: <string> | optional - add-pool [list, of, pool, ids] | optional - enable-repos [list, of, yum, repos, to, enable] | optional - disable-repos [list, of, yum, repos, to, disable] | optional You can also pass the following to influence your registration via rhsm.conf: - rhsm-baseurl | optional - server-hostname | optional
2015-06-10check for systemd using sd_booted() semanticsScott Moser
The existing 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 - 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 LP: #1461201
2015-06-05packages/debian/control.in: mention recommends of gdiskScott Moser
some of the partitioning code in 'disk_setup' module needs sgdisk. In the future that could move to using sfdisk also but for now we do need sgdisk for this.
2015-06-03add tests for systemd detectionLars Kellogg-Stedman
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.
2015-06-03transform paths in functions taking more than a single argumentLars Kellogg-Stedman
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.
2015-06-02check for systemd using sd_booted() semanticsLars Kellogg-Stedman
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) LP: #1461201