Fwd: Debian cloud images for OpenStack?
And including the list...
---------- Forwarded message ----------
From: Juerg Haefliger <firstname.lastname@example.org>
Date: Mon, Jul 15, 2013 at 10:10 AM
Subject: Re: Debian cloud images for OpenStack?
To: Thomas Goirand <email@example.com>
On Tue, Jul 9, 2013 at 8:28 AM, Thomas Goirand <firstname.lastname@example.org> wrote:
> On 07/09/2013 10:21 AM, Thomas Goirand wrote:
>> On 07/09/2013 04:38 AM, email@example.com wrote:
>>> On 07/08/2013 03:03 PM, Thomas Goirand wrote:
>>>> On 07/08/2013 06:16 PM, Juerg Haefliger wrote:
>>>>>> On 07/06/2013 08:18 PM, Thomas Goirand wrote:
>>>>>>>> Right now we have cloud-init in backports and testing/Jessie (yay! Well done Thomas, Jakub and Charles).
>>>>>>> Thanks, but unfortunately, it is still waiting for FTP masters approval.
>>>>>> It seems I was wrong, cloud-init really is in backports already! :)
>>>>>> I wonder though why it still doesn't show on packages.debian.org.
>>>>> I was not able to use that version of cloud-init (from jessie)
>>>> That's what I used and backported. What functionality didn't work for
>>>> you? For me everything was working:
>>>> - ssh key was added in /home/debian/.ssh/authorized_keys2
>>>> - hostname was set correctly
>>>> - HDD was resized as expected
>>>> Am I missing something? What functionality are we missing because
>>>> lacking of these init scripts?
>>> I believe one of the main features of cloud-init is to provide user data
>>> to the machine at boot time . This functionality did not work for me
>>> with the current (0.7.2) version of cloud-init in debian (they work in
>> Yes, I know what the user data are. The user data contains the hostname
>> and ssh keys, as I wrote above, which did work for me with the version
>> in Debian 0.7.2-1. Which is why I don't understand why you are saying
>> that it didn't work.
>>> but was restored by the proposed patch . This functionality
>>> is useful in EC2 as well as openstack.
>> Do you know what
>> - cloud-init init --local
>> - cloud-init modules --mode=config
>> - cloud-init modules --mode=final
> Ok, I now understand that "cloud-init modules --mode=config" should be
> the part which executes the scripts from the cloud-config script, and
> that should be given with the --user-data when using "nova boot" with
> OpenStack. I'm not sure what the others scripts are doing though. Can
> anyone tell me?
The 4 stages of cloud-init are:
1) cloud-init init --local
2) cloud-init init
3) cloud-init modules --mode=config
4) cloud-init modules --mode=final
#1 is run as soon as the all filesystems are mounted and searches for
configuration data in a local directory. This is for images that have
been built with local config data.
#2 runs when the network becomes available. It searches for remote
configuration data (like the metadata server at 169.254.169.254 for
EC2 and OpenStack) and then runs the modules specified in the
cloud_init_modules section of /etc/cloud/cloud.cfg config file.
#3 runs the modules specified in the cloud_config_modules section of
cloud.cfg. This usually happens right after #2 finishes.
#4 runs the modules specified in the cloud_final_modules section of
cloud.cfg. This happens at around rc.local exec time.
> To UNSUBSCRIBE, email to firstname.lastname@example.org
> with a subject of "unsubscribe". Trouble? Contact email@example.com
> Archive: 51DBAD76.firstname.lastname@example.org">http://lists.debian.org/51DBAD76.email@example.com