lp:~harlowja/cloud-init/boto-metadata-fixings

Created by Joshua Harlow and last modified
Get this branch:
bzr branch lp:~harlowja/cloud-init/boto-metadata-fixings
Only Joshua Harlow can upload to this branch. If you are Joshua Harlow please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Joshua Harlow
Project:
cloud-init
Status:
Merged

Recent revisions

700. By Joshua Harlow

Fix the none return problem.

699. By Joshua Harlow

Move the comment to the top + mark as fixing.

698. By Joshua Harlow

Remove function that shouldn't have shown up.

697. By Joshua Harlow

Handle the case where newer versions of boto
are used that lazily load the metadata from the
ec2 metadata service.

1. Add a ec2_utils module that checks which version
   of boto is being used and under the right versions
   the metadata dictionary will be expanded.
2. Use this new ec2_utils module in the cloudstack and ec2
   datasources as there entrypoints into boto.

696. By Scott Moser

use only util methods for reading/loading/appending/peeking

Use only util methods for reading/loading/appending/peeking
at files since it is likely soon that we will add a new
way of adjusting the root of files read, also it is useful
for debugging to track what is being read/written in a central
fashion.

695. By Scott Moser

Add helpers for wrapping file operations

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.

Note:
 This is now exposing what I think was just an issue in
 ./tools/run-pylint.
 ./tools/run-pylint ./tests/unittests/test_filters/test_launch_index.py
and
 ./tools/run-pylint ./tests/unittests/test_simple_run
 was always failing, but now I'm seeing errors.

need to fix that. any tests that 'import helper' have issues.

694. By Joshua Harlow

No need for the get default
users groups function when
its provided by the get user
function.

693. By Scott Moser

multipart or cloud-config-archive, do not fail on unknown headers

692. By Thomas Herve

restart landscape after config or install

691. By Scott Moser

Make sure that /etc/sudoers.d is used by /etc/sudoers

Create /etc/sudoers.d if not present.

Attempt to determine if /etc/sudoers.d will be used by /etc/sudoers.
If determined not, then add a line to /etc/sudoers.

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
This branch contains Public information 
Everyone can see this information.

Subscribers