/srv/irclogs.ubuntu.com/2015/02/03/#cloud-init.txt

=== rcj is now known as Guest72419
KodokuuHi14:33
KodokuuI have a issue with cloud-init : http://pastebin.com/4iwZvCxU14:34
KodokuuI use openstack and vcenter backend for hypervisor14:34
KodokuuHow I force cloud-init to use EC2 cloud-type ?14:35
KodokuuPing ?15:00
larsksKodokuu: 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:06
kodokuu_larsks i have modify cloud.cfg and add datasource but always vsphere in my log15:10
kodokuu_and always warning : Unhandled non-multipart (text/x-not-multipart) userdata:15:11
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:12
kodokuu_so cloud-init see my user-data but no execute package install ( I have package-update-upgrade-install)15:13
larskskodokuu_: does your user-data start with '#cloud-config'?15:14
larsksThat error sounds like cloud-init doesn't recognize what you're passing it.15:14
kodokuu_Shame on me :/15:15
kodokuu_i retry15:17
kodokuu_larsks Ok I Have no warning  but cloud-init don't install packages15:27
kodokuu_Always same error in log : http://pastebin.com/4iwZvCxU15:29
larskskodokuu_: What if you modify the cloud.cfg *on disk* to have: datasource_list: ['OpenStack']15:31
larsksOr "Ec2" I guess, or whatever the EC2 data source is called.15:31
larsksWhat if you try using a config drive? I think that takes precedence over network data sources.15:31
kodokuu_larsks a config drive ?15:37
larskskodokuu_: 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-drive15:38
larsksWith openstack, you get a config drive if you specify --config-drive=true when booting an image.15:38
kodokuu_i boot with horizon ^^15:40
larsksThere's probably a checkbox for that.15:40
kodokuu_And I use vcenter hypervisor so hard to boot with config drive15:40
kodokuu_I think is for KVM libvirt15:41
larsksThere is nothing kvm/libvirt specific about config drivers.15:41
larsksIn 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:41
kodokuu_I use Icehouse version, I dont have this checkbox15:43
larskskodokuu_: Huh, bummer.  Anyway, I was just suggesting ways of working around the error.15:43
kodokuu_ok thx for you help :) I can execute bash script in user-data, cloud-init execute my script but cloud-init format never works15:44
larsksthis 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:48
larsksIf cloud-config user-data doesn't work at all, I'm not sure.15:49
kodokuularsks I enabled this module in cloud.cfg  15:49
kodokuuI retry with other module15:51
smoserkodokuu, can you give example of the config ?15:56
smoserit has to start with '#cloud-config' .15:56
kodokuusmoser yes16:00
kodokuuhttp://pastebin.com/e8QtYwrU16:00
smoserwhat is cloud-init version and OS ?16:01
kodokuuMaybe important: I use cloud-init 0.7.416:02
smoserand is there /var/log/cloud-init*16:02
kodokuuand Rhel 6.416:02
kodokuusmoser http://pastebin.com/VD7LHr1316:03
kodokuuSince rm -rf /var/lib/cloud/  i have  No instance datasource found!16:05
smoserah. yeah. 16:05
smosersudo cloud-init init --local16:06
kodokuuok16:07
kodokuuand after ? 16:07
kodokuuI will try tomorrow thxfor help :p^16:16
=== rcj is now known as Guest17528
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!