lp:~harlowja/cloud-init/stage-base-test
- Get this branch:
- bzr branch lp:~harlowja/cloud-init/stage-base-test
Branch merges
- cloud-init Commiters: Pending requested
-
Diff: 252 lines (+204/-3)4 files modifiedtests/data/roots/simple_ubuntu/etc/networks/interfaces (+3/-0)
tests/unittests/helpers.py (+103/-0)
tests/unittests/test_filters/test_launch_index.py (+11/-3)
tests/unittests/test_runs/test_simple_run.py (+87/-0)
Branch information
Recent revisions
- 670. By Joshua Harlow
-
Add a new example test that will patch utils and os
functions so that they can be 'retargeted' to a temporary
directory, which allows us the ability to run a full set
of cloud-init stages.Neat things:
1. All cloud-init code is unchanged (as long as it goes
through the utils functions for most functionality)
2. Allows for a natural way to setup a temporary directory
then patch the new directory as the new 'root' and then
run cloud-init stages and then check the contents of
what was placed as desired. - 668. By Joshua Harlow
-
cleanups for rhel network config
Rework the rhel sysconfig writing/updating so that it goes through a
single function which helps ensure correctness. Also write to
/etc/sysconfig/network when we have written out devices to ensure that
networking is on. - 667. By Joshua Harlow
-
handle ifup on RH distros by iterating over 'ifup devname'
Fix the ifup so that if a list of devices is provided then each interface is
brought up individually instead of using the '--all' which isn't on rhel.The default debian behavior will be to use this still though as it overrides
the new bring up interfaces function for this case. - 666. By Scott Moser
-
DataSourceMAAS: if a oauth request fails due to 403 try updating local time
In the event of a 403 (Unauthorized) in oauth, try set a 'oauth_clockskew'
variable. In future headers, use a time created by 'time.time() +
self.oauth_clockskew' . The idea here is that if the local time is bad (or even
if the server time is bad) we will essentially use something that should be
similar to the remote clock.This fixes LP: #978127.
- 663. By Scott Moser
-
write-ssh-
key-fingerprint s: do not send HOST KEYS through logger In the previous commit to htis file I had wrapped the writing of
'BEGIN SSH HOST KEY KEYS' to go through logger.This would cause the keys to be prefixed with 'ec2:' which, previously they
were not. That would break existing users *and* make it more difficult to
consume that data, which was explicitly added to be easy to consume.
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