/srv/irclogs.ubuntu.com/2017/08/21/#cloud-init.txt

PrerakHello04:06
PrerakDo we have any guide to use cloud-init on freebsd?04:07
=== cpaelzer_ is now known as cpaelzer
smoserblackboxsw, http://paste.ubuntu.com/25363324/16:04
smoserthat'd be the yaml like syntax that i thought might throw you fits16:04
smoserand then second, like this: http://paste.ubuntu.com/25363330/16:05
smoserthose are yaml "anchors"16:05
blackboxswsmoser: that might actually throw jsonschema fits (self-referential stuff & json) hmm16:06
blackboxswgood examples. I'll play with them smoser16:06
smoserwell, they're valid to json schema16:11
smoserbecause yaml.load() returns you a dictionary with all things "copied out"16:11
smoserie, the result of cloudinit.safeyaml.load() is always somethign that jsonschema can look at. json schema doesn't actually look at the "S" in JSON ("serialized"), but rather it looks at the "O" ("object").16:13
smoserand yaml.load() returns a object16:13
blackboxswok smoser rharper all changes pushed to the analyze branch https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/328819 CI works16:33
rharperk16:33
rharpersmoser: if the sbuild of the new release package is good, do you want us to push the upstream tag ?16:45
sabariFolks, cloud-init with config drive on openstack instance incorrectly sets the dns-nameservers on the loopback interface. Rest of the configuration is correctly set on eth0. Any ideas to troubleshoot this ?17:03
sabariI am running Ubuntu 16.0417:03
rharpersabari: it's not an incorrect setting, are you not seeing the values show up in /etc/resolv.conf ?17:08
rharperthe resolvconf package will read any of the dns-* settings across any interface, including lo;17:09
smoserrharper, i guess you could propose a merge17:09
smoserand i could then pull, build, push17:09
rharpersmoser: ok, let me see if I can get that working17:10
rharperI suspect I'll need to push my tags to my remote branch17:10
smoserright. i guess the only tag that matters is ubuntu/<...>17:11
smoserand i can just as well tag that and push17:11
sabarirharper: /etc/resolv.conf is empty.  When I use cloud-init with metadata service, the dns-nameservers are set on eth0 and hence I expected the same with configdrive as datasrouce.17:11
smosersabari, that is odd.17:11
smoserwell, or maybe not.17:12
smoserso the difference between info from the openstack api and the config drive is that cloud-init will read all the networking config from the config drive and apply it form config drive.17:12
smoserbut it does not currently do that for the metadata service.17:13
rharpersmoser: configdrive *may* include an eni  vs. network_data.json17:13
rharperand IIRC< it prefers the eni vs network_data.json ; where as meta-data service, only has network_data.json ?  do I have that right?17:14
rharperISTR an issue w.r.t an 'eni' in the config and a 'network_data.json'17:14
rharperand cloud-init had to make a choice w.r.t which one has precendence17:14
rharperpossibly the eni included does not match what's in network_data.json17:14
sabarirharper: I only see network_data.json in the mounted iso. I don't see an ENI. Let me check again.17:15
rharperif you can, could you share the network_data.json ?  I can render that locally and see what eni cloud-init should generate17:16
sabarirhaper: sure17:16
sabarirharper: http://paste.openstack.org/raw/618941/17:17
smoserwell...17:18
smoserso cloud-init is putting those on 'lo' as they're "global" dns servers.17:18
smosertheres no specific data that says these are attached to eth0.17:19
smoserobviously you could come up with rules to figure that out but cloud-init does not do that at the moment.17:19
sabarismoser: I see. So the global dns-servers are set only on the lo interface. rharper mentioned that resolconf is supposed to read it and set to /etc/resolv.conf, let me try to check that.17:20
smoserwell, yeah. resolvconf will apply dns nameservers17:21
smoseron each interface as it comes up17:21
smoserand as 'lo' came up, and had dns-nameservers, it should have made its way into /etc/resolv.conf17:21
rharpersmoser: hrm, the openstack helper makes local renedering unhappy because of that known_macs feature17:22
rharpernet-convert used to work on those files; will need to fix that17:23
smoser?17:23
smoserit will work, you just have to pass in the macs17:23
rharperright17:23
rharperthat's work for net-convert17:23
rharperto pull them out of the json and pass it to the method for rendering17:23
rharperbbiab17:23
smoserright. you could do that.17:23
sabarismoser, rharper: thanks for all the info. Let me debug what's happening with resolconf and get back.17:25
powersjrharper: looks like there is support in cloud-init for setting a sortlist in resolv.conf however LP: #1711967 says there is an issue with that17:32
ubot5Launchpad bug 1711967 in cloud-init "dns-sortlist" [Undecided,New] https://launchpad.net/bugs/171196717:32
smoserrharper, sabari note, this is upstream related17:35
smoser https://review.openstack.org/#/c/467699/17:35
smoserie, them fixing the dns info to be per-interface17:35
smoseri had started cloud-init chagnes at http://paste.ubuntu.com/25220242/17:36
sabarismoser: Thanks a lot for the upstream patch! It will try it out and hopefully that will fix the problem :)17:43
smosersabari, well, cloud-init does not support it yet.. eventually it would.17:43
sabarismoser: Ah, I see. So this also needs the corresponding cloud-init fix that you referenced.17:45
sabarismoser: Little confused here..If I patch nova with the upstream change, the existing cloud-init should be able to set the nameserver on eth0 as well right ? Or does I need the changes you are working on.17:50
sabari*do I17:50
smoseryou'd also need cloud-init changes to take advantage of the upstream change.17:55
smoserthe upstream change was basically upstream realizing "hey, dns servers generally available per-interface."17:56
smoserblackboxsw, https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/32824118:07
blackboxswchecking18:07
smoserdid you see ajogen's comments ?18:07
blackboxswhrm saw all of his initial comments, didn't see that last one18:08
rharpersmoser: https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/329324   see if I did that right;  I pushed with --tags which pushed *all* my tags; not sure if that's correct18:21
naccrharper: fwiw, your tags are relatively irrelevant to a git merge18:23
naccrharper: not sure entirely on the context, just an fyi18:23
rharpernacc: yeah; I figured;  we're documenting upstream release into ubuntu/devel process, so it includes a few tag steps that are meant for :master but if I'm preparing the changes in a branch ,  hoping to bring the needed single tag along but we'll have to see what works here18:31
naccrharper: so you can push a single tag with `git push <remote> <tag>` and git should figure it out (tags are a special ref case). You can also push with a refspec `git push <remote> refs/tags/<tag>:refs/tags/<remotetagname>'18:33
naccrharper: yeah, what you  wrote makes sense, though -- if you need any help, let me know18:33
rharpernacc: ah, that make sense (for single tag push018:34
rharper)18:34
smoserrharper, you picked the wrong target18:49
smoserfor the merge18:49
smoser https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/32932418:49
smoseryou dont want to 'Merge into:' target18:49
smoseryou want into ubuntu/artful18:49
naccor ubuntu/devel, probably?18:49
smoserright18:49
naccthey presumably point to the same thing18:50
naccour general hope is for 'ubuntu -> ubuntu merges', ubuntu/devel can always be the target18:50
naccand for ubuntu -> debian merges, debian/sid can always the target18:50
rharpersmoser: ah, right18:56
rharperdo I just kill the MP and resubmit ?18:56
naccrharper: i think you can just resubmit it from the web UI and pick a new target18:57
smoserrharper, i rejected it :). you can't (or i couldnt) change the target. maybe you can, but resubmit with different target is as easy19:05
naccsmoser: yeah, user can resubmit and change it, iirc, but not with the existing MP19:05
rharpersmoser: k19:12
rharperhrm, LP doesn't like ubuntu/artful19:14
naccrharper: did you get an error? i see it existing: https://code.launchpad.net/~usd-import-team/ubuntu/+source/cloud-init/+git/cloud-init/+ref/ubuntu/artful19:49
rharpernacc: I did, complained that it didn't recognize ubuntu/arful ;   I used ubuntu/devel  instead19:53
rharperartful19:53
rharpereven19:53
naccrharper: hrm, strange19:53
rharpersmoser: nacc: hrm, so it doesn't like ubuntu/* whatever the first time;  it reports an error, but if you just resubmit, then it works. ..20:33
rharpermaybe a git/launchpad integration error ?20:33
rharpersmoser: https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/32933220:34
smoserrharper, you dont have a ubuntu/0.7.9-243-ge74d775-0ubuntu1 tag pushed.20:38
smoserhttps://git.launchpad.net/~raharper/cloud-init/refs/tags?h=ubuntu-devel-new-artful-release-v220:38
smosernot a big deal, i can just tag and push there.20:39
smoseri think what you wanted would have been:20:39
smoser git tag ubuntu/0.7.9-243-ge74d775-0ubuntu120:39
smoser git push <your-repo-name> HEAD ubuntu/0.7.9-243-ge74d775-0ubuntu120:39
rharpersmoser: well, I wanted to push it, but I couldn't quite figure out how to specify my branch remote;20:39
rharpersmoser: I've done the tag20:39
rharperbut not sure how to push with -u raharper (which expands to the lp remote)20:40
rharpersmoser: that last one worked ( had to look up my remote name )20:41
rharpermaybe I was just missing the HEAD , git push -u raharper HEAD <tag>20:41
smoserhead would have been same as 'ubuntu/devel'20:47
smosergit push raharper ubuntu/devel ubuntu/0.7.9-243-ge74d775-0ubuntu120:48
smoseror20:48
smosergit checkout ubuntu/devel && git push raharper HEAD ubuntu/0.7.9-243-ge74d775-0ubuntu120:48
smoserand i just uploaded that and pushed.20:49
rharpercool20:50
naccrharper: the syntax you listed `git push remote HEAD <tag>` doesn't do what you think most likely :)20:54
naccwell, it depends on what you're trying to do, i suppose20:54
naccyou very rarely push HEAD explicitly like that20:54
rharpernacc: I think you want to ping smoser; I was blindly trying what smoser suggested;  I think smoser has resolved to something more repeatable with the git push <lpuser> ubuntu/devel (or whatever my local branch with the change sare on) <tag name I just tagged>20:56
rharperwhich should work regardless of what HEAD is pointing at (which I think is your point)20:56
naccrharper: right, you want to push a local branch and tag?20:57
rharperyeah20:57
naccrharper: and use the same naming on the remote, it seems like?20:57
rharperyes20:57
naccrharper: yep `git push <remote> <branch name> <tag name>` is perfect then. And by default, with `git ubuntu`, the remote name is your lp username20:57
smoserrharper, https://lists.ubuntu.com/archives/artful-changes/2017-August/008659.html20:58
rharpersmoser: thanks!20:58
smoserrharper, it is easy to think that20:58
smoser git push <remote> <local-hashish> <remote-name>20:58
smoserbut that is not the syntax20:58
smoserits20:58
smoser git push <remote> <local-hashish>[:<remote-name>] [...]20:59
rharperI know of the colon; I used that often for branches20:59
rharperit's the tag that was confusing20:59
naccyeah20:59
rharperI guess tag goes in [...] ?20:59
naccjust keep in mind that everything after remote is a refspec20:59
rharpergit push raharper my-local-branch:my-remote-branch-name <Tag> ?20:59
naccso any refspec is allowed and those without colons are degenerate cases20:59

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