/srv/irclogs.ubuntu.com/2019/11/06/#juju.txt

timClicksI've just published a beta-quality plugin: juju-remove https://discourse.jujucharms.com/t/new-plugin-juju-remove/231801:46
timClickshopefully this will prevent some papercuts01:46
wallyworldtimClicks: curious, was that in response to user feedback?01:53
wallyworldhpidcock: for sometime today, a small 2.7 fix https://github.com/juju/juju/pull/1086301:54
hpidcockhappy to do it now, just got myself a coffee01:54
timClickswallyworld: no, was definitely in the scratch own itch01:54
timClickscategory01:54
timClicksI kept tripping over it getting annoyed with juju that there wasn't a single remove command01:55
timClicksI also wanted an excuse to play around with pylibjuju01:56
wallyworldone reason is that remove-machine and remove-relation both accept integers01:56
wallyworldso which one is intended when "2" is supplied01:56
wallyworldbut yeah, a lot of times you know what you want to remove01:57
timClicksmost of the time that's not a problem01:57
wallyworldexcept when it is :-)01:57
timClicksand when it is, the command asks01:57
wallyworldso if i type juju remove 401:57
wallyworldhow does it know relation 4 or machine 401:58
timClicksright now, it'll treat it as a machine01:58
timClicksbut there is some logic that I haven't committed to extract all named entities and try to find duplicates01:58
wallyworldmight be worth adding 0/lxc/3 to the examples01:59
timClickspatch welcome01:59
timClicksthere's a todo in the code01:59
timClicksi decided to pull back from implementing everything and seeing if people like it01:59
anastasiamacwallyworld: PTAL https://github.com/juju/juju/pull/1086402:07
wallyworldanastasiamac: i think warnings are ok for list/show. explanation in the PR02:16
anastasiamacwallyworld: k but i disagree with ur other stmts ... do u have a min?02:16
wallyworldsure02:17
anastasiamacstdup?02:17
wallyworldok02:17
hpidcockwallyworld: https://github.com/juju/juju/pull/10863 LGTM02:34
wallyworldlooking02:35
wallyworldoh02:35
wallyworldthanks02:35
hpidcockyeah can you PR your own PR plz :P02:35
wallyworldanastasiamac: here's some cherry picks from develop into 2.7 rc2 https://github.com/juju/juju/pull/1086503:59
hpidcockwallyworld: no rush https://github.com/juju/version/pull/6 but need this for CAAS upgrade code (so we can match version-hash tag in dockerhub)04:49
wallyworldlooking04:50
kelvinliu_wallyworld: this pr is for adding content interface consumer side to Juju, thanks! https://github.com/juju/juju/pull/10857, also updated microk8s side.04:54
wallyworldkelvinliu_: gr8, looking, just need coffee real quick05:04
wallyworldkelvinliu_: do we need the install hook anymore? isn't having the connect-peers script sufficient?05:10
kelvinliu_wallyworld: just went to get some coffee. im not sure if the connect gets created automatically if microk8s was installed first, then Juju.05:15
kelvinliu_coz I tested by manually creating the connection05:15
kelvinliu_as we don't pull if the images are there, it might be ok even if the two hooks are all fired,05:17
wallyworldkelvinliu_: the way i thought the content interface worked is that it would always trigger regardless of install order. i do think the install hookis now redundant05:18
wallyworldcan you do a quick test without the install hook to confirm?05:18
kelvinliu_not sure how to test this.05:19
wallyworlddelete both. install in different orders. check the hook logs and the microk8s registry05:19
kelvinliu_snap connect juju:peers microk8s:juju-info05:20
kelvinliu_no, because we manually connect them05:20
wallyworldwhat is "we"05:21
wallyworldthe connection should be done by the snapd infrastructure automatically05:21
kelvinliu_we -> tester05:21
wallyworldcan we have a HO?05:21
kelvinliu_hangout?05:21
kelvinliu_wallyworld: no.. i have to rename the snap and rebuild them, coz the snap name has to be uniq. no namespace concept here.05:43
wallyworldyup, flat namespace05:44
kelvinliu_wallyworld: https://forum.snapcraft.io/t/approval-for-fwupd-classic-snap/5755/1106:06
kelvinliu_wallyworld: confined snap can't use plug/slots..06:07
wallyworldoh06:08
kelvinliu_snapstore complains   - confinement 'classic' not allowed with plugs/slots when i was trying to push the snap..06:08
wallyworldfark, ok. i'll email zygmund06:09
kelvinliu_good to catch this now or next release will be interrupted..06:10
kelvinliu_well, next edge push, probably not release.06:10
wallyworldyeah, i've emailed him so we'll see what he says06:15
kelvinliu_wallyworld: I will keep those two PRs  not merged for now06:16
wallyworldyup, ty06:17
kelvinliu_np06:21
wallyworldkelvinliu_: what exact error did you get from the store? can you paste me the command used and error message?06:50
kelvinliu_wallyworld: https://pastebin.ubuntu.com/p/Tv4ZdqcgzZ/06:53
kelvinliu_wallyworld: here is the error return from snapstore06:54
wallyworldty06:56
kelvinliu_np07:02
stickupkidachilleasa, https://github.com/juju/juju/pull/10862/commits/176c41e5f73709778f2802e4afefb89b0a41c1b010:34
achilleasastickupkid: nice!10:39
stickupkidachilleasa, review done10:42
achilleasastickupkid: regarding the ec2 prefix, doesn't main.sh include all files? or does each test-suite run in a sub-shell and we can't have name clashes for functions?10:46
stickupkidachilleasa, it only includes files in "includes" everything else is included as required10:46
stickupkidachilleasa, i'd need to check10:47
achilleasaI wasn't 100% sure hence the prefix10:47
stickupkidachilleasa, it only includes "includes" and the test suite in question10:47
stickupkidachilleasa, if you run the whole suite it will cause conflict10:48
stickupkidachilleasa, nobody is going to run the whole test suite tbh, maybe we should block running the whole test suite10:48
stickupkidachilleasa, it would really take a LONG time, also I'm sure it would overwrite old functions with new ones, so should be fine10:49
achilleasais it one CI job / suite the pattern we are currently going for?10:49
stickupkidachilleasa, one CI job per test suite10:50
stickupkidotherwise it would take way too long10:50
stickupkidesp. if we're going to try and have 100s10:50
achilleasacool. just checking bec the spaces one relies on the presence of a floating nic for each test :D10:51
stickupkidachilleasa,  you will have to add a jenkins job though10:51
stickupkidachilleasa, i.e. new suite == jenkins job10:51
achilleasastickupkid: yeap; I will leave that for next CI day ;-)10:52
nammn_demanadart: im currently looking into adding the "list-commits" command. Currently our mongo model does not have something similiar, right?  Like a inc. id number for each commit.  Following the doc I would add one, wdyt?11:06
nammn_demanadart: ohhh it could be that we have one `_id` : <longchars: <number:>11:06
manadartnammn_de: You want "GenerationId"11:08
nammn_demanadart: but afaict the generationid is not unique, right? It "only" tells me whether and how much it has been commited11:08
nammn_dethe doc spec tells me somehing like: juju show-commit 311:08
nammn_deis expected11:09
manadartnammn_de: It is unique, monotonically increasing.11:09
nammn_demanadart: maybe we are talking about something different. Thats my output from mongo https://pastebin.canonical.com/p/s44W68zccy/11:11
manadartnammn_de: It will be 0 for any branches that are in flight, or that were aborted. It starts at 1.11:12
nammn_demanadart: time for a quick ho just to make sure?11:12
manadartnammn_de: In daily.11:13
hmlstickupkid: related to pr 10862, are we going to require if you  use -l that the controller is the active one?13:17
stickupkidhml, can you show me the output of juju show-controller --format=json13:26
hmlstickupkid: https://pastebin.canonical.com/p/QvZBNZwyqs/13:27
stickupkidhml, we don't offically support localmaas, or anything but lxd and aws13:30
hmlstickupkid: right, but i’m not trying to use that controller for the tests13:30
stickupkidthe show-controller thinks you are13:31
stickupkid juju show-controller <local-controller> --format=json13:31
hmlstickupkid: but i used the -l flag in the cli cmd13:31
stickupkidcan you pastebin that with the local-controller name?13:32
hmlstickupkid: it’s in the first pastbin13:32
hmlpastebin13:32
stickupkidah - damn it "localhost"13:32
stickupkid:(13:32
stickupkidhml, https://github.com/juju/juju/pull/10862/commits/6e63b5b60dd08fd94294261967c58939d12107be13:46
hmlstickupkid: will look after the mtg13:56
stickupkidhml, ta13:56
rick_hstickupkid:  did that 2.7 edge building work out?14:34
stickupkidrick_h, it would seem so https://launchpad.net/~juju-qa-bot/+snap/2.7-edge14:35
rick_hstickupkid:  cool yea looking at the builds. I thought manadart backported this morning but maybe it's not hit yet14:35
stickupkidrick_h, let me have a look14:36
rick_hstickupkid:  all good, it  hit an hour ago but these build every 4 I think?14:36
stickupkidyeah it is14:36
rick_hstickupkid:  cool cool, just making sure since we're landing stuff like crazy on there :)14:36
stickupkidmanadart, quick CR for a backport https://github.com/juju/juju/pull/1086914:45
manadartstickupkid: Yep.14:48
stickupkidgood man14:48
manadartstickupkid: Ticked like an old cattle dog.14:54
stickupkidwhat's up with the windows unit tests14:57
stickupkidi think we're smashing the windows box to obilvian14:58
manadarthml: Minor mechanical one: https://github.com/juju/juju/pull/1087016:00
hmlmanadart:  trade you: https://github.com/juju/juju/pull/10872  it’s a draft until i get a full set of unit tests run.16:40
hmlmanadart: was otp16:40
hmlachilleasa: do you have a few to qa and review ^^ also16:47
achilleasahml: sure16:50
stickupkidrick_h, i'm making a model migration as my first step... I'll add that to trello16:52
rick_hstickupkid:  sounds like a party16:54
stickupkidrick_h, it should help me prevent it from breaking whilst i make changes :D16:55
rick_hstickupkid:  hah sounds good16:55
hmlachilleasa: manadart: looking to see if i can untangle some of the interfaces/mocks/shims between the containerizer and apiserver/provisioner with this.17:26
stickupkidachilleasa, let isn't available in most shell environments :(17:42
stickupkidachilleasa, i've updated it to be compatible17:42
achilleasastickupkid: really? I have been using let like forever :D... maybe we should just use bash everywhere17:43
stickupkidachilleasa, i'm adverse to it atm17:43
stickupkidachilleasa, Constraints Liberate, Liberties Constrain17:43
achilleasaone shell to rule them all? :17:44
achilleasa:D17:44
pmatulisis "workload status" a thing in the juju universe? if so, what does it mean?17:49
stickupkidanyone want to CR an integration test around model migrations https://github.com/juju/juju/pull/1087318:05
stickupkid?18:05
stickupkidi'm still impressed that we can bootstrap 2 controllers, deploy two charms and run a model migration, with a ton of introspection in under 5 minutes18:06
hmlstickupkid: if i get a chance i’ll take a look, have a queue of reviews going :-)18:08
tvansteenburghrick_h: Do you know when --series=focal will be available in juju?20:18
N3tw0rKwhat can I do if I have a host stuck in waiting/allocating, the node is booted and waiting so im assuming the agent wasnt installed. Is there a way to force the agent to retry?20:24
rick_htvansteenburgh:  mid-cycle20:38
rick_htvansteenburgh:  we've agreed to track the next series and have it available by mid-cycle20:39
rick_hN3tw0rK:  hmmm, you can retry-provisioning but might have to check the cloud-init logs to see what wasn't happy20:39
tvansteenburghthanks rick_h20:39
kelvinliu_wallyworld: a tiny intermittent test failure fix, would be great to take a look when u got time, thanks ! https://github.com/juju/juju/pull/1086620:57
wallyworldanastasiamac: this PR backports the doc link fixes to 2.7 https://github.com/juju/juju/pull/1087523:46
anastasiamacwallyworld: k23:46
wallyworldanastasiamac: i didn't want to solve the world for the 2.7 PR as we are past time to finalise that branch; just a straight backport so that we don't ship with stale urls at least. and we can solve it properly or differently in 2.823:51
anastasiamacwallyworld: yep, hence +!23:51
anastasiamac+1 even :D23:52
wallyworld! works for me23:52
anastasiamac:)23:52

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