[18:56] utlemming or smoser: you around? [18:57] * utlemming is here [18:57] ohai [18:57] so i'm trying to use config-drive with user-data, but it cloud-init doesn't seem to execute my scripts [18:58] can you paste your script? [18:58] i can see that it's getting the file because if i use invalid syntax at the beginning (ala no #!) it errors [18:58] super simple one just for testing: https://gist.github.com/gondoi/7342051 [19:00] and /var/log/cloud-init.log [19:03] umm it's in debug so it has tons of output.. just a min [19:05] okay, refresh that gist [21:48] utlemming: any thoughts? [21:48] gondoi: what cloud is this on? [21:48] rackspace [21:52] gondoi: is this from a fresh instance? or have you rebooted it? [21:52] from a fresh instance [21:53] i tried putting that script in the user-data [21:54] is your file in /var/lib/cloud/instance/user-data.txt? [21:55] yes [21:56] gondoi: with out taking a look, I'm not exactly sure why its not firing [21:57] is it a fair simulation to blow away the instances directory and run cloud-init again? [21:57] gondoi: 12.04? [21:57] yes [21:58] rm -rf /var/lib/cloud; cloud-init-cfg start; cloud-init all [22:01] gondoi: did you do _anything_ else to this instance? [22:01] i tried copying the original cloud.cfg from the package but i just put back the one from the base image [22:02] gondoi: do you have launchpad account? [22:02] eys [22:02] yes [22:02] https://launchpad.net/~bkbox [22:03] can you run "ubuntu-bug cloud-init"? [22:03] sure [22:04] and then follow the propmpts. When given a choice with "C", pick that. [22:04] I forget the prompt [22:04] cancel? [22:04] *** 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] Yes [22:05] oky [22:07] umm it trashed it.. want me to view or save it for you? [22:08] gondoi: meh, don't worry [22:09] gondoi: the problem is here: http://paste.ubuntu.com/6373051/ [22:10] gondoi: RS has imposed a 13.04 or 13.10 /etc/cloud/cloud.cfg onto 12.04, which is confusing cloud-init. [22:11] hmm thought about that and tried the 0.6.3 release of the config [22:11] want to give that one a shot? [22:12] apt-get -y purge cloud-init; rm -rf /var/lib/cloud /etc/cloud; apt-get update; apt-get -y install cloud-init [22:12] then "cloud-init-cfg start" and "cloud-init all" [22:13] bad command all [22:13] start perhaps? [22:14] whoops [22:14] try "cloud-init start" and "cloud-init-cfg all" [22:15] stil nothing :/ [22:15] user-data.txt file is there too [22:16] no, check again [22:16] oh.. [22:17] so your problem is that RS has used an improper configuration and that is causing it to crap out on you [22:17] :( [22:17] k [22:17] you are the 2nd person who has been burned by this [22:17] :D [22:17] yeah i saw ypaq's messages yesterday I think? wasn't sure if it was the same issue for me [22:17] I would recommend that you file a support ticket and ask that they use a proper configuration file for cloud-init [22:19] gondoi: I would be interested to know their response.... [22:19] me too :D [22:19] i'll see what I can find out [22:21] sorry, 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 now [22:22] I would run: "cloud-init start", "cloud-init-cfg all", "cloud-init-cfg all final" [22:22] there we go [22:22] awesome [22:24] one 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] correct [22:25] cool [22:25] presidence is /etc/cloud.cfg, /etc/cloud.cfg.d and then your user-data