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