/srv/irclogs.ubuntu.com/2017/06/20/#juju-dev.txt

menn0wallyworld: easy review: https://github.com/juju/juju/pull/751600:15
menn0wallyworld: also, jam would prefer it if we did bulk merges from 2.2 to develop instead of targeted PRs for each forward port00:15
=== menn0_ is now known as menn0
blahdeblahCan anyone explain to me what's happening here when I try to upgrade juju 2.1.3 controllers to 2.2?  https://pastebin.canonical.com/191338/00:30
blahdeblahIt seems like 2.2 client -> 2.1.3 controller connections are fairly fundamentally broken.00:31
=== bradm_ is now known as bradm
menn0blahdeblah: hmmm, that doesn't look good. let me do some digging00:57
blahdeblahthanks menn000:58
blahdeblahmenn0: confirmed on another controller which has been working fine up until now:00:59
blahdeblah[master*]paulgear@peleg:~$ juju status00:59
blahdeblahERROR unable to connect to API: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16"00:59
menn0ok00:59
blahdeblahseems like it's trying to do http to an https port or something00:59
blahdeblahI remember jam looking at something kinda similar with me recently, and I think it had something to do with some API requests being proxied and some going direct.01:00
menn0blahdeblah: I'm setting up a repro. in case it is proxy related, do you have $http_proxy etc set on the client machine?01:04
blahdeblahmenn0: yep01:05
blahdeblahhttps_proxy=http://127.0.0.1:3128/01:05
blahdeblahhttp_proxy=http://127.0.0.1:3128/01:05
blahdeblahno_proxy=localhost,127.0.0.0/8,::101:05
blahdeblahftp_proxy=http://127.0.0.1:3128/01:05
menn0blahdeblah: works fine for me without a proxy01:11
menn0blahdeblah: trying with a proxy in the mix01:11
blahdeblahmenn0: No difference to me whether I do it with or without those proxy settings01:17
menn0blahdeblah: very strange. I haven't been able to replicate yet.01:23
menn0blahdeblah: brb01:25
menn0blahdeblah: aha... if I have proxy settings set I get the same thing01:28
blahdeblahthat's progress, I guess; strange that it affects me when I unset them, though01:29
menn0blahdeblah: it took about 10mins from the connection attempt to the "malformed HTTP response" error though01:31
blahdeblahyeah - that's about how long it is for me01:31
menn0blahdeblah: now that I look at the timestamps I see that you get that too01:31
blahdeblahyep01:31
menn0blahdeblah: I'll do some more digging01:31
blahdeblahthanks - do you want a bug about this?01:32
menn0blahdeblah: yes please01:33
menn0blahdeblah: one likely cause is that we switched websocket libraries between 2.1 and 2.201:33
blahdeblahthat would seem a strong candidate01:34
menn0blahdeblah: to fix various issues01:34
menn0blahdeblah: perhaps there's a difference in proxy handling01:34
blahdeblahSeems like it :-)01:36
blahdeblahhttps://bugs.launchpad.net/juju/+bug/1698989 created01:41
mupBug #1698989: Can't connect to controllers, juju status hangs for 10 minutes <juju:New> <https://launchpad.net/bugs/1698989>01:41
menn0blahdeblah: thank you01:49
blahdeblahthank you! :-)01:49
menn0blahdeblah: I can definitely repro it when https_proxy is set, and it goes away with https_proxy is unsety01:50
menn0blahdeblah: can you double check at your end?01:50
blahdeblahAlready did, and mentioned that in the  bug01:50
blahdeblahDoesn't matter whether I set or unset the vars, it doesn't work01:50
blahdeblahWhich suggests to me that it's hiding a proxy setting somewhere else01:50
menn0blahdeblah: you don't have transparent redirect to the proxy or something set up?01:51
blahdeblahnope01:51
blahdeblahIs there a way I can curl/wget the API endpoint directly to verify with/without the _proxy settings?01:51
menn0I suspect you'll need a websocket client01:54
menn0blahdeblah: hmmm... I just did some packet sniffing and it looks like the client is trying to send a proxy CONNECT straight to the Juju API server port02:02
blahdeblahLOL02:02
blahdeblahIf we're using a proxy, ignore the proxy and try to use our API server as the proxy! :-)02:03
menn0maybe something like that02:03
menn0blahdeblah: it's still a mystery why disabling the proxy env vars doesn't work for you02:05
blahdeblahindeed02:05
blahdeblahbut it should work with, regardless02:05
menn0blahdeblah: for sure02:05
blahdeblah(and did work on 2.1.3...)02:06
menn0blahdeblah: I'm just wondering that's there's more to this02:06
menn0blahdeblah: anyway, I'll do some digging through the gorilla websocket code02:06
blahdeblahenjoy02:06
wallyworldjam: here's a PR to improve update status hook firing. sadly, having the uniter efficiently be able to listen to just changes to that value and pick up the new one is somewhat non-trivial, so not done for now https://github.com/juju/juju/pull/751904:39
jamwallyworld: looking, found at least 1 typo so far, will finish review after standup05:01
wallyworldok, thanks05:01
wallyworldjam: i fixed one, so refresh before looking again05:04
jamwallyworld: kk, 'greater' vs 'less than'05:04
wallyworldyup05:04
wallyworldsigh05:04
jamwallyworld: reviewed06:09
wallyworldurty06:09
jam?06:16
wallyworldjam: sorry, typo06:19
wallyworldi responded to some comments06:19
wallyworldthe listen for changes thing is a lot of work potentially06:19
wallyworldso you need to use --config when bootstrapping or adding a model really06:21
wallyworldat least with the random times, existing models still get benefit06:22
wallyworldthat was my thinking anyway06:22
wallyworldin any case, we can land this and follow up with work to listen for changes if there's time06:22
wallyworldby we only have 1 day or so till release06:23
jamwallyworld: do we have a way to change it during upgrade?06:23
wallyworldwhenever agents bounce, they will read any current value, but you can't set the value before upgrade because juju 2.2.0 foesn't know about the setting06:23
=== fnordahl_ is now known as fnordahl
jamwallyworld: juju upgrade-juju should take --config06:41
wallyworldmaybe, but it doesn't :-)06:42
wallyworldwould be nice though06:42
jamwallyworld: I think we're missing it on upgrade-charm as well, essentially we need all the 'deploy' flags for upgrade06:42
wallyworldit definitely would be nicd to add06:43
wallyworldmaybe something for the sprint06:43
wallyworldjam: i think the issue last time with mandatory config was people using a newer client with an older juju?07:19
wallyworldthe trouble with accepting "" is that it hides config errors07:20
wallyworldjam: i've added a second bit of bespoke default handling with a todo to remove later, and some testing for the timer value. could you PTAL? I've also pushed another PR to fix the monfig-config feature request for 2.2.1. off to soccer for a bit but back later08:16
jamk08:17
stubwallyworld, jam : https://bugs.launchpad.net/juju-core/+bug/1244841 is adding --config (and other deploy flags) to upgrade-charm. It also came up as part of storage, where if there are deployments of your charm you can never add mandatory storage because there would be no way to upgrade the existing deployments.09:01
mupBug #1244841: support atomic upgrade-charm --config var=val ... <canonical-webops> <config> <upgrade-charm> <juju:Triaged> <juju-core:Won't Fix> <https://launchpad.net/bugs/1244841>09:01
menn0blahdeblah, jam: I found the proxy bug10:02
menn0blahdeblah, jam: updating the ticket10:07
jammenn0: I didn't see an update yet, so I might as well ask here what you found10:25
menn0jam: it's there now10:36
jamthanks menn010:36
jamI think we just kill the DNS cache10:36
menn0jam: I'm beginning to agree10:37
menn0jam: I was just reading your PR where you had reservations about the feature10:37
menn0jam: the commentary seems to indicate the cache is important for cert validation10:38
menn0is that actually true?10:39
jammenn0: my understanding was that they needed to change what we were doing because of cert validation10:39
menn0jam: I'll continue with this tomorrow10:41
menn0jam: too tired to think too hard about it now10:41
menn0jam: it seems like "killing the cache" will have to be done carefully10:42
jammenn0: maybe, I'm happy to chat specifically about my understanding of it10:44
jamRog's patch seems more about ultimately dealing with slow DNS but otherwise handling the fact that we were tracking addresses in a way that conflicted with them wanting to force hostnames for JAAS controllers10:45
menn0jam: that's why I said "carefully". we have to not break the JAAS requirements when winding some of this feature back.10:47
jammenn0: yeah, my guess is that if we just don't do internal DNS caching, it will use existing DNS and just work10:48
jambut testing, etc.10:48
* menn0 nods10:50
menn0jam: and this is quite important to fix. I almost marked the bug as Critical10:50
jamburton-aus: are you around?10:57
jamwe just got a weird failure in CI trying to land a patch10:58
jamand it looks like a buggy script10:58
jamhttp://juju-ci.vapour.ws:8080/job/github-merge-juju/11160/artifact/artifacts/windows.log10:58
jam['scp', '-oStrictHostKeyChecking=no', '-oServerAliveInterval=120', '-oUserKnownHostsFile=/tmp/tmpTtb9OC', '-i', '/var/lib/jenkins/cloud-city/staging-juju-rsa', 'juju-core_2.3-alpha1.tar.gz', 'Administrator@developer-win-unit-tester.vapour.ws:\'\nimport tempfile\nprint tempfile.mkdtemp(prefix=\'"\'"\'workspace-runner-\'"\'"\')\nc:\\users\\administrator\\appdata\\local\\temp\\workspace-runner-r1g7mn/ci\'/']10:59
jam' returned non-zero exit status 110:59
jamwhy would you have "scp" .... "import tempfile\nprint"10:59
jamthat looks like it is mixing 'ssh' and run python with 'scp' working files back out10:59
burton-ausjam no idea, but I just triggered a re-run.11:05
burton-ausjam nicholas was working on the windows machine.11:05
jamk, I was looking to file a bug in case11:05
jamburton-aus: offhand that looks like it interpreted a string wrong11:05
jamburton-aus: like maybe that was supposed to decide what the name of the temp directory was11:05
jambut instead it interpreted the literal string that was generating it11:05
jamas the path11:05
burton-ausjam I don't have knowledge on the windows slave. Nicholas was updating ssh key or something in the past several days.11:06
burton-ausjam and by looking at several previous jobs they were not involved in windows run.11:07
burton-ausjam from the latest email I received, nicholas is working on migrating and updating windows slaves.11:08
jamburton-aus: rerun failed in the same way: http://juju-ci.vapour.ws:8080/job/github-merge-juju/11161/artifact/artifacts/windows.log11:27
burton-ausjam maybe you want to draft an email to nicholas?11:28
burton-ausjam he must know more details about that windows slave.11:28
jamk11:28
jamburton-aus: emailed11:31
burton-ausjam got it.11:32
=== dames is now known as thedac
babbageclunkwallyworld: ping? I saw that bug about subordinates and upgrading - looks like anastasiamac's working on it? jam wanted me to do some stress testing on the status history pruning so I'll do that otherwise.22:01
wallyworldbabbageclunk: sgtm, ty. just in release call. we may need you to help with the subord thing depending on how it goes. first up though, could you pretty please do a review of a yucky cmr pr? https://github.com/juju/juju/pull/752222:02
babbageclunkwallyworld: sure, looking now22:03
wallyworldsorry in advance22:03
babbageclunkugh22:03
babbageclunk;)22:03
wallyworldit's a lot of paper shuffling22:03
wallyworldbabbageclunk: assuming you get some scale testing done and your pr landed, could you take a look at this bug 1649936? it should be a straight logic error hopefully22:30
mupBug #1649936: Resources are getting deleted when juju remove-unit is issued <eda> <resources> <juju:Triaged> <https://launchpad.net/bugs/1649936>22:30
babbageclunkwallyworld: ok22:30
menn0babbageclunk: easy review pls? https://github.com/juju/juju/pull/752423:11
babbageclunkmenn0: ok23:15
babbageclunkmenn0: approved23:16
menn0babbageclunk: thanks23:17
thumperugh...23:36
thumperbrain fuzz starting already23:36
menn0_thumper: insert more coffee23:58
thumperI did23:58

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