/srv/irclogs.ubuntu.com/2016/12/02/#cloud-init.txt

smoserjgrimm, here now01:52
MrBleuHello all !07:42
MrBleuIs there any way to "rsync" in cloud-init ?08:33
=== shardy is now known as shardy_lunch
=== shardy_lunch is now known as shardy
=== shardy is now known as shardy_lunch
=== shardy_lunch is now known as shardy
larsksHey folks, I'm seeing cloud-init-local crash on boot when it tries to read /sys/class/net/eth0/carrier.  It gets an EINVAL and blows up.  It looks like reads of this file will always return EINVAL when the link is down, and since cloud-init-local runs *before* networking, the link is always going to be in that state.17:21
larsksHas anyone else seen this behavior?  Simply running 'ip link set eth0 down' followed by 'cat /sys/class/net/eth0/carrier' will reproduce the problem.17:22
larsksOn that topic: https://bugs.launchpad.net/cloud-init/+bug/164691918:19
smoserlarsks, https://code.launchpad.net/~harlowja/cloud-init/+git/cloud-init/+merge/30588218:38
smoseri think18:38
larsksLooks likely.18:39
smoseri marked yours a dupe. un-dupe if you like.18:39
smoserif you want to give harlowja's branch a kick, go for it.18:39
harlowjasupp18:39
harlowjalol18:39
smoseri've just been kind of weary of pulling it as it seems like it could possibly go awry18:40
harlowjamy code is perfect18:40
harlowjalol18:40
smoserthat, and harlowja has not been responsive ;)18:40
harlowjaoops18:40
larskssmoser, agreed, looks like a dupe.18:40
larsksharlowja, kick.18:40
harlowjakick18:41
harlowjalol18:41
harlowjasoccer time18:41
harlowjalarsks ya, i'll fix it18:45
larsks\o/18:45
harlowja@smoser do u recall https://gist.github.com/harlowja/eb6f6688b3d6cefcaf302e588e034d9f18:50
harlowjaswitching to building in a docker container18:50
harlowjaand hit that18:50
harlowjaon 0.7.718:51
harlowjalet me see if bumping up the cloud-init tag works/helps18:51
smoserthat is fixed i think18:51
harlowjak18:51
smoserharlowja, 9972d246947f1a6ec102b978b99b26acc43133ec18:52
harlowjak18:52
harlowjaswitching up to 0.7.818:52
harlowjahttps://gist.github.com/harlowja/fa0ee4aa83acf8d7a35bf3b3742330e6 poop19:06
harlowjalol19:06
smosersuck19:06
smoserharlowja, well, that is also fixed.19:07
harlowjaya, prob, ha19:07
smoserseems like maybe we need an 0.7.9 for you, eh?19:07
harlowjahttps://gist.github.com/harlowja/6c403b87249c84b914e3d60dc4d388a8 (my jenkinsfile that is running all this)19:07
harlowjacan we get a 0.7.9 release with all those fixes :-P19:08
smoserhttp://paste.ubuntu.com/23569017/19:09
harlowjawoah19:09
harlowjau the man19:10
harlowjalol19:10
harlowjalet me see if master works, ha19:10
smoserplease do19:11
harlowjahttps://gist.github.com/harlowja/ed6dc735af22a491edf021690a43a49f19:11
harlowjapoopie19:11
harlowjalol19:11
harlowjatwo instances of new-style syntax :-P19:11
smoserdo you create gists manually ?19:11
harlowjaya19:11
harlowjathis is me copying from a jenkins console file19:12
harlowjato a gist, lol19:12
smoser:-(19:12
smoserok.19:12
smoseri can fix that for you quick. or you can and i'll pull19:12
harlowjai can19:12
smoseri'd really like the other branch you have to come in19:12
harlowjai got it covered boss19:12
smoserit scares me though..19:12
harlowjalol19:12
smoserthe io errors one that larsks wants19:12
harlowjaits xmas, not halloween man19:12
harlowjalol19:12
harlowjadon't be scared19:12
harlowjabe all santa like19:13
harlowjalol19:13
* smoser is blamed for that set notation19:13
harlowja:-p19:13
smoseri didnt know19:13
smoseroh. thats 2.6 even. wow.19:13
harlowjaya19:13
smoser:-(19:14
smoserharlowja, i'm fix and push the py2619:25
harlowjaoh ok19:25
smoserhttp://paste.ubuntu.com/23569084/19:25
smoserright ?19:25
harlowjai was nearly there, ha19:25
smoserthat passes in my cent6 container now19:25
harlowjaexcept i just got `fatal: remote error: DNS lookup failed: address 'xmlrpc.lp.internal' not found: [Errno -2] Name or service not known.`19:25
smoseris there something more ?19:25
harlowjawhen git pushing19:25
harlowjawhich was weird, ha19:25
smoseryou work on the other one.19:25
smoseryeah, that is wierd.19:25
smoser:-(19:25
harlowjaha19:26
smoserif you want to 'git show'19:26
smoserand paste19:26
smoseri can grab your credit too19:26
harlowjamy credit card is in there19:26
harlowjagittttttt19:26
harlowjalol19:26
smosergit config user.routing_number 48295992994319:27
smoserbah.19:27
smoserdid i type that in irc ?19:27
harlowjawhats the security code19:27
harlowjalol19:27
larsksharlowja, in your sys-io-errors branch, should read_sys_net just have a on_einval parameter (since EINVAL is expected for down interfaces)?19:27
harlowjalarsks i'm gonna go with yes19:27
harlowja:-P19:28
larsks...because that would simplify a lot :)19:28
harlowjasmoser paste looks ok to me19:29
harlowjau can do https://code.launchpad.net/~harlowja/cloud-init/+git/cloud-init/+merge/312390 also19:29
harlowjaback way when i didn't know those links expired, ha19:29
harlowjaoh well19:29
smoseroh. they do ? i didnt know that.19:30
smoser:-(19:30
harlowjawell or amazon changed it19:30
harlowjaso its dead anyway, lol19:30
harlowjahttp://bit.ly/TyoUQs ---> nowhere now19:30
smoserill hold off on thatone. ast here are other bit.ly broken links19:34
harlowjak19:34
smoseri think its all just the actual links being dead19:34
smosernot bit.lky19:34
harlowjaya, amazon19:34
harlowjaamazon fault19:34
harlowjaok larsks smoser https://code.launchpad.net/~harlowja/cloud-init/+git/cloud-init/+merge/305882 updated19:51
larsksharlowja, lgtm.19:56
harlowjalarsks u are the person who could possibly say update the package for cloud-init on epel right :-P19:58
harlowjai'm sure mdorman_ would like that :-P19:58
harlowja*epel 7 and 6 :)19:58
harlowjawink wink19:59
larsksharlowja, sort of.  I'm working on an updated package in RHEL.19:59
larsksThat should work it's way into CentOS.  The one in EPEL should probably just go away.19:59
larsksBut I will look into it.19:59
harlowjau will get a cookie20:00
larsksharlowja, oops, your patch has a bug (line 239)20:19
larsks...which shows up when you run the tests :)20:19
harlowjaah20:36
harlowjagood catch, was running the test_net test, guess another one hit it or something20:38
smoseryou might as well fix larsks's comment about the super set too.20:39
smosernames.extend(sorted(potential_interfaces))20:39
smoser ...20:39
smoser for name in names:20:39
larsksNow I'm looking at a unicodedecodeerror exception.20:39
smoser   if name not in potential_interfaces:20:39
smoser   ...20:39
harlowjak20:40
harlowjadone20:40
smoserharlowja, open to disagreement21:08
smoseryou use _on_excp_false once21:08
smoserwell, 3 times, one function21:08
smoserany reason not to have it namespaced inside that function21:09
harlowja??21:11
harlowjaah21:12
harlowjai can namespace21:12
smoserhttp://paste.ubuntu.com/23569503/21:13
harlowjaya21:14
harlowjaupdated with that21:14
smoserpowersj, magicalChicken http://paste.ubuntu.com/2356950821:15
smosermaybe because i'm in a container ?21:15
smoseror because i'm root ?21:16
powersjsmoser: I think so21:16
powersjyou can run as non-root21:16
powersjI do everything as my own user or jenkins user21:16
smoserwell, i was in a container21:16
smoserso i was non-[real]root21:16
powersjah yeah21:16
smoserwhat branch should i try ?21:16
powersjstart with mine as it is what I am going to push to merge https://git.launchpad.net/~powersj/cloud-init/?h=integration-testing21:17
smoserk21:17
larskssmoser, https://code.launchpad.net/~larsks/cloud-init/+git/cloud-init/+merge/312399 fixes a unicodedecodeerror I was hitting on centos 7.21:20
smoserpowersj, http://paste.ubuntu.com/2356953121:21
powersjcontainer is already running... that's a new one21:22
powersjstill doing this in a container?21:22
smoserlarsks, is there a specific reason for utf-8 there ?21:22
smoserrather than just encode()21:22
larsksNo specific reason, other than "make everyting utf-8".  What does .encode() with no encoding do?21:23
larsksI see, uses the default encoding.21:23
larsksSounds good to me.  I will update.21:23
smoserpowersj, no, that was outside now21:24
smoserharlowja, if theres a bug, try to remember to21:25
smoser LP: #XXXX21:25
smoserin the commit21:25
harlowjaah21:26
larskssmoser, does LP: do something magical?  Or is that just informative?21:26
smoserand larsks for you, not Closes-bug21:26
smoserbut LP: #21:26
smoserlaunchpad does read that now.21:26
larsksAh, okay.21:26
powersjsmoser: https://paste.ubuntu.com/23569555/21:26
smoserhttps://help.launchpad.net/Code/Git <-- "Linking to bugs"21:27
smoserlarsks, and also, i've got stuff that scrapes that info for ubuntu changelog entries21:27
larsksI've updated the merge request w/ LP: and .encode() with no explicit encoding.21:28
smoserpowersj, i'm on 16.04 on that system.21:28
smoserlxc 2.0521:28
smoseris that relevant ?21:28
powersjsmoser: might be, torkoal is running 2.6.2 and I'm running 2.4.121:29
powersjI didn't consider that21:29
powersjactually that is the output of lxc --version... the package version on torkoal is 2.0.5....21:29
smoserpowersj, from ?21:29
smoserhm... odd21:29
smoserwell, that'd probably stricktly be the client21:30
smosermaybe21:30
smoseri dont know21:30
smoserlarsks, maybe SysConf should just convert to a string ?21:31
smoserwait. mayb not21:32
smoseri'm just trying to think of fallout . somone getting a string now when they expected bytes.21:32
smoserhm.. now im' confused.21:33
larskssmoser, I'm pretty sure this is a safe change.21:33
smoserwe're calling load_file with no 'decode'21:33
smoserso it should get the decode=True21:34
larsksAh, that sounds nicer.21:34
larsksI have to take off, but I will look at that later this evening.21:34
smoserwhich  means it should already return a string21:34
smoserunless, larsks 0439d8a17d181a2546f2f7cb2d71a04bbb13b186 already fixed it for you ?21:35
smoserand yeah, i'm turning into a pumpkin now too21:35
smoseri'll leaev that in the MP21:35
smoserman python2 is confusing.21:37
smoseri'm confused.21:39

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