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

=== sambetts_ is now known as sambetts
smoserpowersj, I think you opened a bug for https://jenkins.ubuntu.com/server/view/Cloud-init/job/cloud-init-style/38/console right ?13:23
powersjsmoser: yes13:26
smoserlink ?13:26
powersjhttps://github.com/PyCQA/pylint/issues/144413:54
smoserpowersj, thats a good quality bug report.14:04
smoserthank you14:04
smoserpowersj, or blackboxsw https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32440114:36
smoserfiddle.14:36
smosergot an extra commit. will fix14:36
smoserfixed14:37
=== smatzek_ is now known as smatzek
=== rangerpbzzzz is now known as rangerpb
smoserblackboxsw, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32440115:53
smoserthe reason i use os.path.sep.join is that os.path.join("/etc", "/passwd") ends up giving you "/passwd"15:54
smoserwhich i think is just horrible15:54
smoser$ python -c 'import os, sys; print("sep.join: %s" % os.path.sep.join(sys.argv[1:])); print("path.join: %s" % os.path.join(*sys.argv[1:]))' /etc /passwd15:56
smosersep.join: /etc//passwd15:56
smoserpath.join: /passwd15:56
smoserpowersj, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32440116:07
smoserdo you know... do we re-use .tox in c-i ? will we have to kill something to make it refresh tox ?16:08
powersjsmoser: not sure I follow. What do you mean refresh tox?16:09
smosertox -e pylint16:11
smoserthat installs stuff into .tox/pylint16:11
powersjah ok16:11
smoserand (i think) subsequent runs of 'tox -e pylint' will *not* freshen .tox/16:11
powersjIn CI we use a new directory for every run16:11
smoseri m ight be wrong.16:11
smoserok, then yeah, that should be fine.16:11
powersjyeah16:11
powersjfresh check out too16:11
smoserok. so can you ack that MP ?16:12
powersjoh yeah - sorry about not catching the diff. Launchpad has been doing that to me as well16:13
powersjdone16:14
smoseryeah, annoyinng16:14
smoserwe shoudl probably open a bug16:14
* smoser does that16:14
seanbrightare user questions on topic here?16:26
smoserseanbright, sure16:27
smoserpowersj, filed at https://bugs.launchpad.net/launchpad/+bug/169257116:27
ubot5Ubuntu bug 1692571 in Launchpad itself "sometimes diff shown in git merge proposal is not updated" [Undecided,New]16:27
powersjsmoser: thx16:27
seanbrightsmoser: i'm actually reading a bug report now that may answer my question. back in a tick.16:28
smoserk16:28
blackboxswsmoser: +1 I thought that the values coming out of pkg-config  would be the root path /..././.   and since we are adding a string which setup controls, ''systemd-fsck@.service.d' we shouldn't hit that issue. But defensive programming makes sense.16:31
seanbrightsmoser: was looking for an elegant solution to this -> https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/115362616:35
ubot5Ubuntu bug 1153626 in cloud-init (Ubuntu) "Multiple Interfaces and IPs not detected in AWS VPC" [Medium,Triaged]16:35
seanbrightoh. fancy bot.16:35
seanbrightbut i'll just try to work with some of the suggested work arounds mentioned there16:36
smoserseanbright, well, there is a path to that now..16:44
smoserbut it still takes some dev work16:45
smoserwe are hoping to address it16:45
smoserseanbright, its been quite some time since we'd have loved to have a solution for that. :-(16:47
seanbrighti might take a stab at it16:53
seanbrightbut no promises16:53
smoserrharper, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/324338 i'd appreciate a 'please fix these things' or 'approve' i've resaponded to your comemnts17:05
smoserand also blackboxsw or rharper on https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32427417:06
rharpersmoser: ok17:12
smoserand i'll trade for a bcache review now17:13
* smoser finds17:13
powersjrharper: seems your ntp changes broke the integration tests over the weekend from https://bugs.launchpad.net/cloud-init/+bug/164564417:40
ubot5Ubuntu bug 1645644 in cloud-init (Ubuntu) "ntp not using expected servers" [Medium,In progress]17:40
rharpersmoser: when I examine the journalctl of cloud-init units (in xenial up through artful) I don't see any DEBUG level items, just stdout/stderr17:40
powersjI noticed you made updates to the tests too, but the user-data pools are not found in the output17:40
rharperpowersj: likely fubar'ed the merge17:40
rharperbasically we run ntpd -q to dump what servers it found; and compare that with the user-data17:41
rharperdo we have the artifacts ?17:41
rharpersmoser: comparing /var/log/cloud-init.log vs. journalctl output  ; that's how I know there are messages being emitted but not showing up in the unit log ... thoughts on what changed ?17:42
* powersj adds a card to keep artifacts from integration tests O.o17:42
powersjlet me get you a copy of them17:42
rharperk17:42
powersjhere is what ntpq_servers produces https://paste.ubuntu.com/24625221/17:44
rharperthat looks like the defaults17:44
rharpervs. what we may have put in there17:44
rharperin the user-data configuration17:44
powersjntp_conf_pools https://paste.ubuntu.com/24625227/17:44
rharperyeah, and we'll need the written ntp.conf file17:45
rharperand the cloud-init.log (which should log what it wrote)17:45
powersjhttp://paste.ubuntu.com/24625234/17:46
powersjMy run command: tox -e citest -- run -n xenial -t modules/ntp_pools17:46
powersjah actually my local run won't have your change in cloud-init17:47
powersjso I need to run with the local tree real quick and get the failure the jenkins job saw, since it runs with a locally build "daily" cloud-init17:48
rharperyes17:48
rharperit looks like it rendered template, but didn't restart ntpd (which is what the fix does)17:48
rharperwe should see a run_cmd doing systemctl reload-or-restart or a 'service ntp restart'17:49
rharperin the log17:49
=== sambetts is now known as sambetts|afk
smoserrharper, ok. back. finished your bcache review request18:01
rharperthanks, I'll check18:01
smoserrharper, right. you dont see those in stderr and stdout any more . you actually never were supposed to. i forget the change that fixed that.18:02
rharper=(18:02
rharperwell, it breaks cloudinit-analyze working with journalctl output18:02
smoserbut by default running 'cloud-init' shouldnt just  print debug level sutff to stdout. intstead it logs to console.18:02
smoserer... to log file.18:02
rharperwhich has high res timers18:02
smoserlog file shoudl now have high res timers18:02
smoserright?18:02
rharperlemme see18:02
smoseras we are not going through syslog18:02
rharpermicro second18:03
rharperbetter than second level18:03
smoserwell, millisecond18:03
rharperah, yes18:03
smoser1000th18:03
rharperack18:03
smosermilli? micro18:03
smoseryeah, your'e right18:03
rharpermilli IIRC18:03
rharperat least subsecond =)18:03
smoseri suspect that we weren't really getting prcision better than that (or not *much*) better than that18:03
rharperI did enjoy getting cloud-init verbose output from journal, but understand w.r.t debug18:04
powersjsmoser: https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/324429 fix for ntp failures19:19
powersjsmoser: https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/324430 fix for snappy failure on proposed/artful tests19:19
powersjrharper: thx for the reviews, just updated the snappy one with my comments. 100% open to ideas on how to work around this one.19:28
rharperack19:32
* rharper goes to pickup kiddo19:32
smoserpowersj, thank you for that.19:34
smoserrharper, since you had done merge back and forth, a rebase was non-trivial, and that function actually was a collision and i had to resolv by hand.19:36
smoserits much easier to handle a rebase since ultimately thats what i'm after.19:36
smoserit was kind of disappointing that i couldnt just 'rebase -i' and squash stuff on your branch.19:37
smoserpowersj, https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/32442919:41
smoserclean that up and i'll grab it quick19:41
powersjsmoser: heh on it19:41
powersjsmoser: done19:43
rharpersmoser: I'm happy to know how to handle those in the future ... I end up doing a rebase -i twice, once when I merge in master and then again after I push to my -u branch19:56
rharperI know some folks --force push but I'd prefer to not do that;   it's strange to me (and I'm sure I don't understand what git's doing) that I can't have my remote branch pull in the rebase from master and have it fast-forward to apply the actual changes19:58
smoserrharper, twice ?20:00
rharperin my local branch, I git rebase -i master20:00
rharperreplay and fix it up against master;, then I git push -u raharper ... and it fails, saying I need to merge changes20:00
rharperso then I git pull from my remote, and it has the  same conflicts that I had to resolve when I did my rebase -i on master20:01
smoserah.20:01
smoserso yeah, rebase and having to 'push --force' does stink20:01
rharperthe only thing that's worked is if I rework the patch before rebasing it20:01
smoseri always do:20:01
smoser git rebase -i master20:01
smoser git push smoser HEAD20:01
rharperah20:01
smoserand with --force20:01
rharperoh20:01
smoserbut then the single branch gets pushed20:01
smosernot all my branches, as yeah, that'd be scary.20:02
rharperit sorta feels like we're missing something20:02
smoserwell, rebase pretty much is always going to require a push --force i think20:02
smoserright ?20:02
rharperlike it seems of little use to git push -u if I'm going to have to do that20:02
smoserit *is* not a strict fast forward.20:02
rharpermaybe; I don't think I know enough git to answer clearly20:02
rharperit seems like I want to push HEAD into the remote20:02
rharperand then "remotely rebase"20:03
rharperie, we should only need to do the rebase once20:03
rharperthe changes are *identical*20:03
smoserwell, push is just dumb. it pushes what you have here over there.20:03
rharpersince it's a mirror of operations20:03
rharperI mean, I do as you say, git fetch origin, git rebase -i master (fix up and complete rebase);20:03
rharperI should be able to update origin at my remote; and then replay the same rebase operations20:04
rharpersays the non-git-expert20:04
smoserwell, push is just dumb. in that all it does is set refs. it doesn't do stuff on the server othe rthan that (and check that it is "fast-forward" or not)20:04
rharperyeah20:04
rharperbut force just overwrites things20:05
rharperseems like it could figure it out but I don't really know enough20:06
=== x58 is now known as TerceroEquis
=== TerceroEquis is now known as x58
paulmeyHi smoser, I just saw your comment re https://bugs.launchpad.net/cloud-init/+bug/1692093 ...20:52
ubot5Ubuntu bug 1692093 in cloud-init "Cloud init is re-executing fs and disk setup during reboot" [Undecided,Confirmed]20:52
paulmeywe actually also have the same exact issue with new instances that attach an already prepared data disk20:53
paulmeyit gets wiped, even when the fs_setup info matches...20:53
paulmeyI agree that we shouldm'20:53
paulmeyshouldn't run cc_disk_setup on every boot, just to catch the ephemeral disk...20:53
paulmeybut somehow, we also have to figure out a way to get good answers from lsblk that aren't dependent on timing...20:55
=== nacc_ is now known as nacc
paulmeyleft a comment on the review...21:51

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