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

wallyworldaxw: running a minute late, otp with tim00:59
axwokey dokey00:59
axwbabbageclunk: I think you're right, we should invest in a perf testing scaffold01:34
axwbabbageclunk: I'm thinking we could just write something that would add a bunch of units and spread them over a few lxd containers01:35
axwjust something that'll cause a bunch of connections and load on mongo01:35
axwwe could do microtests, but the closer to reality the better01:36
babbageclunkaxw: yeah, makes sense.01:38
axwwallyworld: BTW these might be useful: https://prometheus.io/docs/instrumenting/writing_exporters/, https://prometheus.io/docs/practices/instrumentation/, https://prometheus.io/docs/practices/naming/02:04
wallyworldthanks02:05
blahdeblahAnyone able to explain why I can't deploy to azure?  http://pastebin.ubuntu.com/24838522/03:20
blahdeblahs/deploy to/create a new model on/03:20
blahdeblahIf I retry with just the cloud name, I get: http://pastebin.ubuntu.com/24838529/03:22
jamwallyworld: are we meeting today? I know Tim is traveling03:22
wallyworldjam: we could, de debrief on what's the next steps on site perhaps03:23
jamsee you in ~30 then03:23
babbageclunkhey jam - can I pick your brains about bug 1696509 quickly?03:24
mupBug #1696509: status-history-pruner fails under load <performance> <pruning> <statuseshistory> <juju:In Progress by 2-xtian> <https://launchpad.net/bugs/1696509>03:24
wallyworldblahdeblah: a controller can only support one cloud03:25
wallyworldlooks like you are trying to an an azure model to an openstack controller03:25
blahdeblahwallyworld: orly?03:25
wallyworldsince forever03:26
blahdeblahWow - OK; never realised that was a limitation03:26
blahdeblahthanks03:26
wallyworldjaas of course is different03:26
blahdeblaho.O03:26
wallyworldin juju 1, cloud and creds were art of environment.yaml03:27
wallyworldand only single model03:27
blahdeblahthis is not juju 103:27
wallyworldxright03:27
wallyworldjust giving you background03:27
blahdeblahah, ok03:27
wallyworldwe evolved to support multi-model, but still only on one cloud03:28
wallyworldand mukti-creds also03:28
blahdeblahI might log a bug about the error message it gives, then03:29
blahdeblahBecause it gives the impression you can just throw creds, give it the cloud, and expect it to work03:29
jambabbageclunk: i'm happy to talk about it, but I haven't really started my day yet03:48
babbageclunkjam: oh sorry - let's do it after you've started.03:48
babbageclunkjam: I'm just going to try something anyway03:49
jambabbageclunk: my quick thought on it was to say "I need to delete everything before X, what is approximately 10,000 records should be Y, lets slowly increment up to X"03:49
jaminstead of issuing a single db delete that will take 3hrs to complete, and gives no feedbakc in the mean time03:50
menn0axw, wallyworld: you guys have 10 mins to discuss mgo session handling?03:50
wallyworldok03:50
jamhey menn0, good to see you around03:50
babbageclunkjam: sure - I have something that gets ids back and issues a delete for those, but rereading you're suggesting doing it by time instead.03:51
menn0jam: howdy jam03:51
jambabbageclunk: more that I don't think we actually want to grab 1M ids and then slowly walks through them03:51
jambabbageclunk: we want to be doing big batch deletes, just not everything-all-at-once03:51
jambabbageclunk: if what you have doesn't slow it down a lot, then I'm fine with it03:51
menn0wallyworld, axw : https://hangouts.google.com/hangouts/_/canonical.com/mgo-sessions03:52
babbageclunkjam: ok cool - I'm just checking that now. It shouldn't be getting all of the ids at once.03:52
jambabbageclunk: as always, its more about "how does it handle when things are bad, vs happy case its greate"03:53
wallyworldjam: want to join https://hangouts.google.com/hangouts/_/canonical.com/mgo-sessions03:54
* jam screams nooooooo! and runs away and hides03:55
jamweird, 'my connection was lost', rejoining04:01
jamah, 2fa kicked in04:01
blahdeblahAnyone able to explain why deploy via path no longer works on 2.1.3?  Worked for me last time I tried this (2.1.2, IIRC).  http://pastebin.ubuntu.com/24838818/04:07
veebersblahdeblah: I'm pretty sure that is should just be the path to the charm, so should be: juju deploy ./ntp04:24
blahdeblahveebers: . is the path to the charm. If I deploy with full path, I get the same result04:25
veebersblahdeblah: ah, I see04:25
veebersblahdeblah: what's the 'ntp' part?04:25
blahdeblahservice name04:26
veebersblahdeblah: ah ok, I'm totally barking up the wrong tree, looking at the error again I see "Bad Gateway" as the request error, I'm not sure about that sorry. I'm sure someone around here would have an idea though04:28
blahdeblahveebers: no worries - thanks for looking04:28
axwmenn0: sorry I went to the shops, eating now... did you already talk?04:48
menn0axw: still going04:48
axwwallyworld: it looks fine to me, can you try using "juju-introspect metrics" and grep for one? maybe the UI has cached the keys05:10
wallyworldok05:11
wallyworldaxw: just got to deal with something here so will do it soon05:11
axwwallyworld: and also, are you sure it's running your code? did you set the version to 2.2-rc2? if it is, it would have picked up the released binary if you didn't --build-agent05:11
axwwallyworld: sure05:11
wallyworldit's rc305:12
wallyworldand i added logging05:12
jamblahdeblah: IP:17070/model/6dec752c-5d00-4947-8dff-17b66ef22833/charms?revision=0&schema=local&series=xenial: Bad Gateway05:32
wallyworldaxw: yeah, must have been browser caching, wotks from cli05:32
jamblahdeblah: that isn't a "cannot deploy the local directory"05:32
jamblahdeblah: that is "cannot talk to the controller to upload the local charm"05:33
axwwallyworld: cool05:33
blahdeblahjam: Except that I can talk to the controller just fine05:33
blahdeblahIf I push exactly that directory to my charmstore account, it deploys OK as well.05:34
jamblahdeblah: I can't say for sure. I can say that we do a different operation on upload (instead of connecting and upgrading to a websocket, we just do a POST of the content)05:34
jam502 Bad Gateway seems odd05:34
jamas it seems to indicate you have a reverse proxy inbetween you and Juju05:34
jamseems 502 is for when you talk to a proxy, and the proxy forwards your request but gets a bad response from the target05:35
blahdeblaha forward proxy is possible05:35
blahdeblah(i.e. my local squid)05:35
* blahdeblah looks for errors there05:36
jamboth 'juju status' and 'juju deploy' will talk to 17070, but maybe the local squid tries to inspect POST in a way that it doesn't try to mess with UPGRADE to websocket05:36
blahdeblahseems like https_proxy is being used for one, but not the other05:42
blahdeblahanyhow, found the squid acl stopping it; hopefully it will work next time05:44
blahdeblahthanks jam05:44
wallyworldaxw: here's that metrics PR https://github.com/juju/juju/pull/748706:16
axwwallyworld: looking06:16
axwwallyworld: left a few comments06:30
wallyworldok, ta06:30
wallyworldaxw: also, with agents dialing the controller, it seems to me that we don't use last successful connection - we try all the addresses concurrently, first wins. and this will have an effect of picking the least busy controller as it will be likely to respond first06:31
wallyworldfunc dialAPI(info *Info, opts0 DialOpts) (*dialResult, error) {06:32
axwwallyworld: yes, but I think there's a delay before we dial the [1:] addrs?06:32
* axw checks06:32
axwwallyworld: yep, see DialAddressInterval06:33
wallyworldaxw: oh right, i just read the method doc06:34
wallyworldit should make that bit clear06:34
wallyworldaxw: i wonder what happens when a counter rolls over06:44
wallyworldi guess it is so far off it won't happen in practice06:44
axwwallyworld: it's 64 bit, so not going to happen06:45
wallyworldwell, not any time soon :-)06:45
axwheat death and all that... :)06:45
wallyworldaxw: could you PTAL?07:00
axwlooking07:00
wallyworldi guess i should make it a uint6407:01
axwwallyworld: I meant drop connection_rate in favour of a total. no need for both is there?07:01
wallyworldwell, i like the idea of not need to use any extra prometnius config to get the rate07:02
wallyworldjust having the raw number served seems a good thing if you are using juju-introspect07:02
wallyworldyou can eyeball it07:03
axwwallyworld: gtg get charlotte, bbs then will finish07:05
wallyworldok07:09
wallyworldaxw: and another when you are back https://github.com/juju/juju/pull/748807:26
axwwallyworld: reviewed07:35
wallyworldta. i was thinking clients would benefit too, but maybe not07:36
wallyworldwe can restrict for now07:36
wallyworlds/clients/CLI07:36
axwwallyworld: the controller *might* benefit, but the clients might also be slowed down by connecting to things that aren't known to previously be good07:37
axwI think it makes sense to optimise for UX for the client07:37
axwCLI07:37
wallyworldaxw: maybe this needs to be  config option07:37
axwwallyworld: what kind of config option?07:37
wallyworldin agent.conf or something07:38
wallyworldi guess only apiservers have that though07:38
axwwallyworld: I don't think it's necessary, it's only going to slow down connections a little bit07:38
axwif at all07:38
wallyworldok, i'll move to workers then07:39
wallyworldaxw: the shuffle code is now in apicaller08:06
axwlooking08:06
=== frankban|afk is now known as frankban
wallyworldaxw: agree about rand, but was too big a change to set it all up in the manifolds08:16
wallyworldi think it will be ok for now08:16
axwwallyworld: yeah, no big deal if it's not particularly random anyway08:16
wallyworldyep08:16
wallyworldaxw: going afk for a bit for dinner. if your findings today are worth sharing, can you email tim, me, john etc? even just to add some extra context to what tim might see on site tomorrow08:17
axwwallyworld: I don't have anything much to share today08:18
wallyworldok, np08:18
axwhard slog through unpicking watcher code atm08:18
wallyworldbbiab08:18
axwlater08:18
thumpero/14:21
=== frankban is now known as frankban|afk
pogiis there any juju hello world for local provider16:22
wpkcharm?16:23
wpkI'd go with mediawiki-single16:23
rick_hpogi: just juju deploy ubuntu16:24
pogiCan I use Ansible base with local provider any example16:27
pogiansible hook16:27
babbageclunkmenn0: ping?21:58
* babbageclunk goes to the doctor22:20

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