/srv/irclogs.ubuntu.com/2014/10/30/#cloud-init.txt

harlowjahmmm, seems not, lol00:02
harlowjait 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
harlowjafixing that00:10
harlowjahttps://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)00:15
=== mgagne is now known as Guest76511
=== Guest76511 is now known as mgagne
=== mgagne is now known as Guest51339
dmickhi 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?04:21
=== harlowja is now known as harlowja_away
gchristensenHi, 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:02
Wumpus42I'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?15:15
=== alexpilotti_ is now known as alexpilotti
=== harlowja_away is now known as harlowja
=== gchristensen is now known as grahamc`dead
harlowjaWumpus42 do u have an example yaml u are sending, or any cloud-init logs?17:21
harlowjadmick there isn't a kernel arg afaik that stops cloud-init from doing things17:22
harlowjasmoser when u leaving for paris?17:22
=== 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
smoserharlowja, saturday night.17:29
harlowjacool17:29
harlowjasat morning for me 17:29
smoserarrive sunday. 17:29
smoserare you speaking ?17:29
smosersunday i'm paying wrokingon talk 17:29
smoseras i am right now too17:29
smoserno reason in being ready early17:29
harlowjaspeaking, no direct speaking, a few summit sessions; but those aren't really speaking :-P17:29
harlowjano like presenations i mean17:30
harlowjau?17:30
Wumpus42yes. i will get an example17:30
harlowjaWumpus42 cool17:30
harlowjathat will help diagnois whats happening17:30
harlowjasmoser are u gonna talk about cloud-init or something, lol17:30
smosercontainers17:31
smoserhttp://www.openstack.org/vote-paris/Presentation/ecure-containers-in-openstack-using-lxc-and-user-namespaces17:31
harlowjaah17:31
harlowjacool17:31
harlowjai'll try to be there!17:32
hiren_smoser: looks like an interesting talk. Would these be recorded?17:40
harlowjahiren_ they typically are17:40
harlowjathe design summit sessions (which are developers blabbering at each other aren't recorded)17:41
harlowja^ thankfully those aren't recorded, haha17:41
hiren_hah yeah17:42
hiren_you do not want the world to see your yelling... I get that part.17:42
harlowja;)17:42
hiren_and dev only sessions are hardly civilized anyways. ;-)17:43
smoserhiren_, yeah, it will be17:47
Wumpus42_Here's my simple #cloud-config17:50
Wumpus42_#cloud-config17:50
Wumpus42_package_upgrade: true17:50
Wumpus42_power_state:17:50
Wumpus42_  delay: "now"17:50
Wumpus42_  mode: reboot17:50
Wumpus42_  message: "Bye Bye"17:50
Wumpus42_  timeout: 3017:50
Wumpus42_I'm new to irc, is there a better way to paste that?17:51
hiren_smoser: cool.17:53
harlowjaWumpus42_ using paste.ubuntu.com would be cool17:53
harlowjaeasier to see if its off there17:53
Wumpus42_I've also tried manage-resolv-conf: true17:53
Wumpus42_resolv_conf:17:53
Wumpus42_...17:53
Wumpus42_ok. let me try that17:54
harlowjak17:54
harlowjaWumpus42_ the other thing that would be useful are the cloud-init logs17:54
harlowjato see why it isn't processing those17:54
harlowjatypically at /var/log/cloud-init.log 17:54
Wumpus42_like this? http://paste.ubuntu.com/8749657/17:55
harlowjaya17:55
harlowjaso that looks fine17:55
Wumpus42_I'll get the log. 17:55
harlowjacool17:55
Wumpus42_gimme a few17:55
harlowjanp17:55
Wumpus42_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 respond17:56
harlowjak18:00
harlowjanp18:00
harlowjatake your time18:00
Wumpus42_wow. mtg going long :(  Here's the logfile http://paste.ubuntu.com/8750424/19:06
Wumpus42_The cloud-init was installed in the image and left with it's defaults... except I changed the user to cloud-user19:07
harlowjasure19:07
harlowjacan u show whats in '/var/lib/cloud/instances/i-000002dd/user-data.txt.i ' 19:08
harlowjaalso '/etc/cloud/cloud.cfg '19:08
harlowjaboth of those would be helpful19:08
Wumpus42_ok will get those too19:30
Wumpus42_here's /etc/cloud/cloud.cfg http://paste.ubuntu.com/8750761/19:38
Wumpus42_here's user-data.txt.i http://paste.ubuntu.com/8750782/19:40
dmickharlowja: 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:42
dmick(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
dmick(or am I talking crazy?)19:43
harlowjadmick 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 start19:44
harlowjaWumpus42_ ok, so that looks all ok, doesn't seem off or anything19:45
dmickhow do you typically debug?  logs?19:45
harlowjaya19:45
harlowjalogs, console, other19:45
dmickneed to figure out why I'm getting almost no logging.19:46
harlowjaWumpus42 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 image19:46
harlowjaso it won't do anything if no module is there to use it19:47
harlowjathat would likely be the cause19:47
harlowjasame with the resolve_conf module; not also listed in the 3 module sections (cloud_init_modules, cloud_config_modules, cloud_final_modules)19:49
harlowjaif a module isn't listed there, passing configuration in that uses the module won't do much19:50
harlowja*since there is nothing that gets activated that uses the config in the first place19:50
Wumpus42_ah. ok. i was going by the readthedocs information of cloud-init19:51
Wumpus42_whish is v0.7.7 (which is odd since 0.7.6 is the latest code .tar.gz file availqable)19:52
Wumpus42_i'll make sure the modules we're trying to use are in the cloud.cfg list?19:52
Wumpus42_is there a way to tell what modules are available... what _could_ be in the list?19:53
Wumpus42_would trying to use a non-implemented module cause the whole #cloud-config to fail?19:54
Wumpus42_did you find an error in the log that I missed?19:54
harlowjaWumpus42_ no, no error, just knowing how these things work mainly :-P19:56
harlowjahttp://cloudinit.readthedocs.org/en/latest/topics/modules.html is being updated (slowly, it will have a more extensive description and such soon)19:56
harlowjacontributions welcome19:56
Wumpus42_as soon as I know what I'm doing, I'll contribute. I'm still learning :)19:57
harlowjakk19:57
Wumpus42_thank you for your help. I'll make sure the modules I'm trying to use are enabled/available.19:58
Wumpus42_maybe I'll upgrade to 0.7.619:58
harlowjaWumpus42_ sure19:58
harlowjareminds 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)19:59
smoserharlowja, yeah. 20:08
smoserharlowja, i'm planning on a "fresh start" for cloud-init-220:08
harlowjalol20:08
harlowjahmmm20:08
smoserand using virtual env correctly.20:08
harlowjaat least keep the modules ;)20:09
harlowjaand some other stuff, ha20:09
smoserwill try to keep modules20:12
smoserand do them backwards compat20:12
smoserbut will probably have a 'handle_v2' 20:12
smoserand definitely want to do DataSource searching better :)20:12
harlowjaan 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:14
smoserharlowja, yeah, but order is hard.20:15
smoserthe list allows me to list the order.20:15
harlowjahave probe return a number to :-P20:16
smoserlike sysvinit is easy to understand, so is this :)20:16
smoserrather than declaring "wants"20:16
smoseror "start on"20:16
harlowja:)20:16
harlowjaok, fair enough, at least a validate(conf) method though20:18
harlowjaok, added more ideas to https://etherpad.openstack.org/p/cloud-init-next20:23
smoserdefinitely validate(conf)20:27
smoserand ability to run that external to cloud-init running.20:27
harlowjaya20:28

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