[00:02] hmmm, seems not, lol [00:10] it needs to be able to run setup.py install in a virtualenv (which for us is currently non-standard, using datafiles which it can't write...) [00:10] fixing that [00:15] https://code.launchpad.net/~harlowja/cloud-init/setup-virtualenv-installable/+merge/240069 should do the trick (this allows readthedocs to make a virtualenv which won't be missing the requirements it needs to build the full docs) === mgagne is now known as Guest76511 === Guest76511 is now known as mgagne === mgagne is now known as Guest51339 [04:21] hi all; this may be a dumbfaq, but I'm having real trouble finding it: is there a way to, preferably with a kernel boot arg, stop cloud-init from running on boot so that I can observe state before it runs, and run its phases by hand? === harlowja is now known as harlowja_away [15:02] Hi, I'm looking to have an upstart job run after cloud init has finished. it seems there have been numerous events to "start on stopped ____" over time. I'm running Ubuntu 14.04, anyone know what event I should be watching for? [15:15] I'm using cloud-init 0.7.4 in a centos 6.5 image I made for a Icehouse cloud we've setup to mess around with. I can get cloud-init to execute shell scripts in the user_data, but I can't get the #cloud-config to work. I don't get any errors, the actions just dont happen. Is there something I have to turn on in the image cloud-init config to have it act on the cloud-config userdata items? === alexpilotti_ is now known as alexpilotti === harlowja_away is now known as harlowja === gchristensen is now known as grahamc`dead [17:21] Wumpus42 do u have an example yaml u are sending, or any cloud-init logs? [17:22] dmick there isn't a kernel arg afaik that stops cloud-init from doing things [17:22] smoser when u leaving for paris? === grahamc`dead is now known as grahamc`systemd === grahamc`systemd is now known as grahamc`upstart === grahamc`upstart is now known as grahamc`init === grahamc`init is now known as gchristensen [17:29] harlowja, saturday night. [17:29] cool [17:29] sat morning for me [17:29] arrive sunday. [17:29] are you speaking ? [17:29] sunday i'm paying wrokingon talk [17:29] as i am right now too [17:29] no reason in being ready early [17:29] speaking, no direct speaking, a few summit sessions; but those aren't really speaking :-P [17:30] no like presenations i mean [17:30] u? [17:30] yes. i will get an example [17:30] Wumpus42 cool [17:30] that will help diagnois whats happening [17:30] smoser are u gonna talk about cloud-init or something, lol [17:31] containers [17:31] http://www.openstack.org/vote-paris/Presentation/ecure-containers-in-openstack-using-lxc-and-user-namespaces [17:31] ah [17:31] cool [17:32] i'll try to be there! [17:40] smoser: looks like an interesting talk. Would these be recorded? [17:40] hiren_ they typically are [17:41] the design summit sessions (which are developers blabbering at each other aren't recorded) [17:41] ^ thankfully those aren't recorded, haha [17:42] hah yeah [17:42] you do not want the world to see your yelling... I get that part. [17:42] ;) [17:43] and dev only sessions are hardly civilized anyways. ;-) [17:47] hiren_, yeah, it will be [17:50] Here's my simple #cloud-config [17:50] #cloud-config [17:50] package_upgrade: true [17:50] power_state: [17:50] delay: "now" [17:50] mode: reboot [17:50] message: "Bye Bye" [17:50] timeout: 30 [17:51] I'm new to irc, is there a better way to paste that? [17:53] smoser: cool. [17:53] Wumpus42_ using paste.ubuntu.com would be cool [17:53] easier to see if its off there [17:53] I've also tried manage-resolv-conf: true [17:53] resolv_conf: [17:53] ... [17:54] ok. let me try that [17:54] k [17:54] Wumpus42_ the other thing that would be useful are the cloud-init logs [17:54] to see why it isn't processing those [17:54] typically at /var/log/cloud-init.log [17:55] like this? http://paste.ubuntu.com/8749657/ [17:55] ya [17:55] so that looks fine [17:55] I'll get the log. [17:55] cool [17:55] gimme a few [17:55] np [17:56] i can't irc from work comp, gotta keep switching back and forth. i've got a mtg in 5mins so it might be a few mins 'til i can respond [18:00] k [18:00] np [18:00] take your time [19:06] wow. mtg going long :( Here's the logfile http://paste.ubuntu.com/8750424/ [19:07] The cloud-init was installed in the image and left with it's defaults... except I changed the user to cloud-user [19:07] sure [19:08] can u show whats in '/var/lib/cloud/instances/i-000002dd/user-data.txt.i ' [19:08] also '/etc/cloud/cloud.cfg ' [19:08] both of those would be helpful [19:30] ok will get those too [19:38] here's /etc/cloud/cloud.cfg http://paste.ubuntu.com/8750761/ [19:40] here's user-data.txt.i http://paste.ubuntu.com/8750782/ [19:42] harlowja: is there an easy way to boot up a pristine image but not execute the normal cloud-init path before starting a shell? (Maybe the easiest would be to supply a user script that just starts a shell, assuming I can make that happen first?) [19:43] (and maybe I can figure out how to fuse that into the yaml coming from the NoData ISO source by using the cc: kernel cmdline arg?) [19:43] (or am I talking crazy?) [19:44] dmick it really highly depends on what image this is, most of the time cloud-init is in the init system (systemd, upstart, sysvinit) so u can't easily bypass that without causing further services to not start [19:45] Wumpus42_ ok, so that looks all ok, doesn't seem off or anything [19:45] how do you typically debug? logs? [19:45] ya [19:45] logs, console, other [19:46] need to figure out why I'm getting almost no logging. [19:46] Wumpus42 the thing i do notice is that u are using 'power_state' which isn't in the cloud_final_modules module list thats in that image [19:47] so it won't do anything if no module is there to use it [19:47] that would likely be the cause [19:49] same with the resolve_conf module; not also listed in the 3 module sections (cloud_init_modules, cloud_config_modules, cloud_final_modules) [19:50] if a module isn't listed there, passing configuration in that uses the module won't do much [19:50] *since there is nothing that gets activated that uses the config in the first place [19:51] ah. ok. i was going by the readthedocs information of cloud-init [19:52] whish is v0.7.7 (which is odd since 0.7.6 is the latest code .tar.gz file availqable) [19:52] i'll make sure the modules we're trying to use are in the cloud.cfg list? [19:53] is there a way to tell what modules are available... what _could_ be in the list? [19:54] would trying to use a non-implemented module cause the whole #cloud-config to fail? [19:54] did you find an error in the log that I missed? [19:56] Wumpus42_ no, no error, just knowing how these things work mainly :-P [19:56] http://cloudinit.readthedocs.org/en/latest/topics/modules.html is being updated (slowly, it will have a more extensive description and such soon) [19:56] contributions welcome [19:57] as soon as I know what I'm doing, I'll contribute. I'm still learning :) [19:57] kk [19:58] thank you for your help. I'll make sure the modules I'm trying to use are enabled/available. [19:58] maybe I'll upgrade to 0.7.6 [19:58] Wumpus42_ sure [19:59] reminds me, smoser u ok with https://code.launchpad.net/~harlowja/cloud-init/setup-virtualenv-installable/+merge/240069 if u get some time, i'll try the readthedocs build after that (hopefully then it can read the code correctly since the review makes cloud-init virtualenv installable without problems) [20:08] harlowja, yeah. [20:08] harlowja, i'm planning on a "fresh start" for cloud-init-2 [20:08] lol [20:08] hmmm [20:08] and using virtual env correctly. [20:09] at least keep the modules ;) [20:09] and some other stuff, ha [20:12] will try to keep modules [20:12] and do them backwards compat [20:12] but will probably have a 'handle_v2' [20:12] and definitely want to do DataSource searching better :) [20:14] an idea, instead of having module lists, probe all modules, with a probe() function on the module, and let the module decide if it should run or not (instead of having static lists) [20:15] harlowja, yeah, but order is hard. [20:15] the list allows me to list the order. [20:16] have probe return a number to :-P [20:16] like sysvinit is easy to understand, so is this :) [20:16] rather than declaring "wants" [20:16] or "start on" [20:16] :) [20:18] ok, fair enough, at least a validate(conf) method though [20:23] ok, added more ideas to https://etherpad.openstack.org/p/cloud-init-next [20:27] definitely validate(conf) [20:27] and ability to run that external to cloud-init running. [20:28] ya