/srv/irclogs.ubuntu.com/2018/08/03/#juju.txt

thumperI finally worked out the watch incantation to watch functions with xenial and dash00:46
thumperwatch -x bash -c <func>00:46
thumperanyone... https://github.com/juju/juju/pull/900700:52
thumperbabbageclunk: ping01:15
babbageclunkthumper: pong01:17
thumper2m, witing email01:17
babbageclunkokies01:17
thumperbabbageclunk: back01:17
thumperhangout?01:17
* thumper sighs while trying to find the bug01:22
babbageclunksorry01:24
babbageclunkthumper: hangout now?01:24
thumperyeah01:24
thumperbabbageclunk: I'm in our 1:1 meet01:25
babbageclunkhang on, my computer got very busy deploying things01:26
thumper:)01:26
thumperand another https://github.com/juju/juju/pull/900801:27
anastasiamacwallyworld: any chance u could PTAL https://github.com/juju/juju/pull/9009 (maas CC changes)02:30
wallyworldok02:30
veeberswallyworld: FYI have put this up https://github.com/juju/charmstore/pull/820 once that lands I can update charmrepo.v3 and juju with the deps and propose03:08
wallyworldveebers: lgtm, :shipit: i think you do03:10
veeberswallyworld: do you know if the shipit process runs the tests too? the test run failed do to some internet connectivity issue.03:18
veebersnot sure how to trigger a rebuild yet03:18
wallyworldi think it does03:18
veeberswallyworld: It's possible my shipit message is being ignored :-)03:20
wallyworldi'llcheck03:21
wallyworldyou weren't patient enough03:22
wallyworldlooks like it's working03:22
wallyworldveebers: internal/charmstore/resources_test.go:661: undefined: resource.TypeDocker03:23
veeberswallyworld: crap missed one, on it03:23
wallyworldbest to run the tests locally03:23
veebersah, I commited to the wrong branch, godeps bounced me around :-)03:24
veeberswallyworld: I had some issues running tests locally, but sorted now and should be landing soon. I'll cleanup with the others (charmrepo.v3 then juju) and once landed send an email out04:04
wallyworldgr8 ty04:05
veeberswallyworld: FYI https://github.com/juju/charmrepo/pull/142 (one more step after this one :-))04:14
wallyworldlgtm ty04:15
veebersah, failed, it needs an extra dep due to new charmstore dep /me fixes04:17
veeberswallyworld: FYI I updated the juju/testing dep on charmrepo.v3 too04:29
wallyworldsgtm. is that the one with kelvin's change?04:29
veebersit's the latest one, using the old version it had made tests fail on my machine04:31
veeberswallyworld: and finally https://github.com/juju/juju/pull/901205:03
wallyworldveebers: lgtm ty05:04
veeberswallyworld: fyi I just pushed a oneline dep change to include the swift dep coming from charmstore. Emailing now too05:15
wallyworldty05:15
babbageclunkwallyworld: do you know about the go vet failure in k8s.go?05:32
wallyworldno?05:32
babbageclunkI refer the gentleman to my previous statement.05:33
wallyworldbabbageclunk: you mean there's one in tip of develop?05:33
wallyworldi've run go vet today without error05:34
babbageclunkyup.05:34
babbageclunkHmm - I just rebased to see if it was fixed and got the problem again.05:34
wallyworldbabbageclunk: tim had an issue like this and clearing the pkg files fixed it05:34
veebersanastasiamac: \o/05:34
anastasiamacveebers: ?05:34
babbageclunkwallyworld: ok, I'll try that05:35
veebersanastasiamac: saw your PR come through for the test fix (hopefully)05:35
wallyworldbabbageclunk: the landing bot should reject such things nowadays05:35
anastasiamacveebers: oh yes :)05:35
anastasiamacveebers: if this is it, there is another place that has similar setup... i think juju/juju/mongo05:36
babbageclunkwallyworld: yeah, that fixed it.05:38
wallyworldgr8. nfi what happens there05:38
babbageclunkwallyworld: weird though - the problem it was complaining about seems legit. It's saying the format string has %d but the arg is a resource.Quantity (which is a struct).05:43
babbageclunkwallyworld: eg on line 1495 of k8s.go05:45
wallyworldbabbageclunk: yeah, i see what you mean05:46
wallyworldi might fix as a driveby05:46
babbageclunkAnd line 1498 was the other one.05:52
iceycross-posting from #maas - I have a machine in my MAAS that Juju cannot deploy to; when it requests a machine, I can see in the maas.log that a machine was requested but Juju reports "failed to acquire node: unexpected: ServerError: 404 Not Found (Not Found)" ; I'm not sure where to look next06:47
anastasiamacicey: what version of maas? juju?07:08
iceyMAAS version: 2.4.0 (6981-g011e51b7a-0ubuntu1~18.04.1) ; juju  2.4.107:09
iceyI'm currently removing and re-adding the machine to maas07:09
iceyas it reliably fails on the same machine07:09
iceyvery weird, re-added the machine to maas and it still shows a 404 when Juju asks for it07:33
iceylogs from the juju controller: https://pastebin.ubuntu.com/p/2bZycx4N7s/07:35
anastasiamacicey: and nothing else from Juju? I assume that juju is saying 404 not maas, right?07:36
anastasiamacicey: is it possible to get TRACE level logging?07:36
iceyanastasiamac looks like it07:36
iceyanastasiamac I can happily re-bootstrap asll day long :-D07:36
iceys/asll/all07:36
anastasiamacha :) m almost at eod so probably cannot help much... interesting that it's just that one machine... how is it differnt to other machines?07:37
iceyanastasiamac it's not; quite literally 3x supermicro boxes, identical07:38
iceyanastasiamac I can probably speed it up if I can target the machine directly; can I do machine name constraints?07:39
iceyI suppose I can just add a tag07:39
anastasiamacicey: if maas machine has a tag, u can use constraints to call that tag07:39
anastasiamac+107:40
iceyWAIT; apparently this machine is missing the tag I wanted on it07:40
iceyI wonder if that's it...07:40
anastasiamacicey: \o/ worth a try :D07:40
iceyI try adding just this machine first to see if it's resolved before I deploy my whole bundle again :-P07:40
anastasiamack07:41
iceywell anastasiamac my stupid test works to allocate it; going to try my bundle again07:45
anastasiamacicey: that's good news tho :)07:46
iceywow nope, I suppose it's a problem with my bundle or constraint though, given that it can be deployed to with specific tag constraints on the ubuntu charm07:48
iceyalternately, I forgot to configure my networking07:49
anastasiamacicey: m relieved it's not juju :) and it's k to use tags in the bundles too07:49
iceyanastasiamac I am using tags :-D07:49
iceyI just don't want to specify each machine explicitly given that they are the same types07:49
anastasiamac:)07:50
anastasiamaci wonder if u can specify a tag as a constraint in the application section...07:51
iceyanastasiamac I'm specifying the application placement on machines07:51
iceythe machines have tags07:51
iceyin my bundle07:51
anastasiamacicey: k...07:54
iceyanastasiamac I am beginning to suspect an issue with network spaces given that it seems to be the only difference07:55
iceyI'm about to go spelunking in diffing the maas machine requests07:55
anastasiamacicey: niiice :) have fun! m about to eod, eow in fact :D07:56
iceyanastasiamac I'm only about 6 hours behind you ;-) anjoy!07:56
anastasiamaco/07:56
iceydang, the network space requests seem to actually be the same, although in different orders07:57
iceywell, I'll keep digging07:57
iceysuper weird; it deployed that machine last time through; but failed to deploy containers on a different machine (container already exists); but then this time around it's failing to deploy that node again08:19
icey:-/08:19
iceyI think there's a new bug with containers on maas in juju with 18.04.1: https://pastebin.ubuntu.com/p/Gf3qkQ6SzS/09:25
magicaltroutrandom question folks on behalf of rmcd10:19
magicaltroutcan you have a subordinate.. of a subordinate?10:19
rick_h_magicaltrout: ...I mean that's just a subordinate with a relationship to another one right?10:33
rick_h_And you can define that protocol...I've related subordinates, but not in subordinate contexts I guess.10:33
rick_h_magicaltrout: what's the use case? Why doesn't need to be a subordinate relationship?10:34
rmcdSo basically...10:39
magicaltroutwe're create our own version of the hadoop plugin10:39
magicaltroutthat utilises the hadoop plugin :P10:40
rmcdI'm writing a charm for Druid which basically passes config files onto the separate Druid services. Right now, I'm working on implementing the HDFS backend for Druid, which requires me to be able to grab some XML files from Hadoop and place them into Druid.10:40
magicaltroutbut when we relate hadoop to druid config it doesn't do anything10:40
rmcdSo on the config charm, I'm trying to use a reactive handler that fires off when hadoop-plugin is connected, but both the config charm and the hadoop-plugin charms are subordinates.10:41
rmcdSo if I connect my config charm to my other Druid charms, that works fine. But if I relate hadoop-plugin to druid-config, it has 0 scale because, I'm guessing, you can't install a second-order subordinate charm in that way.10:41
rmcdBecause it'll try to install hadoop-plugin to druid-config, which doesn't have a server because it's on a container... if that makes sense.10:42
magicaltroutcertainly from a design standpoint it seems like its fine to have a subordinate of a subordinate because for example if your subordinate had a java dependency you'd want to use the java charm to install java10:46
magicaltroutso maybe its just our hooks10:47
rick_h_Yea, I mean things like telegraf are a subordinate that I believe can relate to other subordinates.10:53
rick_h_But it feels like a thing where order of deploy and such might make it a bit odd to get right10:54
magicaltroutrick_h_: kwmonroe cory_fu rmcd https://discourse.jujucharms.com/t/a-subordinate-of-a-subordinate/12112:28
magicaltrouti stuck it on there12:28
magicaltroutif anyone has any good ideas12:28
rick_h_magicaltrout: awesome ty12:28
jaceknhello. Does anybody know if I missed something obvious? I can't figure out how to list or consume CMR offer: https://bugs.launchpad.net/juju/+bug/178522312:51
mupBug #1785223: "juju offers" ignores -m flag <juju:New> <https://launchpad.net/bugs/1785223>12:51
mthaddonrick_h_: ^ anyone around who could help with that?12:55
rick_h_mthaddon: in standup one sec.12:56
rick_h_jacekn: this is on a single controller?12:57
jaceknrick_h_: "juju offers" is yes. I added offer and tried to list it to get URL12:59
jaceknrick_h_: but need to consume from different location (did not get that far)12:59
rick_h_jacekn: k, let me finish this standup and I'll look harder12:59
jaceknthanks13:02
maaudetWould it be considered a bad practice to install a custom daemon on a machine that runs custom hooks/tools using the "juju-run" command for a single unit?13:25
rick_h_jacekn: does juju find-endpoints work for you?13:25
rick_h_jacekn: sorry find-offers13:26
jacekntrying. It started and now it's sitting there after "13:26:33 INFO  juju.api apiclient.go:597 connection established to "wss://..."13:27
jaceknrick_h_: yep it found it: prodstack-is  admin/prod-nagios.nagios  admin   monitors:monitors13:27
rick_h_jacekn: k, adding some notes to the bug, offers are controller-wise not model specific since they're made to users on the controller and those users don't need/have model level access13:28
rick_h_jacekn: but I honestly can't recall the difference in list-offers vs find-endpoints...13:28
rick_h_jacekn: maybe list-offers are YOUR offers you've made13:28
rick_h_jacekn: and this user hasn't made them as the offer came from the admin? I'm not sure13:28
jaceknwell yes, that's what I wanted to see. I made an offer and I wanted to show it13:28
rick_h_jacekn: ok, will have to check with folks on what I'm missing on that but updated the bug and hopefully that helped unblock you for the moment.13:29
jaceknI run both "juju offer" and "juju offers" from the same user13:29
jaceknrick_h_: so honestly that does not actually unblock me that much. It confirms my offer is there but I can't see from the docs how to tell my other controller where to look for it. They are in different DCs even13:30
jaceknthere must be a place where I give it IP address or hostname13:30
rick_h_jacekn: yes, you can use the consume command to specify the controller and url to the offer13:30
rick_h_jacekn: but note that there must be a valid matching user on both controllers13:31
jaceknrick_h_: which IP should I use? Any of my 3 node HA controllers?13:32
rick_h_jacekn: you should have the controller in the local cache and not need to refer to IPs? /me double checks13:32
rick_h_jacekn: per the help docs on consume: juju consume anothercontroller:owner/othermodel.mysql13:32
jaceknrick_h_: sorry I don't get it. What local cache? My consumer controller knows nothing abotu the offer I made13:32
rick_h_jacekn: your local juju client. You need to be able to see both controllers when you run juju controllers13:33
jaceknah I see....13:33
rick_h_jacekn: if you can't you need to share/register/etc to get both controllers in your local list13:33
jaceknok that's the missing part!13:33
rick_h_jacekn: <313:33
=== Cynerva_ is now known as Cynerva
jaceknrick_h_: any idea where to start troubleshooting this: https://pastebin.canonical.com/p/YbNg8W5bDg/15:01
jacekn"juju consume" worked, I added relation and no hooks are firing15:01
jaceknI suspect FW problems but logs are not very clera15:16
jaceknyes it was FWs, now getting INFO juju.worker runner.go:483 stopped "nagios:monitors nrpe:monitors", err: <nil>15:35
nekobasuroadmr: Thanks for the pointer! It was the DNS server setting in the juju controller that caused the problem.16:39
roadmrnekobasu: no problem, I literally did nothing :)16:40
knobbydoes adding a unit to a model cause a config.changed hook call?17:39

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