/srv/irclogs.ubuntu.com/2017/05/16/#cloud-init.txt

prometheanfiregah, cloud-init is now dieing because it thinks another network device should use dhcp :00:16
nilujesmoser: https://github.com/brmzkw/cloud-init-scaleway/commit/881495e7930dacf5a7195e560ec66589e44b55df09:39
nilujewant me to make a pull request with that on launchpad?09:39
nilujesorry, it took me a long time to make the patch :<09:39
nilujeunittests are passing09:40
=== sambetts|afk is now known as sambetts
=== shardy is now known as shardy_lunch
=== shardy_lunch is now known as shardy
smoserniluje, yes, merge proposal on launchpad would be good.13:05
smoserand that looks good.13:05
nilujeokay13:08
nilujetime lost because of launchpad: too much13:08
niluje:p13:08
smoserit shouldnt be that bad really.13:09
nilujeit's better since you use git :)13:22
smoserniluje, did you make one ?14:33
smoserwhat is your launchpad user name ?14:33
nilujesmoser: jcastets, I'm trying to figure out how to push on launchpad14:33
niluje# git push lp fix-net-cfg -v14:33
nilujePushing to git+ssh://jcastets@git.launchpad.net/cloud-init14:33
nilujefatal: remote error: Permission denied.14:33
smoser    git remote add LP_USER ssh://LP_USER@git.launchpad.net/~LP_USER/cloud-init14:34
smoser    git push LP_USER master14:34
smoser(from HACKING.rst)14:34
smoserthe key thing being you don't have write access to /cloud-init14:34
smoseryou *do* have write access to ~jcastets/cloud-init14:35
nilujeoh14:35
smosera "fork" button would be nice14:36
smoser(on launchpad).14:36
nilujeyeyyy14:36
nilujeyes14:36
nilujeexcept that lp is not github, I don't see other advantages of it14:37
nilujeit's a pain to use, the interface is un-understandable14:37
nilujelike I don't see my git repository here: https://code.launchpad.net/~jcastets14:38
nilujebut I see it here: https://code.launchpad.net/~jcastets/cloud-init14:38
naccniluje: https://code.launchpad.net/~jcastets/+git14:38
naccniluje: note bzr is the default still14:39
nilujeokay14:39
naccniluje: that will change at some point14:39
nacc(sooner rather than later hopefully)14:39
nilujeI guess it's a mess because I had a copy of cloud-init with bzr14:39
nilujeanyway here's my branch https://code.launchpad.net/~jcastets/cloud-init/+git/cloud-init/+ref/fix-net-cfg14:39
smoserniluje, there is also https://git.launchpad.net/~jcastets/cloud-init14:40
smoserbut that doesnt show review14:40
smosers14:40
=== rangerpbzzzz is now known as rangerpb
nilujewhat do I need to do to make a pull/merge request?14:41
naccniluje: from the link you had -- propose for merging?14:42
nilujecorrect, thanks14:44
nilujehttps://code.launchpad.net/~jcastets/cloud-init/+git/cloud-init/+merge/32411414:44
nilujehere it is14:44
smoserniluje, http://cloudinit.readthedocs.io/en/latest/topics/hacking.html *should* cover this all :)14:44
smoserif you read it and it didn't make sense, help me improve it14:44
nilujeok14:44
nilujeYou can see a web view of your repository and navigate to the branch at:14:45
nilujehttps://code.launchpad.net/~LP_USER/cloud-init/14:45
niluje+git is missing then, don't you think?14:45
blackboxswthanks smoser for the xenial SRU closeout on https://bugs.launchpad.net/cloud-init/+bug/1684869 I'm reading through your changes now14:45
ubot5Ubuntu bug 1684869 in cloud-init "growing root partition does not always work with root=PARTUUID=" [Medium,Confirmed]14:46
smoserhttps://code.launchpad.net/~jcastets/cloud-init/14:46
smoserthat shows me git14:46
smoserniluje, it doesnt for you?14:46
nilujesmoser: git *and* lp14:46
nilujehttp://blackhole.brmzkw.info/2017-05-16/launchpad.png14:46
smoserhm.. i dont know why it shows the "other repositories' there.14:47
smoserbut you click on the branc 'fix-net-cfg' there, and then click 'Propose for merging'14:47
nilujeyeah anyway the "other repositories" is shown even if +git is in the url14:47
nilujeI just did smoser : https://code.launchpad.net/~jcastets/cloud-init/+git/cloud-init/+merge/32411414:47
smoserblackboxsw, it might make sense to have get-proposed-cloudimg get the -uefi for xenial. since it actually is the same as the yakkety+ ones are for 'disk.img'14:49
smoseror at least have an option '--uefi' or something.14:59
blackboxsw+1 on that thought smoser maybe --uefi param15:02
blackboxswwe (Canonical) are the only consumers of those tools right?15:02
smoserblackboxsw, yeah. we "you and me"15:05
smoserniluje, i just put a comment on your mp.15:06
smoserwhat do you think ?15:06
smoserapplied, that makes your change much shorter :) http://paste.ubuntu.com/24587355/15:07
nilujesmoser: you're much more qualified than me to know what's the best thing to do here, but IMO we could keep my patch but maybe change the unittests15:09
nilujein the unittests, the file in DHCP_CONTENT_1 contains PROTO='dhcp' ; IPV4ADDR='192.168....'15:10
nilujeI guess it doesn't really make sense do have both and a valid /run/net-<iface>.cfg file won't ever contain such config15:10
nilujebut if it does, you probably want to have the addr in the cloud-init config object15:10
nilujeso my suggestion is instead of your patch remove the IPV{4,6}ADDR from the example files when PROTO='dhcp' in the unittests15:11
smoserniluje, well, the files are what klibc's ipconfig generates15:17
smoserie, they are real world example15:17
smoserso i'd like to keep them as they are, but we just ignore the setting of 'address' on dhcp types.15:17
smoseras other "normal" ways of saying "please use dhcp" do not provide you with an address, so this way other parts of the code wouldn't unintentionally expect/rely on it.15:18
nilujeok15:20
nilujeso let me push --force with your suggestion then15:20
smoserniluje, you didn't do that , id dyou ?15:36
smoserplease do and then i'll pull.15:36
smoserand, you dont need to --force if you do not want15:36
smoseras i will squash when i merge (and use the commit message from the MP)15:37
smoserrharper, i'd appreciate your quick-ish review of https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32342015:41
smoseri *think* your comments are all addressed.15:41
nilujesmoser: I was running the unittests, just pushed --force you can pull15:43
smoserniluje, htanks15:43
rharpersmoser: ok15:43
nilujethanks for the merge and for your patience smoser15:52
smoserniluje, thanksk for contributing15:57
nilujeI hope the scaleway datasource will be finished in the following days15:57
nilujeWe set ip=:::::eth0: in the cmdline because otherwise our servers with two network interfaces don't boot (because the default gw needs to be eth0 and not eth1), but unlike regular initrds we don't generate /run/net-<iface>.cfg. I don't know if I should spend some time to see how to get rid of ip= from the cmdline or how to generate a valid /run/net-<iface>.cfg file from the initrd.16:00
smoserniluje, yeah, i'm not sure what the best way to do this is.16:32
smoseras it is right now, kernel command line overrides the datasource configuration.16:33
smoserso your datasource would be "trumped" by the cmdline16:33
blackboxswpowersj: what is the intent behind -n versus --build-os for run_tree?16:54
powersj-n, aka --os-name, is the OS you wish to run tests on16:56
powersj--build-os is what OS you want to build the deb on16:56
blackboxswIt seems like the consolidated args we are providing don't quite make sense for all actions I'm not quite sure why  BDDEB arg sets are provided as subsets for tree_collect and tree_run16:57
blackboxswas defined in tests/cloud_tests/args.py16:57
blackboxswso why would you build a deb in a different os than you would run tests on?16:59
blackboxsw(maybe in the case where our build environment is limited to xenial doesn't support new series X yet?)17:00
powersjexactly17:04
powersjWe don't exactly have the logic in there either to build for multiple OSes in a single run either17:04
powersjfor the case where someone has multiple -n arguments for example17:05
blackboxswahh I see now you've also commented on the mp. thanks. was just trying to understand why we might want to have --build-os artful -os-name xenial in our tree_runs.17:06
blackboxswyes though we have documented it :)     -- tree_run --verbose \ --os-name xenial --os-name stretch17:07
blackboxswmaybe we just drop the xenial example from the docs until that feature is supported17:08
blackboxswok I'm feeling better about it. had to re-read the docs. thanks.17:12
powersj:)17:20
powersjblackboxsw: FYI the launchpad diff is old. I keep getting "oops: cannot generate diff" so a few of your changes are not needed17:32
smoserrharper, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32412617:47
blackboxswpowersj: ahh right forgot about that17:55
powersjblackboxsw: you mentioned "SKIP_UNCOMMITTED_CHANGES_CHECK", where is that?17:56
blackboxswmost of the comments are cosmetic at the moment. trying to wrap up the logic/code review17:56
blackboxswpowersj: completely undocumented :/17:56
blackboxswhmm wait a sec. I don't see it ATM. lemme dig it up17:57
blackboxswtools/make_tarball17:57
blackboxswtools/make-tarball.17:58
blackboxswwhich I think is what barfs when you have uncommited changes local in the tree while running make deb17:58
blackboxswor bddeb as it were17:58
powersjright, so we tar up the working tree, push to builder, extract, commit everything, and run bddeb18:01
powersjI don't see in that process where we would want to use that check?18:01
dpb1_smoser: reading a couple things from rharper and I need some clarification -- what is "the event json object"18:02
powersjblackboxsw: and it looks like I need to fix all the doc strings... :\18:04
blackboxswpowersj: smoser if you guys agree w/ docstrings adhering to https://www.python.org/dev/peps/pep-0257/ I don't mind if we leave that out of powersj consolidated branch and I can followup and clean up all the integration tests by turning a crank and fixing docstrings (since I'm the one complaining)18:06
smoserdpb1_, probably a json formatrted description of the event (like a hotplug attach of a disk)18:07
blackboxswit's busy work that needn't block your branch in my mind powersj. It just makes the code more legible/maintainable long term18:07
powersjwe should add a pep257 test then too18:07
blackboxswnot a bad check for new changes18:07
smoserblackboxsw, i think you're suggesting that all unit tests should have docstrings that adhear to that pep.18:10
smoseri'm not opposed to that.18:10
powersjblackboxsw: "Launchpad encountered an internal error during the following operation: generating the diff for a merge proposal.  It was logged with id OOPS-e452bec09711d44ff1a102538807d0e2.  Sorry for the inconvenience."18:10
blackboxswin my comments on powersj branch, it was just that all methods added ahdere to pep257 single line docstring, blank line, additional details if needed (param descriptions etc).18:11
dpb1_smoser: oh, maybe the JSON that is already reported in the fire-and-forget reporting that cloud-init already does18:12
* dpb1_ is starting to put those pieces together18:12
rharpersmoser: will re-read18:33
rharperdpb1_: right, so cloudinit/reporting/events.py has the Object;  there is a as_dict() method, which is then used in the WebReporter to post to a remote URL handler18:35
rharperdpb1_: cloudinit/reporting/handlers:WebHookHandler 's publish_event takes the event object, and json.dumps(object.as_dict())18:36
dpb1_rharper: I'm making changes to the doc, fyi18:36
dpb1_in flight18:36
rharperack18:36
blackboxswpowersj: ok I've finally finished reviewing your branch. had a suggestion for a couple of the tests/cloud_tests/utils that might take a little time, but we can iterate. Thanks again. I'll peek back at the branch when you say it's ready19:20
blackboxswman that hurt my brain.19:20
powersjblackboxsw: haha thanks19:23
powersjblackboxsw: the util change was easy. Many calls were already using cloud-init's util functions versus the ones that pass to it. So I removed the test util calls in a few remaining places.19:50
blackboxswthanks powersj19:51
smoserhttps://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/32335120:13
powersjsmoser: yes20:14
smoserhm..20:14
smoserah.20:14
smoseri see you saw it.20:14
smoser initialisation20:15
smoseryou had a commit that changed that to a z and then back to an s20:15
smoseri didn't realize there was a revert20:15
powersjyeah launchpad was being silly and not generating a diff20:15
powersjso I made a quick silly change to force it and reverted and the diff got generated20:16
smoseroh. funny.20:17
smoserblackboxsw, you think https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/323076 is ready, r ight?20:38
rharpersmoser: on that net-convert; my MP was backwards;  it's the netplan renderer which flipped the args (render_network_state should always take (network_state, target=target)20:40
smoserugh.20:41
rharpermy fault, I didn't notice that until i was also net-converting with sysconfig as well20:41
* rharper puts on the cone of shame20:41
smoserbah20:42
blackboxswsmoser: +1 on the make deb target.  it's only step one, there will be a followup small branch to extract dependencies from the built package (rpm|deb) files20:42
smoserk20:42
smoserrharper, so what was the bug ?20:44
rharper#168594420:45
rharperlp:168594420:45
rharperbug 168594420:45
ubot5bug 1685944 in cloud-init "tools/net-convert: fix argument order for render_network_state" [Low,Fix committed] https://launchpad.net/bugs/168594420:45
rharperthere we go20:45
smoserrharper, yeah, but what *was* wrong20:46
rharperthe whole patch20:46
smoseroh. ther netplan renderer. huck20:46
rharpernetplan.py should call with the right order20:46
rharpersmoser: xnox has a branch to fix20:46
rharperlemme find20:46
rharperhttps://code.launchpad.net/~xnox/cloud-init/+git/cloud-init/+merge/32401220:47
rharperI had suggested to also fix up the unittest callers to pass target=value instead of just state, dir. but that's not strictly required20:47
rharperI have both of that in a branch for fixing up some sysconfig stuff, but I've not had time to do a PR yet20:47
smoserso eseentially we should grab xnox20:49
smoserand revert yours20:49
smoserright?20:49
smoserxnox's branch20:49
smoserplus20:49
smoser-    r.render_network_state(args.directory, ns)20:49
smoser+    r.render_network_state(ns, target=args.directory)20:49
smoserin tools/net-convert.py20:50
smoseri' going to revert yours now. and then i have to run20:50
rharperack20:51
* rharper steps out for the vet20:52
smoserreverting && toxing && git pushing20:52
smoserthen tomnorrow get the others20:52
* smoser runs20:52
=== rangerpb is now known as rangerpbzzzz
powersjblackboxsw: https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/32413621:51
powersjnew merge request with fresh diff and updates to doc strings21:51
powersjupdated util functions as well and got rid of silly functions that you called out.21:51
powersjI need to run through the tests again and then I'll mark as "needs review"21:51
blackboxsw6732 lines (+2526/-1200) :)21:52
blackboxswheh21:52
blackboxswwow21:52
blackboxswI'll browse through it now powersj to see if my other comments were handled thanks !21:52
powersjok21:53
blackboxswhrm did integration tests just fail due to the snappy changes smoser landed today? https://jenkins.ubuntu.com/server/job/cloud-init-integration-proposed-z/6/console22:18
powersjblackboxsw: see my email on snappy failures22:18
powersjbut the centos 6 tests just failed because of new tests... sigh22:18
blackboxswthx for the email ptr.22:21
powersjhttps://paste.ubuntu.com/24589541/22:29
powersjok added e2fsprogs to deps list for setting up container that seems to have fixed it :D22:36
powersjCentOS 6 is good; 7 not so much https://paste.ubuntu.com/24589593/ seems hard coded path for mkfs.ext422:39
blackboxswwow powersj you redid all docstrings22:50
blackboxswthanks man22:50
blackboxswI love it22:50
powersjblackboxsw: np figured now is the time22:53
powersjI did use pydocstyle to test them too22:53
powersjfew are incomplete in terms of args as I only took what was there and updated it.22:54

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