/srv/irclogs.ubuntu.com/2013/11/06/#cloud-init.txt

gondoiutlemming or smoser: you around?18:56
* utlemming is here18:57
gondoiohai18:57
gondoiso i'm trying to use config-drive with user-data, but it cloud-init doesn't seem to execute my scripts18:57
utlemmingcan you paste your script? 18:58
gondoii can see that it's getting the file because if i use invalid syntax at the beginning (ala no #!) it errors18:58
gondoisuper simple one just for testing: https://gist.github.com/gondoi/734205118:58
utlemmingand /var/log/cloud-init.log19:00
gondoiumm it's in debug so it has tons of output.. just a min19:03
gondoiokay, refresh that gist19:05
gondoiutlemming: any thoughts?21:48
utlemminggondoi: what cloud is this on?21:48
gondoirackspace21:48
utlemminggondoi: is this from a fresh instance? or have you rebooted it? 21:52
gondoifrom a fresh instance21:52
gondoii tried putting that script in the user-data21:53
utlemmingis your file in /var/lib/cloud/instance/user-data.txt?21:54
gondoiyes21:55
utlemminggondoi: with out taking a look, I'm not exactly sure why its not firing21:56
gondoiis it a fair simulation to blow away the instances directory and run cloud-init again?21:57
utlemminggondoi: 12.04? 21:57
gondoiyes21:57
utlemmingrm -rf /var/lib/cloud; cloud-init-cfg start; cloud-init all21:58
utlemminggondoi: did you do _anything_ else to this instance? 22:01
gondoii tried copying the original cloud.cfg from the package but i just put back the one from the base image22:01
utlemminggondoi: do you have launchpad account?22:02
gondoieys22:02
gondoiyes22:02
gondoihttps://launchpad.net/~bkbox22:02
utlemmingcan you run "ubuntu-bug cloud-init"? 22:03
gondoisure22:03
utlemmingand then follow the propmpts. When given a choice with "C", pick that. 22:04
utlemmingI forget the prompt22:04
gondoicancel?22:04
gondoi*** It seems you have modified the contents of "/etc/cloud/cloud.cfg".  Would you like to add the contents of it to your bug report?22:04
utlemmingYes22:04
gondoioky22:05
gondoiumm it trashed it.. want me to view or save it for you?22:07
utlemminggondoi: meh, don't worry22:08
utlemminggondoi: the problem is here: http://paste.ubuntu.com/6373051/22:09
utlemminggondoi: RS has imposed a 13.04 or 13.10 /etc/cloud/cloud.cfg onto 12.04, which is confusing cloud-init.22:10
gondoihmm thought about that and tried the 0.6.3 release of the config22:11
gondoiwant to give that one a shot?22:11
utlemmingapt-get -y purge cloud-init; rm -rf /var/lib/cloud /etc/cloud; apt-get update; apt-get -y install cloud-init22:12
utlemmingthen "cloud-init-cfg start" and "cloud-init all"22:12
gondoibad command all22:13
gondoistart perhaps?22:13
utlemmingwhoops22:14
utlemmingtry "cloud-init start" and "cloud-init-cfg all"22:14
gondoistil nothing :/22:15
gondoiuser-data.txt file is there too22:15
utlemmingno, check again22:16
gondoioh.. 22:16
utlemmingso your problem is that RS has used an improper configuration and that is causing it to crap out on you22:17
gondoi:(22:17
gondoik22:17
utlemmingyou are the 2nd person who has been burned by this22:17
gondoi:D22:17
gondoiyeah i saw ypaq's messages yesterday I think? wasn't sure if it was the same issue for me22:17
utlemmingI would recommend that you file a support ticket and ask that they use a proper configuration file for cloud-init22:17
utlemminggondoi: I would be interested to know their response....22:19
gondoime too :D22:19
gondoii'll see what I can find out22:19
gondoisorry, i'm trying to execute it again so I can reproduce… i removed the file /var/lib/cloud and ran cloud-init start cloud-init-cfg all and it's not showing now22:21
utlemmingI would run: "cloud-init start", "cloud-init-cfg all", "cloud-init-cfg all final"22:22
gondoithere we go22:22
gondoiawesome22:22
gondoione more question… i noticed you mentioned before that they should use the cfg.d to place the config.. if they put the values there that are in cloud.cfg, will they override the main cloud.cfg?22:24
utlemmingcorrect22:24
gondoicool22:25
utlemmingpresidence is /etc/cloud.cfg, /etc/cloud.cfg.d and then your user-data22:25

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