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

thumperanyone want a quick easy review?01:11
thumperhttps://github.com/juju/juju/pull/875401:11
acworkHello, can anybody explain to me what files control the system setting on a LXC container provisioned with JUJU?01:30
thumperacwork: what problems are you having?01:48
thumperacwork: also, which version of juju01:48
acworkVersion of juju 2.3, I have installed an openstack cluster and I am trying to set the bridge interface on the LXC containers to a higher MTU.01:51
acworkI was hoping to be able to persistently set the mtu for the LXC containers.  Not sure how to do that from JUJU.01:52
thumperI think that juju sets the MTU on the containers based on the host device MTU01:59
thumperthe settings for each particular container aren't touched after creation01:59
thumperso the standard lxc commands on the host could be used to tweak the containers01:59
acworkSo if I set the mtu via dhcp then the container should inherit the that on creation?02:08
kelvinliu_would anyone have a quick look this tiny fix ?  https://github.com/juju/juju/pull/8755  thanks.02:08
acworknot having luck with the lxdbr0 interface mtu02:16
thumperacwork: I'm sorry, you are outside my networking knowledge02:20
thumperI just know that juju doesn't do anything special with the MTU of the containers02:20
acworkokay thanks for the response02:20
thumperkelvinliu_: lgtm02:22
kelvinliu_thumper, thx,02:23
jamacwork: bionic or xenial? and what version of Juju? Generally when we create the bridges for containers we should set the MTU on the bridge to the same MTU as the original device, and when we create the MTU for containers we should set it to the MTU of the bridge they are being added to. But as Tim said, I don't think we update that post-create02:39
acworkXenial , juju 2.302:43
anastasiamaccan i have areally tiny review https://github.com/juju/juju/pull/8756 (without this change, tabular status with only machines is not separated from controller info)...02:50
anastasiamacthumper: this is the bit that i have removed from my last pr but really needs to be in :) m checking develop now...02:51
* thumper looks02:52
thumperanastasiamac: hmm...02:53
thumperhow will this be in 2.3?02:53
thumperthe one we are releasing now?02:53
anastasiamacthumper: yuck :( but so far i have only seen machine section only... i doubt many systems will have just one section in display....02:54
* thumper nods02:54
thumperfair enough02:54
thumperanastasiamac: let's get it merged02:54
anastasiamacthumper: the scary bit is the one where there could 2 lines...02:54
thumperanastasiamac: I have one for you02:54
* anastasiamac checking what sections displayed may end up with 2line separation02:55
thumperwhy two lines?02:55
thumperit seems like there needs to be a bit of highter level thought about who is putting in newlines and why02:56
thumperhttps://github.com/juju/juju/pull/875402:56
anastasiamacbecause 'applications' ended up with a new line and say 'offers'... so if u have an output with application and offers (no machines) u'll have 2 lines... so rare but possible...02:57
anastasiamacthumper: yes, i could re-work it to ensure that some central place is responsible for newlines...02:58
anastasiamacthumper: files changed 156!?02:58
thumperI'm ok with rare02:58
thumperyeah, but look at the changes02:58
thumperthere are two global replaces :)02:58
anastasiamacthumper: i thought u'd b... but in the long term, i'd like newlines mngmt :)02:58
thumperanastasiamac: I agree, we should rework with better logic02:59
thumperbut it isn't urgent02:59
anastasiamacthumper: k. then don;t worry about my pr. I'll ping when m ready again02:59
anastasiamacbut i'll look at urs :)02:59
thumperanastasiamac: I approved your PR02:59
anastasiamac\o/03:00
thumperanastasiamac: I'm saying we should add better logic later03:00
anastasiamacwell, 'later' will b in the next hour at most ;)03:00
anastasiamacthumper: lgtm03:03
babbageclunkdoes anyone have a nice trick for a scrollable but still refreshing `juju status` command for when you can't just watch status because there are too many applications and units in your model to fit on one screen?03:09
anastasiamacbabbageclunk: use smaller font on ur console to fit everything? :)03:11
anastasiamacbabbageclunk: but srsly, i do not :(03:11
babbageclunkanastasiamac: done that already but there are limits! I'm getting old. :(03:12
anastasiamacbabbageclunk: yes :( the only thing that i could do was to not display empty sections... is there something in particular that u r watching? maybe u can filter status to only show what u want?03:13
babbageclunkyeah, that's probably the solution, but it's a hassle in this case since I have lots of different applications03:14
babbageclunkooh, I didn't realise the filtering took wildcards too!03:15
babbageclunkyay thanks anastasiamac03:16
anastasiamacbabbageclunk: \o/03:16
anastasiamacbabbageclunk: yes, we'd need to be very explicit in new docs about how powerful status actually is :D03:16
anastasiamacthumper: updated 8756 to have explicit start/end section methods... hopefully it's clearer as too what needs to happen...04:14
thumperanastasiamac: here's one for you https://github.com/juju/juju/pull/875704:22
* thumper takes a deep breath before addressing merge conflicts04:24
thumperbabbageclunk: you around?05:06
babbageclunkthumper: yup05:06
* thumper waves at alexisb's autojoiner05:06
thumperbabbageclunk: https://github.com/juju/juju/pull/875705:06
thumperbabbageclunk: very simple branch05:06
babbageclunkcurses!05:06
babbageclunkha, looking05:06
babbageclunkooh, that is suimple05:07
babbageclunksimple05:07
thumperyeah05:07
thumpervery05:07
babbageclunkthumper: approved05:08
thumperthanks05:09
* thumper EODs05:18
=== frankban|afk is now known as frankban
manadartAnyone able to take a look at https://github.com/juju/juju/pull/8752 ?07:34
wallyworldmanadart: lgtm modulo a lack of expert LXD knowledge :-)07:44
manadartwallyworld: Thanks.07:45
=== axw_ is now known as axw
manadartFor review; softens the default networking verification/creation when local LXD server is clustered: https://github.com/juju/juju/pull/876009:47
=== grumblr is now known as grumble
stickupkidmanadart: i'm looking now...10:45
manadartstickupkid: OK, thanks.10:46
stickupkidmanadart: lgtm10:49
manadartstickupkid: Ta.10:51
rick_h_stickupkid: watch out, saw some other status stuff landing from anastasiamac, just a heads up.11:45
rick_h_and morning party people11:45
stickupkidrick_h_: thanks, will do12:18
stubcory_fu: Do you know if there is a way to get a wheelhouse.txt like such as ' cassandra-driver --global-option="--no-cython"15:23
stub ' to do what I mean? I think I need add options for when charms.reactive bootstrap is installing the contents of the wheelhouse into the venv15:23
stubhmm, I look out of luck. The base layer is just doing pip install wheelhouse/*, rather than something like pip install -r wheelhouse.txt15:31
cory_fustub: Hrm.  I don't think so.15:31
* stub wonders if there is some sort of setup.cfg to override pip15:31
cory_fustub: We should probably add something like that.  It does seem like it would be needed for several packages.  I'm actually surprised it hasn't come up yet15:32
cory_fustub: A non-ideal solution would be to create your own WheelhouseTactic in your layer15:32
stubI've tripped over it before, but just used deb dependencies to avoid chasing it at the time15:32
cory_fuThere are some bugs around custom tactics that are only fixed in edge, though15:33
stubI could stick a file in lib/charms/layer/__init__.py or similar that monkey patches the base layer ;)15:36
need-helpI'll repost this from #conjure-up15:39
need-helpHi, I'm trying to use conjure-up to deploy CDK, but I'm getting failures both on my Mac as well as using an Ubuntu 16.04 jump box. The Mac attempt fails on the kubectl step, while the Ubuntu jump box fails on the cni integrations15:39
need-helpThe CNI integration fails due to not being able to associate an instance profile with a running ec2 instance, but it looks like this is because it takes a few seconds for instance profiles in IAM to finish provisioning15:39
need-helpCan't add a sleep 60s to the bash script because it's an uneditable squashfs read-only mount for snap15:40
stubcory_fu: It also broke with the 'natsort' package, which declares a dependency in its setup.py of 'argparse ; python_version < 2.7'15:41
cory_fuI answered need-help in #conjure-up but for posterity, the cloud integration stuff is being overhauled in https://github.com/conjure-up/spells/pull/191 which includes a fix for the profile delay17:04
=== frankban is now known as frankban|afk
spiffytechcory_fu: I'm trying the updated AWS/k8s steps you suggested to needs-help earlier, and conjure-up is failing, with the enable-cni step complaining that 'juju trust' isn't a command. Do I need a newer version of juju to use conjure edge, or that spells branch?17:48
cory_fuHrm, it should fall back to setting the config17:49
spiffytechI cloned the spells branch, and used the Snap conjure-up/juju to do `conjure-up --spells-dir /path/to/spells/repo --channel=edge`. That's all that's necessary, right?17:50
spiffytechI didn't see any new configuration options for AWS integration either, like I see for e.g., the Helm or Prometheus spells.17:52
kwmonroespiffytech: cory_fu: i wonder if it's actually failing, or if the stderr from this is just being displayed: https://github.com/conjure-up/spells/blob/k8s-integration/canonical-kubernetes/steps/04_enable-cni/ec2/enable-cni#L1017:53
kwmonroeiow, may need a 2>/dev/null if it's just leaky output17:53
spiffytechPossible17:53
spiffytechI do get a big red message telling me conjure failed, though.17:53
spiffytechIt tells me to check the generic conjure log, which has this. I can't understand the problem from this alone. http://haste.spiffy.tech/hizexudiru.coffee17:54
kwmonroespiffytech: if your deployment is still around, does "juju config aws credentials" say anything?  (don't tell us what it says, btw)17:55
spiffytechSorry, I tore it down already.17:55
spiffytechI can run it again, if there are no other suggested changes to make first.17:56
kwmonroespiffytech: you have a local spells directory cloned, right?17:56
spiffytechYep, `git clone -b k8s-integration https://github.com/conjure-up/spells.git juju-spells-`17:56
kwmonroespiffytech: may as well try to gobble up the stderr if you're gonna run it again.. adjust your spells directory ./canonical-kubernetes/steps/04_enable-cni/ec2/enable-cni to add a 2>/dev/null on line 10:  if ! juju trust -m "$JUJU_CONTROLLER:$JUJU_MODEL" aws 2>/dev/null; then17:59
spiffytechOkay17:59
kwmonroespiffytech: it's just a guess on my part that the stderr is causing conjure-up to bark unnecessarily17:59
spiffytechChange made, running conjure-up now.17:59
cory_fuJust having output on stderr wouldn't cause it to explode, but it's possible the check is not falling through as intended or that something else is blowing up and the stderr message is masking or confusing it18:00
cory_fuIt definitely could use the 2>/dev/null bit, though18:03
cory_fuspiffytech: What channel of the conjure-up snap are you using?18:05
spiffytechGA18:06
spiffytechGA download, plus the --channel=edge flag when running it on the command line18:06
cory_fuOk, mine failed on the AWS charm, which died with "AWS was not able to validate the provided access credentials"18:11
cory_fuI've not seen that before18:12
cory_fuWait, that's odd.  I have another model from another run, and that's the one that failed18:13
cory_fuOh, ha.  Now they've both failed.  Lovely18:13
cory_fuIt looks like it's not setting the credentials correctly via the config options18:15
spiffytechkwmonroe: I reran conjure-up and got the same failure. `juju config aws credentials` prints out a single line, looks like a token.18:15
cory_fuspiffytech: Yes, that's expected.  It's actually base64 encoded.  If you run it through base64 -d, it will have "null" as the key and secret18:17
cory_fuWhich is not expected18:17
kwmonroeyup spiffytech - me too.  cory_fu, from ~/.cache/conjure-up/canonical-kubernetes/deploy-wait.err:18:17
kwmonroeDEBUG:root:aws/0 workload status is error since 2018-05-24 18:13:38Z18:17
kwmonroeERROR:root:aws/0 failed: workload status is error18:17
kwmonroecory_fu: any my aws status log: https://paste.ubuntu.com/p/wpHGm5nJqv/18:17
kwmonroeand the hook error: https://paste.ubuntu.com/p/BVvSTw5JV2/18:19
cory_fuspiffytech, kwmonroe: Damn.  It looks like the format of `juju credentials --format=json` changed between stable and beta18:20
cory_fuAnyone know how to tell jq to pick one key or another, whichever has a value?18:21
kwmonroesorry, i always have to search stackoverflow anytime i get near jq18:24
jhobbstwo jq's and a grep :)18:24
kwmonroeyas!18:25
cory_fukwmonroe, spiffytech: PR updated, I'm testing the fix now18:26
spiffytechGreat18:29
cory_fuSeems to be working.  Feel free to pull the branch and test yourself as well18:34
kwmonroejq if then else?!?!  i've seen it all.18:35
cory_fukwmonroe: :)18:35
cory_fuI'm sure there's a nicer way to do that, but I like that it's all in one command18:35
kwmonroecory_fu: updated branch and juju config aws credentials is 2legit2quit18:37
cory_fukwmonroe: I'm glad that spiffytech helped catch this before stokachu's merge finger got too twitchy.  ;)18:39
kwmonroelool, true dat18:40
kwmonroecory_fu: remind me the order of step scripts.. it's before-config, before-wait, and after-deploy, right?  and the before-wait happens when you click the final Deploy button?18:42
cory_fukwmonroe: Yep.  It's a little confusing, because before-wait is after the deploy is started but before juju-wait is called.  after-deploy is after juju-wait finishes, and is a legacy name18:43
cory_fukwmonroe: This list is in order of the phases, though it's not explicit about exactly when each is run: https://github.com/conjure-up/conjure-up/blob/master/conjureup/consts.py#L41-L4618:44
cory_fuI should at least add comments there18:44
cory_fuHave to run, changing locations again18:51
cory_fubbiab18:51
kwmonroecool cory_fu! TIL more phases18:56
kwmonroecory_fu: my deployment completed with the updated spells branch. nice job!18:57
kwmonroespiffytech: ^^ fyi18:57
spiffytechExcellent! Thanks a bunch!19:01
=== balloons is now known as Guest67301
=== mwhudson is now known as Guest32565
=== skay is now known as Guest37846
=== braderhart is now known as Guest74533
=== jam is now known as Guest91417
=== jose is now known as Guest16456
=== smgoller is now known as Guest23193
=== CyberJacob is now known as Guest6907
=== icey is now known as Guest76648
=== kirkland is now known as Guest97190
=== Guest37846 is now known as skay
=== Makyo is now known as Guest97810
=== Guest67301 is now known as balloons
=== balloons is now known as Guest64117
=== Guest64117 is now known as balloons__
bdxkwmonroe: supsup21:05
bdxkwmonroe: cs:~omnivector/slurm-node and cs:~omnivector/slurm-controller21:05
kwmonroeroger that bdx21:10
bdxkwmonroe: thanks21:16
bdxOooo a shiny https://paste.ubuntu.com/p/nCcvwKjfMZ/21:16
kwmonroebdx: took 'em both to the prom21:21
bdxkwmonroe: I see that, thank you!21:22
zeestratYay21:24
=== Guest32565 is now known as mwhudson
cory_fukwmonroe: I made a small update to the logging in the spell PR; mind taking a look?21:43
thumperrick_h_: not sure if you are around, but know status of https://bugs.launchpad.net/juju/+bug/1770051 ?22:38
mupBug #1770051: ERROR detecting credentials for "localhost" cloud provider: adding certificate "juju": Unknown request type  <lxd> <juju:Fix Committed by manadart> <https://launchpad.net/bugs/1770051>22:38
rick_h_thumper: per the bug that's fixed last week?22:40
thumperrick_h_: yeah... got an email from the bug from ryan saying he is still seeing it22:40
thumperjust looking up the hash22:40
thumperrick_h_: hmm... the comment mentions c173 which is tip of develop22:41
thumperbollocks22:41
veeberskelvinliu: ah, that seems like the issue you where hitting the other day ^^22:44
rick_h_thumper: where's the email?22:47
rick_h_thumper: I don't see anything in the bug that ryan commented22:47
rick_h_thumper: do you mean this one? https://bugs.launchpad.net/juju/+bug/177188522:53
mupBug #1771885: bionic: lxd containers missing search domain in systemd-resolve configuration <bionic> <network> <juju:Fix Committed by ecjones> <juju 2.3:Fix Released by ecjones> <https://launchpad.net/bugs/1771885>22:53
rick_h_that one has some back/forth right now as we collect more details on the failure from the OS folks22:53
* rick_h_ steps back away and will keep an eye out for thumper replies22:58
thumperrick_h_: no, I was getting emails on that bug23:13
thumperrick_h_: although ryan is now saying it is resolved...23:14
thumperI'm confused23:14
thumperbut looks now like we are good23:15
kelvinliuveebers, yes, i got this error before on lxc 3.23:20
wallyworldvino: just a few small tweaks. the main one is to re-use the existing addService struct in the status test, instead of making a new one. plus the handing of endpoint bindings in the status formatter - the value can be assigned directly rather than making a map and copying values23:45
vinowallyworld: ok let me take a look.23:47

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