[14:33] <Kodokuu> Hi
[14:34] <Kodokuu> I have a issue with cloud-init : http://pastebin.com/4iwZvCxU
[14:34] <Kodokuu> I use openstack and vcenter backend for hypervisor
[14:35] <Kodokuu> How I force cloud-init to use EC2 cloud-type ?
[15:00] <Kodokuu> Ping ?
[15:06] <larsks> Kodokuu: I think you can modify the 'cloud.cfg' in your image to restrict the available data sources.  There may also be a boot parameter you can use.
[15:10] <kodokuu_> larsks i have modify cloud.cfg and add datasource but always vsphere in my log
[15:11] <kodokuu_> and always warning : Unhandled non-multipart (text/x-not-multipart) userdata:
[15:12] <kodokuu_> I try to install package with user-data, so I add packages httpd in user-data. 
[15:12] <kodokuu_> [WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: 'packages:\n - httpd\n - my...'
[15:13] <kodokuu_> so cloud-init see my user-data but no execute package install ( I have package-update-upgrade-install)
[15:14] <larsks> kodokuu_: does your user-data start with '#cloud-config'?
[15:14] <larsks> That error sounds like cloud-init doesn't recognize what you're passing it.
[15:15] <kodokuu_> Shame on me :/
[15:17] <kodokuu_> i retry
[15:27] <kodokuu_> larsks Ok I Have no warning  but cloud-init don't install packages
[15:29] <kodokuu_> Always same error in log : http://pastebin.com/4iwZvCxU
[15:31] <larsks> kodokuu_: What if you modify the cloud.cfg *on disk* to have: datasource_list: ['OpenStack']
[15:31] <larsks> Or "Ec2" I guess, or whatever the EC2 data source is called.
[15:31] <larsks> What if you try using a config drive? I think that takes precedence over network data sources.
[15:37] <kodokuu_> larsks a config drive ?
[15:38] <larsks> kodokuu_: yes, cloud-init can read config from a locally attached cd-rom device rather than a network data source.  http://cloudinit.readthedocs.org/en/latest/topics/datasources.html#config-drive
[15:38] <larsks> With openstack, you get a config drive if you specify --config-drive=true when booting an image.
[15:40] <kodokuu_> i boot with horizon ^^
[15:40] <larsks> There's probably a checkbox for that.
[15:40] <kodokuu_> And I use vcenter hypervisor so hard to boot with config drive
[15:41] <kodokuu_> I think is for KVM libvirt
[15:41] <larsks> There is nothing kvm/libvirt specific about config drivers.
[15:41] <larsks> In horizion, in the "advanced options" tab, there is a "configuration drive" checkbox.
[15:41] <kodokuu_> I can reach 169.254.169.254, i have a route so why use config drive ?
[15:43] <kodokuu_> I use Icehouse version, I dont have this checkbox
[15:43] <larsks> kodokuu_: Huh, bummer.  Anyway, I was just suggesting ways of working around the error.
[15:44] <kodokuu_> ok thx for you help :) I can execute bash script in user-data, cloud-init execute my script but cloud-init format never works
[15:48] <larsks> this is sometimes caused if the default cloud.cfg does not enable the package-update-upgrade-install module. Check /etc/cloud/cloud.cfg.
[15:48] <larsks> ...at least, if the only problem is that packages won't install.
[15:49] <larsks> If cloud-config user-data doesn't work at all, I'm not sure.
[15:49] <kodokuu> larsks I enabled this module in cloud.cfg  
[15:51] <kodokuu> I retry with other module
[15:56] <smoser> kodokuu, can you give example of the config ?
[15:56] <smoser> it has to start with '#cloud-config' .
[16:00] <kodokuu> smoser yes
[16:00] <kodokuu> http://pastebin.com/e8QtYwrU
[16:01] <smoser> what is cloud-init version and OS ?
[16:02] <kodokuu> Maybe important: I use cloud-init 0.7.4
[16:02] <smoser> and is there /var/log/cloud-init*
[16:02] <kodokuu> and Rhel 6.4
[16:03] <kodokuu> smoser http://pastebin.com/VD7LHr13
[16:05] <kodokuu> Since rm -rf /var/lib/cloud/  i have  No instance datasource found!
[16:05] <smoser> ah. yeah. 
[16:06] <smoser> sudo cloud-init init --local
[16:07] <kodokuu> ok
[16:07] <kodokuu> and after ? 
[16:16] <kodokuu> I will try tomorrow thxfor help :p^