/srv/irclogs.ubuntu.com/2018/07/05/#juju.txt

magicaltroutif nothing else kwmonroe at least Hue shows me whats missing and whats completely borked currently in the Big Data stack :P00:07
veeberskelvin_: can you remember what the "extra thing" was to use docker installed from snap? i.e. so you didn't need to use sudo02:05
kelvin_veebers, the thing was snap version of docker was a little bit out of date, so the flag we need was introduced does not work02:07
veeberskelvin_: ah, sorry this is me using it locally on my machine. I tire of having to use 'sudo', I'm sure there was something to work around that, but perhaps it required a logout or something02:07
kelvin_veebers, it's not related the user group.02:08
kelvin_veebers, if u wanna use docker without sudo, then u just need to add ur user to the docker group02:08
veeberskelvin_: ah I see, it's in the readme https://github.com/docker/docker-snap02:08
veeberskelvin_: also, that states that docker snaps won't be updated, so you made the right choice with the install type for that job! L:-)02:09
kelvin_aha :->02:10
veeberswallyworld: Hmm, I'm having trouble with the charm command trying to push a charm with a docker resource (I get: unsupported resource type "docker", after adding a filename to the resource as it complains about that too which it shouldn't)02:38
veebersthis is with the edge snap of charm installed02:38
* veebers tries building from source02:45
wallyworldveebers: is that a cmd message or one from the store?02:48
veeberswallyworld: good question, I assumed from the command. I do have JUJU_CHARMSTORE exported, let me check I have that setup properly02:49
veeberswallyworld: that seems fine, charm whoami stats I'm not logged into the staging02:50
veebersah shoot, I need to remember my username/password now ^_^02:51
wallyworldlol02:51
veebersah wait, which sso does the staging use? Probably staging sso?02:51
veebershmm, charm login doesn't work anyway03:00
veeberswallyworld: yeah, if I set JUJU_CHARMSTORE to the staging env, I can't charm login. I'll fire off an email03:05
wallyworldveebers: ah bollocks ok03:09
thumperbabbageclunk: just a quick check, but this lease refactoring keeps both bits working right?03:33
babbageclunkthumper: both bits meaning singular and leadership?03:33
babbageclunkyes, I think so - tests all pass.03:34
thumperboth bits meaning mongo and raft03:34
babbageclunkraft isn't there yet03:34
babbageclunkI mean, it's there but doesn't know about leases03:34
thumperok, so this is just paving the way?03:35
babbageclunkyup03:35
babbageclunkBut the idea is that they'll both be working, and we can select between them at bootstrap time.03:35
thumperum...03:35
thumperat controller config time?03:36
thumperdon't we want to be able to switch in a running system?03:36
babbageclunkWell, maybe, if we're alright with all of the leadership changing at that point.03:36
thumperI think that'd be fine.03:36
thumperI've been thinking a little03:36
babbageclunkThen yeah, that should be fine03:36
thumperit would be nice if an operator could say "make that unit the leader"03:37
thumperjust something to think about03:37
thumperconsider our rolling upgrades03:37
thumperupgrade a single non leader unit03:37
babbageclunkYeah, you've mentioned something like that before.03:37
thumperthen make it the leader03:37
thumperthen upgrade the others03:37
thumpersomething like that...03:37
thumperI imaging that there will be some weird edge cases...03:37
babbageclunkYeah, definitely - what if that machine dies first.03:38
babbageclunkBut worth a try. I'm keen to get the existing stuff working first though.03:38
thumperdefinitely03:38
kelvin_wallyworld, can i have ur a few minutes to dicuss charms for gpu testing?03:43
thumperbabbageclunk: fyi tests failed, didn't check what03:51
babbageclunkthumper: ooh, thanks03:52
veebersbabbageclunk, thumper: is there a way in a JujuConnSuite (or so) to set a controller config? If so I can alter these deploy test just a little to cover using the charmstore url from controller config across the board05:03
babbageclunkveebers: there is, I'm just trying to remember how you do it.05:03
babbageclunkveebers: Try setting s.ControllerConfigAttrs in the SetupTest before you call s.JujuConnSuite.SetupTest05:05
veebersbabbageclunk: awesome, cheers! I'll give that a bang05:06
babbageclunkveebers: you can see an example in apiserver/admin_test.go05:06
veebersbabbageclunk: is s.Session.DB setup by the ConnSuite?05:08
babbageclunkuhhh05:08
veebersI ask because I need to get the charmstore url created by new server as a controller config, if I need to do that before conn.SetupTest then I have an issue ^_^05:08
veebersI think it does05:09
babbageclunkoh, yeah, it's setup in MgoSuite.SetUpTest, which gets called from JujuConnSuite.SetUpTest.05:11
babbageclunkSounds like you need a closed time-like loop.05:11
babbageclunkSo what generates the charmstore url?05:12
babbageclunkveebers: ^05:12
veebersbabbageclunk: charmstore.NewServer(db, nil, "", params, charmstore.V5) creates a handler which is then passed into httptest.NewServer(handler), the result of that has the URL. (not db in NewServer is from s.Session.DB("juju-testing"))05:13
babbageclunkhmm05:13
veebersbabbageclunk: hah is MgoSuite.SetUpTest idempotent? ^_^05:14
veebersno, it's not05:14
babbageclunkworth a try though05:15
veebersbabbageclunk: hmm, actually being able to do that might not be as useful as I originally thought, so not a biggie that I can't. Thanks for sorting me out on that though05:17
babbageclunkYou could extend the ControllerConfigAttrs handling so that if there's a callback set it calls it to get the config attrs05:17
babbageclunkAnd by default the callback just returns s.ControllerConfigAttrs05:17
babbageclunkThat would give you a chance to get the url05:18
babbageclunkIt's awful but the JujuConnSuite setup is already terrible05:18
veebers^_^05:19
veebersbabbageclunk: quick query, I'm doing this, is there a better way? https://pastebin.canonical.com/p/WVgsk2pKbf/05:32
veebersas the patched function now takes the url to use, but it needs to be that one specifically05:32
babbageclunklooking...05:33
babbageclunkoh, I see - yeah, I think that's ok. Not sure how else you could do it, without knowing the rest of the code.05:35
veebersbabbageclunk: ack, cheers. wasn't sure if there was a better way than taking a ref and using that05:35
babbageclunkWell, depending on what else it does if you could bypass calling the patched out function that would probably be simpler.05:37
babbageclunkbut I think that's fine.05:37
veebersThe patched function does what was returned pretty much (at this point at least) but felt it was patching too much, would be nice to not even need the patch05:38
babbageclunkyeah, if you can avoid it better not to, but sometimes that's really difficult.05:40
babbageclunkugh, just found a test that passes if it's run with the others in its suite but fails when run by itself (or in a ci build, apparently)05:42
veebersugh :-\ that's going to be fun to nail down05:43
babbageclunkwell, easier than the other way around05:44
veeberstrue, half-full then :-)05:44
veeberswallyworld: FYI https://github.com/juju/juju/pull/889605:51
veebersah damn, the formatting for the PR comment is borked, I misunderstood what it would look like from the vim buffer 'hub pull-request' bought up05:52
* veebers will fix that after dinner05:52
vinowallyworld: do u have min to discuss regarding the version increment06:51
wallyworldsure06:51
vinoHO06:51
vinowallyworld: sorry i was a bit away during ur discussion.07:14
wallyworldno problem, i'll jump back in07:14
vino:p07:15
vinok thank u07:15
stickupkidI'm guessing that file shouldn't be there - https://github.com/juju/juju/blob/develop/apiserver/dependencies.tsv10:08
stickupkidPR of removal https://github.com/juju/juju/pull/889810:13
JaniferHehelp12:01
JaniferHejuju status12:01
rathore_Anyone faced any issues with bionic host and bionic lxc containers?15:05
rathore_My bionic containers are started and has IP ( saw in host) but Juju is still thinks it doesnt have IP15:05
hmlrick_h_: so it turns out there is a MinRootDiskSizeGiB() used by vsphere and gce, but not the others.- 8Gb.15:29
rick_h_hml: ah gotcha that makes sense15:30
rathore_rick_h_: Would you have any idea. juju starts bionic lxc containers and wait indefinitely15:33
rick_h_rathore_: no, there were some issues addressed in 2.4.0 with pulling in maas resolve info and such but nothing I can think of about not getting an IP?15:34
rathore_rick_h_: sudo lxc list on host shows me that IPs are there. I have tried 2.4 and 2.4(beta)15:34
rick_h_rathore_: is there anything in the debug-log about the machines not coming up? anything more in juju status --format=yaml around the machines status?15:35
rathore_I am just deploying again and would paste as soon as I see any logs15:36
rathore_rick_h_: https://paste.ubuntu.com/p/HdDw4HDWCR/ is from yaml output15:46
rathore_rick_h_: Ok, so the containers are still downloading the tools from controller15:56
rathore_somehow the networking in container is messed up15:56
rathore_rick_h_: The file downloads are fine on host but toooo slow in container15:57
rathore_rick_h_: It seems to be lxdbr0 issue, it is not connected to any network16:08
rathore_https://paste.ubuntu.com/p/6YqtgNBpxZ/16:08
cory_furick_h_: I've got some updates for conjure-up and cloud integrator charms for the Juju Show, FYI17:30
rick_h_cory_fu: woot woot17:31
stokachurick_h_, is that discourse board going to be officially staying? i want to direct all non bugs from github conjure-up to that forum17:31
rick_h_stokachu: yes, we're just ramping it up17:32
stokachurick_h_, is it ok if i start pointing people there?17:32
rick_h_stokachu: by all means17:34
stokachuthanks17:34
rick_h_stokachu: I'm going to bring it up on the show and we're slowly starting to port docs/notes/etc and will kill the lists in a few17:34
stokachurick_h_, ack, sounds good17:34
cory_furick_h_: Oh, and if there's time for it, also a change to the interface for layer options.17:43
rick_h_cory_fu: k, sounds good17:43
rick_h_cory_fu: did you see there's a charms and charming in the new discourse as well?17:43
rick_h_cory_fu: it'd be great to kick some discussions/etc that way as we flesh it out17:43
rick_h_bdx: have a test bundle I can demo today?17:44
cory_furick_h_: Yep, I was working on a write up for the layer options bit on there already17:44
rick_h_cory_fu: <317:44
rick_h_cory_fu: kwmonroe bdx and anyone else that wants in, 10min to Juju Show17:50
rick_h_https://hangouts.google.com/hangouts/_/kstii25wdnd5jorqvle3grpblae for joining the conversation and ...17:51
rick_h_https://www.youtube.com/watch?v=R0R5DC7_Dio for watching me make a fool of myself live on the interwebs :)17:51
cory_fuhttps://tutorials.ubuntu.com/tutorial/tutorial-charm-development-part1#018:02
kwmonroehttps://discourse.jujucharms.com/18:03
cory_fuI didn't realize you could bootstrap an older controller.  That will be very useful18:10
cory_fuhttps://docs.conjure-up.io/devel/en/conjurefile18:13
cory_fuhttps://jujucharms.com/u/containers/aws-integrator/18:14
cory_fuhttps://jujucharms.com/u/containers/gcp-integrator/18:14
cory_fuhttps://jujucharms.com/u/containers/openstack-integrator/18:14
cory_fuFull changelog for conjure-up: https://github.com/conjure-up/conjure-up/blob/master/CHANGELOG.md18:17
rick_h_cory_fu: kwmonroe feel free to update https://discourse.jujucharms.com/t/juju-show-37-2-4-0-lxd-show-and-tell-and-more/60 if you have additional links/notes to drop in there18:29
rick_h_ty for the idea kwmonroe18:29
thumpermorning team20:32
dparrishg'morning maestro!  ;-)20:32
veebersMorning all o/20:53
magicaltrouthacked together an oozie charm kwmonroe as i don't see one in the store anywhere thats current21:15
magicaltrouti'll get someone to clean it up and send it upstream if you want to add it to the bigtop charms21:15
kwmonroe+100 magicaltrout!  i saw the open jira about puppet and oozie client/server.  did you sort that out?21:17
magicaltroutwell21:18
magicaltroutit's a bodge21:18
magicaltroutbut it works21:18
kwmonroei'll google bodge later21:18
magicaltroutrun puppet -> fix the package -> rerun puppet to finish the install21:19
kwmonroeah, so normal puppet then ;)21:19
magicaltroutpretty much21:19
maaudetWhat is supposed to show under the "LABELS" column when running juju metrics ?21:29
rick_h_maaudet: it's optional for charms to supply a label to the metric in order to tell things apart in the data coming out21:45
maaudetrick_h_: I see. If I'd like to add a label to my metrics on my charms, where would I put it? Is it simply a key "label" to add in my metrics.yaml objects?21:49
rathore_rick_h_: Nice show today. For life of me I cannot get juju to work with bionic. The lxd containers have some issue with networking. The packet speeds are in bytes/sec. The configuration works well with xenial. https://paste.ubuntu.com/p/6YqtgNBpxZ/21:49
veeberswallyworld: I got access to the staging store, I needed to log in via the web ui, I needed to build charm from source and I also needed to RTFM for the image attach :-)21:53
wallyworldveebers: great, so unblocked.....22:34
veeberswallyworld: aye, onwards and upwards22:34
wallyworldbabbageclunk: i need a more experienced person to review a change with an upgrade step https://github.com/juju/juju/pull/890022:35
wallyworldno rush22:35
veeberswallyworld: just sorting out the test failures on my WIP PR, I think it'll need some more. If you get that chance could you review and assess?(https://github.com/juju/juju/pull/8896)22:35
wallyworldsure22:35
wallyworldveebers: quick initial comment - the controller config has the default value as "". It should probably be csclient.ServerURL. That avoids checks for != "" in places and also makes it explicit when printing controller config what the url used will be22:43
veeberswallyworld: ah, good point. I though leaving it to the construction of the client and passing "" would default fine, but what you're suggesting is the same result && more explicit /obvious22:44
wallyworldveebers: there's a place in the PR outside of the actual client where we check for != ""22:45
wallyworldthis would avoid that as well as being explicit22:45
veebersack22:53
wallyworldveebers: left some initial comments23:02
veeberswallyworld: ack.  Oh, you dont' think conConfig doesn't just roll off the tongue? Like Con-Air? :-)23:05
wallyworldvino: i left some comments - ping me if it's unclear23:50
vinosure wallyworld23:51

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