[00:48] <andrew-ii53> I got an error on `juju gui`: ERROR Juju GUI is not available: Juju GUI not found
[00:48] <andrew-ii53> Can I manually deploy gui to the controller?
[01:11] <andrew-ii53> Or, after switching to the controller model and deploying juju-gui, and then exposing it, how do I get that error to go away?
[01:13] <andrew-ii53> Or is my controller just sorta fubar'd and need a fresh bootstrapping? (Juju version 2.2.6 - bootstrapping has been a bit of a pain because I had to increase the timeouts due to ProLiants being slower than glaciers at booting)
[01:14] <andrew-ii53> oh heck nevermind
[01:15] <andrew-ii53> `juju upgrade-gui` did the trick
[13:23] <skay> my subordinate charm is not building like I expect, and charm proof isn't finding the hooks I've defined
[13:24] <skay> is there a helpful example I can refer too?
[13:50] <rick_h> andrew-ii53: glad you got it worked out
[13:50] <rick_h> skay: hmmm, is it using the reactive framework?
[13:51] <skay> rick_h: yes. give me a bit, I'm cleaning it up so that I can push it somewhere
[13:51] <skay> rick_h: it's pretty simple
[14:18] <cory_fu> skay: If charm proof is complaining about hooks, are you sure that you're including "layer:basic" as one of your base layers in layers.yaml?  That's the layer that contains the hook template.
[14:18] <skay> cory_fu: oh, I'm not. I didn't know I needed it for a subordinate. that probably explains things
[14:19] <skay> I haven't written any subordinate charms before
[14:20]  * skay head smack
[14:20] <cory_fu> skay: Yeah, a subordinate is basically the same as a regular charm, so it still needs layer:basic.  I would also *highly* recommend using the use_venv: true option (see https://github.com/juju-solutions/layer-basic#layer-configuration)
[14:21] <cory_fu> That will keep your subordinate from conflicting with the principal charm for its python dependencies.  We're looking at making that a hard requirement for subordinates in the future
[14:22] <skay> ack
[15:47] <[Kid]> is there a way to list the "register" key for a user after it has been created?
[15:56] <rick_h> [Kid]: so that's a bug I know was addressed but I think it's in the upcoming 2.3
[15:57] <rick_h> [Kid] https://bugs.launchpad.net/juju/+bug/1657187
[15:57] <mup> Bug #1657187: Get new token for existing user <canonical-is> <cwr-ci> <matrix> <juju:Fix Committed by anastasia-macmood> <https://launchpad.net/bugs/1657187>
[17:59] <[Kid]> rick_h, it isn't really a lost key, or is that what you would consider lost if i didn't write it down when i first created the user?
[17:59] <rick_h> [Kid]: as good as lost?
[17:59] <[Kid]> i guess i just thought there would be a way to view it without resetting it and affecting any other instances that were registered with that username
[18:00] <[Kid]> never even thought the key would be something that was shown only once, in other words.
[18:08] <rick_h> [Kid]: understand, apologies for the confusion but yea. It's a secret and so treated very secretly to help avoid it leaking as much as possible
[18:16] <[Kid]> ahh ok
[18:17] <[Kid]> no problem. i will wait on the PR then
[18:17] <[Kid]> to get merged
[18:17] <[Kid]> i guess i could go to latest beta, right?
[18:17] <[Kid]> or alpha
[18:20] <rick_h> [Kid]: yea, it looks like it's been landed and should be in the edge channel snap
[18:20] <rick_h> [Kid]: and I hear beta2 is on the way any day now
[19:29] <beisner> howdy cory_fu tvansteenburgh - hi we have a high prio break re: the USER env var changes.  https://github.com/juju/charm-tools/issues/367
[20:05] <[Kid]> is juju supported in a lxc container outside of the bootstrapping localhost?
[20:12] <cory_fu> beisner: It seems crazy to me that USER wouldn't be set, but it's a relatively easy fix.  But are we sure that the build dir when running on Jenkins will work with the confined snap (i.e., will be somewhere under the current user's home dir)?
[20:13] <beisner> cory_fu: by default jenkins doesn't define a USER env var.
[20:14] <cory_fu> Yeah, I believe you.  It just seems odd.  :)
[20:14] <beisner> cory_fu: we've added one as a work-around, but we'll still have to go touch a ton of tox.inis like so in order to profit: https://review.openstack.org/#/c/516370/3/tox.ini
[20:16] <cory_fu> beisner: https://github.com/juju/charm-tools/pull/368
[20:16] <cory_fu> kwmonroe: Can I get you to eyeball that, as well?
[20:21] <cory_fu> Added a test
[20:23] <cory_fu> tvansteenburgh: Thanks.  kwmonroe, nm.
[20:23] <cory_fu> beisner: Once Travis finishes, I can get that to the candidate channel of the snap.  Is that sufficient?   We were planning a stable release first thing next week
[20:25] <beisner> cory_fu: we use python virtualenvs for all testing.  it'd need to hit pypi for us to consume.
[20:26] <cory_fu> beisner: You don't use the snap for charm-tools?  We really recommend using the snap rather than PyPI.  :/
[20:26] <beisner> rather, we could consume the candidate of course, but it is higher touch for us to do that than to just feed a USER env var all the way through to the venv.
[20:27] <beisner> why publish a python package if that's not a recommended delivery mechanism?
[20:27] <beisner> we can switch charm-tools to snap a consumption model indeed.  but not likely today.
[20:28] <cory_fu> beisner: It's only on PyPI because it's not factored properly and there are portions that are used by bundletester as a dep.  So, it's mostly a hold-over.
[20:28] <kwmonroe> cory_fu: you wanna tweak this too? https://github.com/juju/charm-tools/blob/ea5878000a0a33780e1434c83f25c1f97fc847ba/tests/generators/test_generator.py#L52
[20:28] <beisner> right.  we use BT.  seems things are in a limbo state atm.
[20:30] <cory_fu> kwmonroe: I think that test is still fine.  It's still using expanduser, so that still patches the right thing
[20:33] <kwmonroe> ah, right cory_fu, get_home still calls eu.  i read good.
[20:45] <ryebot> I'm trying to bootstrap a controller strict with egress restrictions. I've set up an apt mirror and boostrapped using it with --config apt-mirror=<my mirror>, however I'm still seeing apt operations fail because they're trying to access security.ubuntu.com. Is there a way to make them point at my apt mirror?
[20:45] <ryebot> with strict* :\
[21:00] <kwmonroe> ryebot: is it the bootstrap that fails, or a subsequent deploy to the default model?
[21:00] <ryebot> kwmonroe: the bootstrap - I ssh into the not-yet-controller machine and check cloud-init-output.log
[21:01] <ryebot> kwmonroe: I'm currently disabling os-update mechanisms (no apt update/upgrade), but I guess I'm not happy with that even if it works.
[21:02] <ryebot> kwmonroe: nah doesn't seem to work anyway
[21:03] <kwmonroe> ryebot: you did both configs?  --config enable-os-refresh-update=false --config enable-os-upgrade=false
[21:03] <ryebot> yessir
[21:04] <ryebot> it's making it to trying to install stuff now, but still bailing on security.ubuntu.com hits
[21:04] <ryebot> glorious
[21:05] <kwmonroe> ryebot: for giggles, add an entry in your /etc/hosts where you're running the bootstrap:  "<mirror-ip> archive.ubuntu.com  security.ubuntu.com"
[21:05] <ryebot> kwmonroe: in the controller itself?
[21:05] <ryebot> "controller"
[21:05] <kwmonroe> i dunno if that'll work because it's probably failing to find security.u.c from the bootstrap node (not your local machine)
[21:06] <ryebot> yeah, that's right, on the controller
[21:06] <kwmonroe> ryebot: sure, if you can get to the controller, add it there too.
[21:06] <ryebot> yeah, I can force it, but I need it to work without doing crazy stuff
[21:06]  * ryebot sighs
[21:08] <ryebot> I don't want my offline docs to read, "While the controller is attempting and failing to bootstrap, ssh in and muck about with /etc/hosts!" xD
[21:08] <kwmonroe> lol
[21:08] <ryebot> hoping some juju dev will come along and tell me how to do it right...
[21:08]  * ryebot coughs
[21:10] <kwmonroe> ryebot: you may enjoy this: https://bugs.launchpad.net/juju/+bug/1606487
[21:10] <mup> Bug #1606487: apt-mirror does not override security.ubuntu.com for controller <juju:Triaged> <https://launchpad.net/bugs/1606487>
[21:10] <ryebot> yeah, I saw that, didn't want to believe it
[21:10] <ryebot> shut my eyes and spammed here instead
[21:11]  * ryebot tries to replace kwmonroe's link with a cat picture.
[21:11] <kwmonroe> meow
[21:11] <ryebot> haha
[21:11] <ryebot> alright, I gotta do a thing. thanks for the kittens, kwmonroe
[21:11] <kwmonroe> get good candy
[21:12] <ryebot> :D
[21:23] <jhobbs> i'm getting an old version of a charm when i use 'charm pull' on it; it's not giving me the latest stable version
[21:23] <jhobbs> http://paste.ubuntu.com/25861248/
[21:24] <jhobbs> 'charm show' lists the new version ~8, but charm pull gives me ~4, unless i specify --channel stable, in which case i get ~8
[21:25] <jhobbs> what am i missing?
[21:31] <kwmonroe> jhobbs: i'm gonna guess it's related to perms:
[21:31] <kwmonroe> perm:
[21:31] <kwmonroe>   Read:
[21:31] <kwmonroe>   - oil-charms
[21:31] <kwmonroe> jhobbs: i can pull rev4, but not --channel stable.  i get access denied if i try to pull a rev > 4
[21:33] <kwmonroe> jhobbs: if you're ok with everyone reading that charm, do a 'charm grant cs:~oil-charms/ci-configurator --channel stable'
[21:33] <kwmonroe> er, 'charm grant cs:~oil-charms/ci-configurator everyone --channel stable'
[21:33] <jhobbs> ok
[21:33] <jhobbs> i did 'charm grant cs:~oil-charms/ci-configurator-8 everyone'
[21:33] <jhobbs> i will do that too
[21:34] <jhobbs> kwmonroe: i did the grant you suggested and i'm still getting -4
[21:36] <kwmonroe> yeah jhobbs, me too.. but at least now i can do a charm show on it, and this is accurate: https://jujucharms.com/u/oil-charms/ci-configurator/
[21:36] <kwmonroe> so, ya know, small victories :/
[21:37] <kwmonroe> cory_fu: do a 'charm pull cs:~oil-charms/ci-configurator' and tell me what rev you get
[21:38] <kwmonroe> jhobbs: maybe you and i have some wacky charm cache
[21:39] <cory_fu> kwmonroe, jhobbs: I get 4
[21:39] <jhobbs> seems like a bug maybe
[21:39] <kwmonroe> gah
[21:39] <jhobbs> i'll file one against jujucharms.com
[21:39] <jhobbs> thanks for the help!
[21:40] <kwmonroe> cory_fu: you think it's a bug with charm pull or the store?  "charm pull cs:~oil-charms/ci-configurator --channel stable" will give you rev8, but omitting the channel gives you r4.
[21:41] <kwmonroe> jhobbs: the issue might be here https://github.com/juju/charm-tools/issues as it seems like the store is up to date.
[21:41] <cory_fu> kwmonroe: It wouldn't be in charm-tools, it would be in the charm go code
[21:42] <cory_fu> kwmonroe: You can add --debug to charm pull to see more info about what it's doing
[21:46] <jhobbs> it's grabbing https://api.jujucharms.com/charmstore/v5/~oil-charms/ci-configurator/archive
[21:46] <jhobbs> which has the old version
[21:47] <cory_fu> jhobbs: And if you add --channel=stable, then it adds that as an explicit param to that URL
[21:47] <cory_fu> So it seems like a charmstore issue, though I would have expected charm pull to include stable as the param explicitly by default
[21:49] <jhobbs> it's working now
[21:49] <jhobbs> magic
[21:50] <jhobbs> i just need to wait longer next time i guess
[21:50] <jhobbs> thanks again