/srv/irclogs.ubuntu.com/2018/06/27/#juju.txt

wallyworldkwmonroe: will do :-)01:36
thumperI'm not sure it is juju... just sayin02:48
thumperalthough I'm biased02:48
thumperwallyworld: just chatted with veebers about the launchpadlib upload bug02:49
thumperit seems it is a bug in the underlying python library, but we identified a potential work around02:49
wallyworldgreat ok02:49
thumperand veebers is testing it against staging lp02:49
wallyworldawesome02:49
wallyworldty02:49
thumperthank veebers02:49
veebersthumper: no worries, thanks for chasing that up02:50
veebersthumper, wallyworld argh, need to sort out 2fa for the staging sso. I set it up years ago. I think I might still have paper codes somewhere :-\02:57
thumperhaha02:57
thumperveebers: if it takes more than a few minutes, see if you can poke IS about it02:58
thumpersometimes it is faster to get it reset...02:58
veebersthumper: heh have already pinged. I think a reset is all that's possible :-)02:59
thumperI noticed :)02:59
* veebers checks room for thumpers hidden cameras03:00
thumperno, but I'm in the IS channel :)03:00
thumperand I have the konversation summary view with all channels in it03:01
veebershah ack, I have something similar03:03
veebersthumper: remind me that emacs mode you liked for binary/hex data03:20
thumperhexl-mode03:20
veeberssweet, thanks03:21
thumperhttps://bugs.launchpad.net/bugs/177874904:35
mupBug #1778749: error when using juju-reboot from hook <juju:New> <https://launchpad.net/bugs/1778749>04:35
wallyworldbabbageclunk: not sure if you'll have time today for that review? if you're in the middle of something can wait till another time04:47
babbageclunkwallyworld: oh, sorry! looking now04:47
wallyworldno worries, can wait if you're busy04:48
vinowallyworld: I have pushed the PR. please review it.05:16
wallyworldsure05:16
vinoiam yet to test the charm push05:16
vinoalso please let me know if more work is needed in unit test case.05:16
wallyworldvino: let me know if comments don't make sense05:25
vinosure wallyworld05:26
vinowallyworld: mostly name conventions.05:29
vinobut just one question05:29
wallyworldsure05:29
vinowe are not returning error incase version string is generated05:30
vinoso incase of error instead of logging what needs to be done.05:30
vinoi just want to make sure its empty string05:30
vinoannotate the err05:30
vino?05:30
wallyworldyou could argue that an error should result in the operation failing. but then again, should it be fatal if someone has a git charm checkout and no git available. i think we can start with just logging an error05:32
vinook. i will log at error.05:35
wallyworldor maybe a warning05:38
wallyworldi think a warning is better as an eror means fatal05:38
vinook sure.05:42
vinoand the last comment.05:42
vinois that for unit tests ?05:42
wallyworldyeah, there's ArchiveTo tests05:42
vinomore units tests for ArchieveTo05:42
wallyworldthey need to be updated or a new one added05:43
vinook.05:43
veebersthumper, wallyworld: just finished testing the launchpadlib upload issue workaround and it's all good. I'll push the updated script and fire off an email so the team is aware (in case, for whatever reason, things go borked during a release)06:05
wallyworldyay, ty06:05
wallyworldveebers: will ned to update the jenkins job to remove the warning text also06:05
veeberswallyworld: it might be worth keeping it there, in case something goes wrong with the work around. Although perhaps you're right /me being over cautious06:07
wallyworldifsomething goes wrong withthe workaround that's a bug to be fixed IMO06:07
veeberstrue, but it'll be good to have documented a workaround for the workaround, in case its work isn't around ^_^06:08
wallyworldit would but that's just papering over a problem that shjould now be considered fixed06:10
wallyworldi'm sure we could manually recovere from other issues with release jobs but we don't - we fix the job06:11
thumperveebers: thanks, I appreciate your effort around testing and checking07:23
manadartjam: Any glaring issues with mine and Simon's PRs? Keen to merge and move it along.09:01
jamwill look now09:02
jammanadart: there is something09:30
jamprobably small, thoug09:30
manadartjam: Shoot.09:31
jammanadart: specifically, you changed contanier.Metadata instead of being a map[string]string it is now *just* a modelUUID, and we shouldn't call that Metadata09:33
manadartThe prior implementation of metadata was an unnecessarily heavy abstraction that meterialised container config into a data structure called where it was set/retrieved and transparently written as container config prefixed with "user." where necessary.09:37
manadartNow, config is set directly with the prefixes, and metadata is just a method to retrieve the user-namespaced keys directly for all those custom keys - container UUID, model UUID , cloud-init ser-data etc.09:39
manadart^ "... into a data structure where it was..."09:39
jammanadart: yeah, actually I missed that you were passing the key *into* Metadata()09:45
naturalblueHi. Is it possible to have juju run a script on deploy of a machine. i am trying to have a loopback device created on deploy. Thanks10:00
rick_h_morning party people12:46
cory_fukwmonroe, wallyworld, thumper: To be fair, the most reasonable explanation that I can come up with for so many VMs is multiple runs of conjure-up, thinking that maybe some of them failed while waiting for the cluster to report ready, or during a post-deployment step.  We need to make it more obvious when a deployment fails after handing it off to Juju that it may be partially or even fully functional and how to interact with it or at least tear it14:18
cory_fudown.14:18
cory_fustokachu: https://github.com/conjure-up/conjure-up/issues/1482 re ^14:27
stokachu+114:31
naturalbluecan you change a space binding once lxd has been deployed15:16
manadartrick_h_: I said constraints should be easy, but it was *really* easy. I actually have it working here. Instance types is trivial too. I will test it properly and propose a PR in the morning.15:22
rick_h_manadart: cool ty for looking. It'll be fun to play with and I'm sure bdx and magicaltrout  will be very interested15:22
bdxmanadart: thats great news16:25
hmlstickupkid: if you look at https://github.com/juju/juju/pull/8849 - i added the gomock matcher16:36
stickupkidhml: OfTypeBool to me sounds like any bool would suffice, should the name be IsTrue?16:39
hmlstickupkid: i think i have it working for your choice of true or false16:40
hmlstickupkid:  at least the tests seems to indicate16:40
stickupkidhml: maybe we should explicitly test for bool i.e. return o.b == b.(bool)16:43
hmlstickupkid: perhap… gomock didn’t like the reflect line i had to check that the value was a bool16:44
stickupkidhml: https://github.com/juju/juju/pull/8849/files#r19856369716:44
stickupkidhml: better explained16:44
hmlstickupkid: thx16:45
Daltron7Hello there,21:14
Daltron7Can anyone tell me if they seen the error: DEBUG unit.neutron-gateway/0.config-changed Cannot find device "eno2" and ERROR juju.worker.uniter.operation hook "config-changed" failed: exit status 1.21:14
Daltron7P.S. I already have `net.ifaces=0` configured on the MAAS server21:15
rick_h_Daltron7: not sure, so the config-changed hook ran and whatever the charm is doing in that hood is failing with the error about eno221:18
rick_h_Daltron7: the config in question here is the application config "juju config neutron-gateway"21:19
rick_h_Daltron7: might have to hit up the charm authors to see what's failing21:19
Daltron7seems like it is trying to configure eno2 and failing: unit.neutron-gateway/0.config-changed subprocess.CalledProcessError: Command '['ip', 'link', 'set', 'eno2', 'up']' returned non-zero exit status 1.21:20
wallyworldbabbageclunk: thanks for review! the k8s stuff is gnarly for sure. but it works. i'll be documenting ther workflow and expected setup of storage classes etc and feedback there will help finetune the api usage22:39
babbageclunkwallyworld: cool, sounds good!22:43
veeberswallyworld, babbageclunk: When using state.db().Run(...) with a simple []txn.Op{} Inserting a doc that has an Id, should I expect that Id to be == _id for that entry?23:03
wallyworldno, as the model uuid is prepended23:04
wallyworldif you look at mongo directly23:04
veeberswallyworld: ah *thats* what it is, cool thanks23:04
wallyworldthat's done automagically23:05
wallyworldand it is stripped off on the way out23:05
babbageclunkwhat wallyworld said23:06
veeberswallyworld: I'm not seeing it stripped off when I do "coll.FindId(resourceID).One(&raw)" raw["_id"] == "some-uuid-string-here:<actual id>"23:06
veebersAh, am I circumventing the auto-niceness doing it that way23:06
wallyworldit won't be there as you're looking at the raw data23:06
wallyworldthe doc itself will have the correct DocId23:07
babbageclunkveebers: note, this also doesn't happen for collections that are marked as Global: true in allcollections.go23:07
veebersah right, that makes sense. Cheers wallyworld23:07
wallyworldglobal collections are used across models without the need for discrimination23:07
veeberswallyworld, babbageclunk oh, right saw that too (Global in allcollections). Ian, should the docker resource storage be global? I presume at the moment the uuid used in the id will be the controller?23:08
wallyworldcharms are per model so no23:08
veeberswallyworld: ack23:09
wallyworldveebers: veeeeeeeebeeeeeera23:16
wallyworldstaaaaaaanduuuuuup23:16
veeberswallyworld: oh oop ssory omw23:18
hmlwallyworld: my fault :-)23:19
babbageclunkgood one hml23:19
veebershml: re: adding a failure cause, it's not a job change but a thing added via jenkins ui. Will walk through after standupp :-)23:22
veebershml: actually I got ahead of myself, there was already a rule there that I only had to tweak (use \d+ instead of a specific number). If you have a look now at the job the failure reason is obvious23:37
hmlveebers: i see it.  thank you.  :-)23:38
veebershml: not the description is wrong :-| I updated it to be correct. I'll add what I did to our discourse23:40
hmlty23:40

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