Ubuntu Pastebin

Paste from rharper at Tue, 29 Mar 2016 19:38:35 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
cloud-init-test is here:

https://code.launchpad.net/~raharper/+git/cloud-init-test

After checking out, you need to populate the main dir with a copy of cloud-init deb you want to inject

cp /path/to/cloud-init_all.deb cloud-init-py3.deb

You need to have your new cloud-utils network branch built and install the cloud-image-utils update
so we can call cloud-localds with --network-config= 

Then you can

nosetests3 -vv --nologcapture tests/vmtests/test_network.py:XenialTestNetworkStatic

This will do streams mirror to pull it down,
It will sudo prompt you when it runs mount-image-callback to inject updated cloud-init deb into an image.

Currently it doesn't parse/see the seed.img; that needs to be debugged; why new cloud-init doesn't read/parse the seed.img injected as a /dev/vdc.

In tests/vmtests/__init__.py  there is a new class CloudInitVMBaseClass that contains the changes to the init process, mostly new variables to pass to the tools/inject-cloud-init  which tars up payload dir in cloud-init-test dir.
Download as text