/srv/irclogs.ubuntu.com/2014/02/24/#cloud-init.txt

=== pquerna_ is now known as pquerna
=== evilissimo1 is now known as evilissimo
harmw_meh, still no openstack community newsletter13:21
=== hatchetation_ is now known as hatchetation
smathewshey guys, im using 0.7.4 and noticed that with the config drive source that when it checks the uuid for previous installs it fails because the length of the uuids differ (extra white space) so it runs on_first_boot everytime, is this a known bug (maybe fixed already)20:14
smathews?20:14
smathews_example http://pastie.org/876906620:27
=== harlowja is now known as harlowja_away
smathewsapologies if I missed a responce, the web client keeps disconnecting me20:36
=== harlowja_away is now known as harlowja
smosersmathews, why does it find different content in the uuid ?21:08
smosersmathews, ie, that doesn't look like insane behavior from cloud-init's perspective. why should it be expected to trim data ?21:09
smathewsmy guess is that when it writes there is an extra white space at the end of the uuid in the file21:09
smathewsI dont think the logic here is incorrect, or that it should have to trim21:12
smathewsmaybe the write of the uuid is incorrect21:12
smathewsalso I think this is related, since if the uuids were matching it wouldnt run the network config https://bugs.launchpad.net/cloud-init/+bug/127509821:14
smathewson subsequent launches that is21:15
smathews        util.write_file(iid_fn, "%s\n" % iid)21:29
smathewslooks like its from the newline21:29
smathewsthoughts?21:29
smosersmathews, it looks like you're right.22:20
smoserharlowja, ^22:20
harlowjahmmm, newlnes!22:21
smathewsheh22:22
harlowjahttps://code.launchpad.net/~harlowja/cloud-init/strip-iid-newline/+merge/208028 22:25
smathewsso, while we are on the topic of config drives, can I make a request for in on_first_boot to write the files before applying the network config?22:25
smathewsthis would be helpful for when writing static routes22:25
harlowjaseems fair22:26
harlowjaany objections smathews ?22:26
harlowjasmoser ^22:26
harlowjalol22:26
smathewsheh22:26
harlowjai assume smathews  doesn't have objects :-P22:26
smathewshmmm I generally dont object with myself... 22:27
smathewsalthough lol22:27
harlowja:)22:28
smoseris it not easy to not write the carraige return?22:28
smoserclearly strip() should be safe22:28
smoserbut we shoud just not write baad data22:28
smoseror even bad data22:28
smoserharlowja, one othe rhting i meant to mention to you.22:28
harlowjasmoser likely it already exists out there with "\n" for quite a few versions, so better to just strip?22:28
smoserthe datasource for openstack right now reads from "latest"22:28
smoserwhich is imo wrong22:28
harlowja?22:28
smoseri'm pretty sure it tries "latest" in the metadata service.22:29
smoserthis is somewhat memeory, but there were 2 things i wanted to fix there.22:29
harlowjak22:29
harlowjaya, which version to use?22:29
smosera.) i thought it was reading from "latest" by default. as opposed to GRIZZLY or HAVANA (their YYYY-MM-DD respectively)22:29
harlowjasure, seems so22:29
smoserb.) it was warning when it tried one. warn goes to stdout, which goes to console and log as a warn22:30
smoserand that wasn't really a failure case.22:30
harlowjaagreed22:30
harlowjarepairing22:30
smathewssmoser, thoughts on writing files before apply network in on_first_boot?22:32
smosersmathews, i dont follow22:38
smoserwriting files as in 'write_files' ?22:38
smathewsyeah, in on_first_boot apply_network happens before write_files22:39
smathewsId like to switch that22:39
smathewsit'd be handy for writing static routes and such22:40
smosersmathews, i have to thikn about it. sorry . have to run right now22:42
smathewsno worries22:42
smathewsthanks for your help!22:43
harlowjasmoser https://code.launchpad.net/~harlowja/cloud-init/ds-os-adjust/+merge/20803122:43
harlowjawhenver u get free22:43
=== ctracey` is now known as ctracey|away

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