=== harlowja_ is now known as harlowja_away | ||
=== praneshp_ is now known as praneshp | ||
=== shardy_afk is now known as shardy | ||
harmw | smoser: on schedule for the freeze? which projects do you need to keep on track anyway, besides this one :) | 08:37 |
---|---|---|
=== zz_gondoi is now known as gondoi | ||
=== gondoi is now known as zz_gondoi | ||
=== zz_gondoi is now known as gondoi | ||
=== gondoi is now known as zz_gondoi | ||
=== zz_gondoi is now known as gondoi | ||
TTimo | Hello. Is there an easy way to supply user data 'manually'? e.g. I am getting access to a machine that was manually installed, but I have software that is already cloud-init ready .. as a special case I'd like to write out the user data 'manually' on the machine, and kick it off .. | 16:12 |
TTimo | the 'No cloud' data source looks like what I want, but do I really have to create a .img ? | 16:18 |
TTimo | even then .. probably not. the example shows spinning it up with kvm, which isn't what I want to do | 16:20 |
devicenull | hmm, isn't cloud-config supposed to run after could-init? | 16:36 |
devicenull | the ubuntu configs seem to start them at the same time | 16:36 |
nvucinic | TTimo: you can create iso and mount it on boot | 16:39 |
TTimo | the instance is already booted at that point | 16:39 |
TTimo | but it's not 'cloud-init' aware | 16:40 |
nvucinic | reboot it then | 16:40 |
nvucinic | with iso mounted | 16:40 |
TTimo | so I wanted to manually install cloud init, and pass it the stuff | 16:40 |
TTimo | any option without a reboot? | 16:40 |
TTimo | it's a VPS so I'm not sure what kind of options I would have on kernel parameters and a reboot | 16:41 |
TTimo | (they are working on cloud-init support .. it's not ready yet) | 16:41 |
devicenull | can't you just run the init scripts? | 16:42 |
devicenull | or like, 'cloud-init init' | 16:43 |
TTimo | yes .. that's what I want to do .. my question is probably very simple .. how/where do I put what I would normally give as 'user data' on EC2 before running cloud-init init ? | 16:43 |
smoser | TTimo, you can feed cloud-init user-data for NoCloud via either 'seed' | 16:44 |
devicenull | hmm, /etc/cloud/cloud.cfg.d/something | 16:44 |
devicenull | I think is what you're after | 16:44 |
smoser | or you can put it right into /etc/cloud/cloud.cfg.d/something.cfg | 16:44 |
smoser | links coming | 16:44 |
TTimo | oh | 16:44 |
smoser | http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/files/head:/doc/examples/seed/ | 16:44 |
smoser | that is "seed" (you populate the directory with 2 files) | 16:44 |
smoser | http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config-datasources.txt | 16:45 |
smoser | that shows how to do user-data-blob inside of NoCloud Datasource | 16:45 |
smoser | which means just adding 1 file in /etc/cloud/cloud.cfg.d/my-config.cfg | 16:45 |
TTimo | nice! | 16:45 |
smoser | also, i started 'ci-tool' https://code.launchpad.net/~smoser/cloud-init/ci-tool/ | 16:46 |
smoser | that does some of this | 16:46 |
devicenull | oh, maybe I'm hitting https://bugs.launchpad.net/cloud-init/+bug/1236463 | 16:48 |
devicenull | hmm | 16:48 |
devicenull | oh, dumb | 16:54 |
devicenull | apt-get update was hanging, so my scripts didn't get run | 16:54 |
smoser | devicenull, /var/log/cloud-init-output.log will help you in such a case. | 17:06 |
smoser | (or console output if you're on something < trusty ) | 17:06 |
devicenull | ya | 17:07 |
harmw | smoser: on par for the freeze? | 17:14 |
smoser | no. :O) | 17:20 |
smoser | but ui'm working on cloud-init now. | 17:20 |
harmw | oh cool | 17:21 |
harmw | I was mostly asking out of interest, not because of pending ci merges :) | 17:21 |
smoser | i may or may not make it :) | 17:24 |
smoser | i'd not realized that i'd gotten to ~ 95 bugs open now | 17:24 |
smoser | yuck | 17:24 |
=== harlowja_away is now known as harlowja_ | ||
harmw | damn | 17:32 |
harmw | harlowja_: you need to fix 95 c-i bugs so smoser can focus on merging :p | 17:32 |
harlowja_ | eck | 17:32 |
* harlowja_ runs for the hills | 17:33 | |
harlowja_ | lol | 17:33 |
harmw | lol | 17:33 |
harlowja_ | i think some of the bugs on https://bugs.launchpad.net/cloud-init can be cleaned up/closed/removed | 17:33 |
smoser | i thikn so too | 17:42 |
harlowja_ | i can try to close/change some of those today, will see what i can do | 17:55 |
harlowja_ | smoser harmw https://etherpad.openstack.org/p/TaskFlow-0.4 if u want to do some reviews ;) | 17:55 |
smoser | harlowja_, dont really understand how we regressed here: | 17:57 |
smoser | https://bugs.launchpad.net/cloud-init/+bug/1356855 | 17:57 |
smoser | and part of me wants to say : fix your ec2 metadata service to be ... ec2 like! | 17:57 |
harlowja_ | def | 17:58 |
harlowja_ | thats sorta nuts | 17:58 |
smoser | i think its really boiling down to that they dont like the "list" request to have a / on the end | 17:58 |
harlowja_ | most web servers handle that :/ | 17:58 |
harlowja_ | kk | 17:58 |
harlowja_ | weird stuff | 17:58 |
harlowja_ | lol | 17:58 |
smoser | http://paste.ubuntu.com/8108001/ | 17:59 |
smoser | that is on oepnstack. | 17:59 |
harlowja_ | meta-data/ | 17:59 |
harlowja_ | omg a slash! | 17:59 |
harlowja_ | ^ //// | 17:59 |
harlowja_ | anyways | 18:00 |
harlowja_ | can be fixed pretty easily i think | 18:01 |
harlowja_ | but would be useful to see that persons logs first | 18:01 |
=== gondoi is now known as zz_gondoi | ||
TTimo | damn, no luck with that manual cloud-init run so far. it's like it's completely ignoring my NoCloud datasource | 19:51 |
TTimo | https://gist.github.com/TTimo/1c9c7ce9686aa45c63b5 - my /etc/cloud/cloud.cfg | 19:56 |
TTimo | should .. just work? when I execute cloud-init -d init, I see it parsed up .. however nothing happens | 19:56 |
harmw | smoser: merge! :p | 20:00 |
smoser | TTimo, that looks reasonable. | 20:01 |
smoser | you may have to run 'cloud-init local' | 20:01 |
smoser | as that will remove the cached data in /var/lib/cloud/instance/ | 20:01 |
smoser | otherwise if thats there, 'cloud-init init' | 20:01 |
smoser | will just use the cache | 20:01 |
smoser | ie, first run: | 20:01 |
smoser | cloud-init init --local | 20:01 |
smoser | then | 20:01 |
smoser | cloud-init init | 20:01 |
TTimo | checking .. | 20:02 |
TTimo | or you mean the other way, first run doesn't need --local, and runs after that will | 20:04 |
TTimo | should I be concerned about: No 'init' modules to run under section 'cloud_init_modules' | 20:05 |
TTimo | __init__.py[WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: '#/bin/sh\necho "Test"\n...' | 20:06 |
TTimo | followed by No 'init' modules to run under section 'cloud_init_modules' | 20:06 |
TTimo | that's how the run ends atm | 20:06 |
TTimo | I don' | 20:21 |
TTimo | I don't understand what those modules are about in cloud.cfg though | 20:21 |
TTimo | is there a module I need to list to make sure user data gets handled ? | 20:22 |
TTimo | what are they useful for otherwise .. do they just add supported functionality basically | 20:22 |
smoser | oh. | 20:29 |
smoser | you replaced /etc/cloud/cloud.cfg ? | 20:29 |
smoser | dont do that. | 20:29 |
smoser | :) | 20:29 |
TTimo | yeah :) | 20:29 |
smoser | just add stuff to it or to /etc/cloud/cloud.cfg.d/local-nocloud-ds.cfg | 20:29 |
smoser | or something. | 20:29 |
TTimo | right .. getting a fresh vps, this one has seen enough | 20:30 |
smoser | so the warning aobut no 'init' modules is reasonable | 20:30 |
smoser | unhandled... that seems odd. not sure why that wouldget get picked up | 20:30 |
smoser | where are you playing ? | 20:30 |
smoser | just curious | 20:30 |
TTimo | digitalocean | 20:31 |
smoser | in theory user-data is coming there. | 20:32 |
smoser | https://digitalocean.uservoice.com/forums/136585-digitalocean/suggestions/3736274-support-cloudinit-instance-metadata | 20:33 |
TTimo | yep | 20:33 |
smoser | TTimo, fwiw, you can do a *lot* of this with lxc containers | 20:33 |
smoser | and clone is very fast. | 20:33 |
TTimo | docker you mean? | 20:33 |
smoser | no. here. | 20:33 |
smoser | http://ubuntu-smoser.blogspot.com/2013/08/lxc-with-fast-cloning-via-overlayfs-and.html | 20:34 |
TTimo | oh right. 'here' meaning ubuntu | 20:34 |
smoser | well, no 'here' meant: i'm looking for a url, just a minute | 20:34 |
smoser | :) | 20:34 |
smoser | so you can do an lxc-clone, and then could just write the file into /var/lib/lxc/<container>/ ... | 20:35 |
smoser | if you us clone without overlayfs, then you'll see the whole filesystem in /var/lib/lxc/<container-name>/rootfs/ | 20:36 |
smoser | make sense ? | 20:36 |
TTimo | yeah I think I see what you mean | 20:36 |
TTimo | the vps is fast and cheap, locally I'm on OSX so no native lxc etc. | 20:36 |
TTimo | cloudinit/handlers/__init__.py:206 | 20:44 |
TTimo | def walker_callback | 20:44 |
TTimo | so looks like the content_type is not in handlers | 20:44 |
TTimo | so there's no run_part | 20:44 |
TTimo | Unhandled non-multipart (text/x-not-multipart) userdata: '#/bin/sh\necho "Test"\n...' | 20:45 |
smoser | harlowja, when you have nothing to do | 21:01 |
smoser | https://bugs.launchpad.net/cloud-init/+bug/1316323 | 21:01 |
smoser | dont' knwo why i couldnt get that jsonpatch to work | 21:01 |
harlowja | kk | 21:01 |
harlowja | lol, marco | 21:02 |
harlowja | maybe i just assign marco to fix it (he's my manager) | 21:02 |
smoser | alright. | 21:04 |
smoser | i'm out. | 21:04 |
smoser | later all | 21:04 |
harlowja | lata | 21:04 |
TTimo | DataSourceNoCloud appends a nocloud to the seedfrom: parameter passed in .cfg | 21:31 |
TTimo | it also requires a trailing / on the seedfrom | 21:31 |
TTimo | but then .. it actually looks and loads user-data etc. from /var/lib/cloud/seed, not /var/lib/cloud/seed/noclip/ | 21:32 |
TTimo | err /var/lib/cloud/seed/nocloud/ | 21:32 |
TTimo | :) | 21:32 |
TTimo | man it's all messed up | 21:32 |
harlowja | smoser i think the reason jsonpatch stuff wasn't getting activated is that running a single module doesn't trigger the whole handler stuff | 21:37 |
smoser | harlowja, yeah, i thoguht that too, but i tried putting the file in /etc/cloud/cloud.cfg.d/ also | 21:42 |
smoser | and had hoped it would there. | 21:42 |
smoser | its quite possible you're right though. | 21:42 |
harlowja | possible, the ohther josh-merging-algo approach works though | 21:42 |
harlowja | smoser btw, cloud-init will be used for all deployments of all machines at yahoo pretty sooon | 21:46 |
harlowja | *will be included in and used | 21:46 |
harlowja | it was used for openstack vms and machines & stuff but that scope is increasing to all the things | 21:47 |
harlowja | so good work, ha | 21:47 |
TTimo | all the things | 21:47 |
harlowja | :-P | 21:48 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!