lp:~milner/cloud-init/lint-cleanups

Created by Mike Milner and last modified
Get this branch:
bzr branch lp:~milner/cloud-init/lint-cleanups
Only Mike Milner can upload to this branch. If you are Mike Milner please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Mike Milner
Project:
cloud-init
Status:
Development

Recent revisions

505. By Mike Milner

Merge trunk.

504. By Mike Milner

Make unit tests run before pyflakes.

503. By Mike Milner

Makes pyflakes run before unit tests and fix pyflakes errors.

502. By Scott Moser

fix pylint warnings (LP: #914739) [Juerg Haefliger]

501. By Scott Moser

add unit test framework (LP: #890851)

500. By Scott Moser

fix selection of ec2 mirrors when inside ec2.

499. By Scott Moser

fix invalid variable name in cloudinit/CloudConfig/cc_resizefs.py

498. By Scott Moser

run resizefs module on every boot

on EC2, you can:
 stop instance
 resize root volume
 start instance

Currently, the partition would get grown correctly in the initramfs, but
the root filesystem will not get automatically resized in that case as it
only runs per_instance.

This should not be harmfull in any case, as resizefs will just report
nothing to do:

$ sudo resize2fs /dev/sda5
resize2fs 1.42-WIP (16-Oct-2011)
The filesystem is already 25600278 blocks long. Nothing to do!

497. By Scott Moser

fix issue with part-handlers and base64 encoding (LP: #874342)

Previously,
 * if content came into cloud-init for processing came in via a multipart
   mime file, and was already base64 encoded, it would get base64 encoded
   again before being handed to a part-handler.
 * if it came in via a '#include'd file then it would not be encoded at
   all.

This drops the internal 'parts' array, that was just converted to and then
from. Instead, we keep MIME format throughout and keep headers along
the way.

That means that a message that comes in with 'Content-Transfer-Encoding'
set to 'base64' will be decoded before being handed to a part-handler.

It also reduces the chance of failure due to content appearing to be an
actual email. Previously if content contained colon separated fields, it
might be read as headers (email.message_from_string(open("/etc/passwd","r"))
would come back as all headers, no payload)

The weak point right now is that '#include'd data cannot have mime types
associated with it (unless it is a mime formatted content). I had hoped
to read user headers and possibly set 'Content-Type' from that.

496. By Scott Moser

support configuration of landscape-client via cloud-config (LP: #857366)

This adds the ability to configure landscape client code from
cloud-config. The fields available are those that were populated to
/etc/landscape/client.conf when I ran landscape-config on precise
('11.07.1.1-0ubuntu2')

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