/srv/irclogs.ubuntu.com/2014/06/20/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== praneshp_ is now known as praneshp
CatKillerHi there! I've got a small issue with cloud-init on Ubuntu 14.04 desktop edition10:30
CatKillerI've successfully installed it, but it seems that "dpkg-reconfigure cloud-init" fails with an error10:30
CatKillerWhen ran, it opens the curses menu correctly, I can for instance pick another source10:30
CatKillerbut when I save, I get a few errors and the values of datasource_list remain unchangfed10:31
CatKillerHere's a paste of the errors10:31
CatKillerhttp://bpaste.net/show/nH2m5x3oKxGYP8cmrmBs/10:31
CatKillerdpkg-reconfigure returns "0" on exit though10:31
CatKillerAlso the strange thing is that if I look in reconfigure, only the OpenStack datasource is selected.10:32
CatKillerBut if I look into /etc/cloud/cloud.cfg.d/90_dpkg.cfg only CloudStack appears on the datasource_list10:32
=== evilissimo|afk is now known as evilissimo
=== zz_gondoi is now known as gondoi
=== gondoi is now known as zz_gondoi
=== evilissimo is now known as evilissimo|afk
=== harlowja_away is now known as harlowja
smoserCatKiller, bug 132574617:21
CatKillersmoser: Thanks!17:32
smoseri'm gonna upload that to proposed today17:33
smoserbut it will be at least 7 days till its in trusty-proposed17:34
CatKillerWell I can probably compile and install cloud-init from source otherwise17:35
CatKillerpurge the apt installed package17:35
CatKillerand just get the very latest17:35
CatKillerAlso another question17:35
CatKillerI then changed /etc/cloud/cloud.cfg.d/90_dpkg.cfg "by hand" to include OpenStack and Ec217:36
CatKillerHowever when I run "cloud-init init" it doesn't seem to try to connect to the metadata server17:37
smoseryou can. but whenver dpkg-reconfigure cloud-init runs it screws it.17:37
smoseryou probably have to run 'cloud-init init --local' first17:37
CatKillerCould that be that dpkg-reconfigure does more than just setting the metadata sources?17:37
smoseras that will remove some state17:37
CatKillersmoser: I'll try that too, thanks17:39
CatKillersmoser: omg it worked. Thanks a lot. Not sure what that did though ;)17:45
smoserCatKiller, sudo rm -f /var/lib/cloud/instance17:47
smoseris about it really.17:47
smosersince it had all ran before it found the 'None' data source. so running it again just said "already found".17:47
CatKillerahhhh ok17:51
CatKillersmoser: I get it, I was wondering what all this data was about17:51
CatKillersmoser: So basically, in the base image that directoy17:51
CatKiller*directory should be empty17:51
smoserwell, its a symlink17:52
smoserso it doesn't really  matter. 17:52
smoserwhen it finds a datasource, it links that tot he current data.17:52
smoserand other data is otherwise ignroed17:52
CatKillersmoser: OK cool, that makes a bit of sense17:56
CatKillersmoser: On a clean image, should I delete the entire contents of /var/lib/cloud then?17:57
CatKillerI've noticed that this directory only gets populated the first time cloud-init runs17:57
CatKillerSo that I can leave cloud-init pick the "right" data source on boot?17:57
smoseryou can.18:01
smoseryou dont need to 18:01
smoserbut you can18:02
smoseron boot, cloud-init --local gets run18:02
smoserso it will always pick the right datasource18:02
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== praneshp_ is now known as praneshp

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