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