/srv/irclogs.ubuntu.com/2017/05/02/#juju.txt

=== ajmitch_ is now known as ajmitch
=== mjs0 is now known as menn0
kjackal_good morning juju world!07:44
stubHave we moved on from charms only supporting LTS releases? I've got an MP here adding zesty and yakkety.07:57
stubIts a subordinate, so probably necessary if other charms support those series.07:59
erik_lonrothoi08:29
=== frankban|afk is now known as frankban
mattywso I tried to bootstrap into aws (having just setup a new account): it got stuck in "Contacting Juju controller at 172.31.10.1 to verify accessibility..." for an hour (even though in the aws console I could see it was up". Ctrl+c says "Interrupt signalled: waiting for bootstrap to exit"12:36
mattywand that's it, it's waiting for something? but probably doing nothing - any thoughts?12:36
mattywseems like a bug?12:36
rick_hmattyw: hmm, some issue getting ssh there? that's the normal thing it's waiting for there12:36
magicaltroutlooks a bit weird12:36
rick_hmattyw: I hit that with my maas setup when I forget my 'sshuttle'12:36
magicaltrout172 looks internal to me12:36
mattywmagicaltrout, indeed, it's the internal ip12:37
mattywhmm, I was using the london region for the first time every12:46
mattywI wonder if there's something weird about it12:47
magicaltroutah that might very well be the case mattyw12:47
magicaltroutthere have some hard-ish coded assumptions about available server types and stuff12:47
magicaltroutrick_h: ?12:47
rick_hmagicaltrout: yes, there's some hard coded bits on the types of instances but that's not about connecting to the internal address.12:47
rick_hit would fail earlier in that it couldn't find an instance type12:48
magicaltroutoh yeah mattyw said the instance came up12:48
magicaltroutgood point12:48
mattyweu-west-2 certainly appears as a supported region12:51
magicaltroutyeah12:51
magicaltrouti just bootstrapped in it12:51
mattywthis is all a totally new aws account I'm setting up12:51
magicaltrouttry again mattyw and see what happens12:51
mattywso there could be any number of things12:51
mattywam doing12:51
mattywthis time with --debug :)12:51
mattyw13:51:51 DEBUG juju.api apiclient.go:695 will retry after error dialing websocket: dial tcp 52.56.222.236:17070: getsockopt: connection refused12:51
mattywmagicaltrout, ^^12:52
mattywthat's pretty much what the log is saying12:52
magicaltroutlooks a bit shit12:52
magicaltroutweird though how it works for me12:52
mattywmagicaltrout, looks to be the same thing using us-east-112:56
mattywso it's something to do with it being a new account maybe?12:56
mattywdon't know what thought12:56
magicaltroutdon't think so12:56
magicaltroutaws accounts have worked ootb for me12:57
magicaltroutwell i've not done it in a while but they just needed a default vpc12:57
mattywthis is the first time I've tried it with a brand new aws account...12:59
mattywwhat I mean is - an aws account that was created this morning13:00
mattywnot just that it was new to juju13:00
magicaltroutsure, but i did create a new account for juju stuff a while ago13:04
magicaltroutand I don't believe I changed anything13:04
magicaltroutits like its some funky routing weirdness13:05
magicaltroutout of interest mattyw if you spin up a small ubuntu server on AWS13:05
magicaltroutthen bootstrap *from* that does it make it any happier?13:05
mattywmagicaltrout, you mean using the manual provider?13:06
magicaltroutno just bootstrapping from outside of your local network13:06
mattywI could do...13:09
mattywI'll try with my other credentials - I know they work13:09
magicaltroutclearly its not idea, but would also help track down if its AWS end or your end13:09
mattywI'll try that first13:09
magicaltrouts/idea/ideal13:09
mattywindeed13:09
mattywmagicaltrout, huh - old credentials aren't working either13:14
mattywhmmm13:14
mattywha - 2.2-beta3 has been released - I'm on an older ish client - I bet that's it13:16
tychicushas anyone run into this before when attempting to make a persistent volume claim against a ceph rbd provisioner in k8s Failed to provision volume with StorageClass "fast": failed to create rbd image: executable file not found in $PATH, command output:13:27
mattywmagicaltrout, ha! yep13:29
mattywall working now13:29
tychicusin my case k8s is running inside openstack and I am connecting to the same ceph cluster that openstack is using, so I did not juju deploy ceph and add relations from the same juju controller13:29
mattywhad an older ish client (2 weeks old - built myself from master)13:30
magicaltroutgood stuff :)13:30
tychicusbtw, I can statically provision claims13:31
tychicusthe error seems to indicate that the rbd binary is missing, I'm just not exactly sure where it needs to go13:32
lazyPowertychicus thats gettign realesed this week13:35
lazyPowertychicus sorry you hit that, but a fix is indeed incoming!13:35
tychicuslazyPower: thanks, is there a work-a-round?13:35
lazyPowertychicus thats a regression with our 1.6.1 release, and should be resolved with 1.6.2, we upped the snaps. You can do an in-place configuration change to get the fix before we release the charms13:35
magicaltroutregression?! surely not13:35
lazyPower1 sec while i find which track/channel they are in13:36
tychicusyes, in place configuration change sounds great!13:36
lazyPowertychicus juju config kubernetes-master channel=1.6/edge13:37
lazyPowertychicus juju config kubernetes-worker channel=1.6/edge13:37
lazyPowermagicaltrout may your code be forever bug free and you not give me an edge to raz you ;)13:37
lazyPowermagicaltrout in short, bless you.13:38
magicaltroutmy code is amazing....13:38
magicaltroutly full of bugs13:38
lazyPowerstory of our lives some days eh? :)13:38
magicaltroutwrote some gitlab tests last week13:38
magicaltroutit'll be in the review queue this week13:38
tychicusmagicaltrout: if I may ask what is on the docket for gitlab?13:40
Budgie^Smoreo/ juju world13:40
magicaltroutlots of amazing stuff13:40
magicaltroutdunno tychicus what features are top of your list of requirements?13:40
lazyPowero/ Budgie^Smore13:41
magicaltroutthose whom shout the loudest will likely win the feature request race13:41
Budgie^Smorestill killing bugs and taking names layer eh lazyPower?13:41
magicaltroutlol13:41
lazyPowerBudgie^Smore welllllll13:41
lazyPowertheres an open ended question on if i'm writing bugs faster than i can patch them, but thats the general mantra :) yeah13:41
tychicuswell my plan is to: 1 install gitlab into k8s13:42
Budgie^SmorelazyPower at least their giving credit where credit is due ;-)13:42
tychicus2 have all of the ci jobs run int k8s13:42
tychicusthen deploy to k8s13:43
tychicusbut I am sure that there are more useful thing that I have not thought about13:43
lazyPowertychicus pretty sure we spoke to this, but there is a multi-executor that knows how to talk to k8s if you give it a kubeconfig13:44
magicaltrouthmm well i don't have any plans to deploy gitlab into k8s cause its general charm stuff. I do want to leverage the ci -> k8s executor and docker repo asap13:44
lazyPowerhttps://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/executors/kubernetes.md13:44
lazyPowermagicaltrout ^ I'm currently slammed but should see the break soon enough. We can pair on this on a for-fun friday proejct13:45
tychicusyep that would be the step 213:45
magicaltroutcool, i'm just getting through yet another stupid week care of NASA but hopefully i can start stabbing away on gitlab amazingness in the next week or two13:46
magicaltroutmaybe whilst i'm at apachecon13:46
lazyPowermagicaltrout sounds good, i'm sure we'll be in touch13:46
lazyPowermagicaltrout i'm currently cannibalizing merlijins work after hours to get a che stood up for my chromium book.13:47
magicaltroutah yeah, thats pretty sweet13:47
lazyPowerwell, if it worked13:47
magicaltroutlol13:47
lazyPowerbusted 3/3 times on gce13:47
lazyPowerso i have work tod o there to figure out why and submit a fix13:47
lazyPoweri think its just an ip binding issue13:48
magicaltroutmy new guy started today so in a few weeks i'll have him cranking on simple charm tasks13:48
lazyPoweroooo13:48
lazyPowersend him deep in k8s land13:48
lazyPoweri could use the extra hands13:48
magicaltroutlazyPower: gizmo__ gizmo__ lazyPower13:49
gizmo__hi13:49
magicaltrouti told gizmo__ to test your documentation and stuff to get his head around charm stuff as a starting point lazyPower13:50
magicaltroutof course as new stuff comes in and needs testing etc, feel free to prod him. Currently no direct charming experience but we'll be fixing that over the next month or two13:50
gizmo__just don't prod too hard!!13:51
tychicusLazyPower: forgive my lack of knowledge here "Needs manual upgrade, run the upgrade action"13:53
lazyPowertychicus did you get that from etcd?13:53
tychicusno kubernetes-worker13:53
lazyPowerhmmm13:54
lazyPoweroh super cool13:55
lazyPowertychicus i forgot this landed last cycle. We decoupled upgrades from operational code upgrade, so the thought is13:56
lazyPoweryou can juju upgrade-charm on any of your k8s charms, and it wont effect the workloads. (if you set the boolean toggle, defaulted to on so everyone should get this behavior by default)13:56
lazyPowertychicus which means, when you juju config k8s-worker channel=1.6/edge, its found a new snap to install, but it wont do anything untill you run a manual action, as it *could* introduce downtime in mission critical scenarios13:57
lazyPowertychicus so, juju run-action kubernetes-worker upgrade13:57
lazyPowerer juju run-action kubernetes-worker/0 upgrade  -- it will need to be repeated once for every unit of the application.13:57
lazyPowerthis way you can stagger and ensure HA13:57
Budgie^SmorelazyPower that looks like a nice safety measure in case you "forget" to drain the worker first13:59
lazyPowerBudgie^Smore thats what we're going for. Value add :)13:59
tychicusthat is super cool, thanks14:00
magicaltroutdo you know whats super cool?!14:00
magicaltroutlazyPower! ;)14:00
tychicusoh and I was going to say the etymology of conondrum14:01
magicaltroutlol14:01
magicaltroutnooooo14:01
Budgie^SmorelazyPower I am not sure I would go that far :P as I am all about full automation but definitely a good safety net initially14:01
magicaltroutadmcleod isn't super cool14:01
lazyPowerBudgie^Smore well, we're all for that too. all of those actions can be scripted14:01
Budgie^Smoremagicaltrout careful now, you don't want to give lazyPower too much of a big head!14:01
magicaltrouthehe14:02
admcleodwat14:02
magicaltroutnothing14:02
magicaltroutreturn to sleeping14:02
admcleodbrexit14:02
=== daniel is now known as Guest47234
lazyPowerBudgie^Smore the thing is, juju is a great empowering tool for encapsulating the operations but in terms of guessing your company culture and business logic, its not very omniscient. So instead of forcing you on rails, we giv eyou the primitives to roll that up with little fuss.14:02
magicaltroutthats less insulting that "Theresa May"14:02
lazyPowerhahaha14:03
admcleodmagicaltrout: yeah but i forgot her name14:03
magicaltroutlike most of the uk population14:03
admcleodmagicaltrout: grey cardboard cutout lady14:03
=== Guest47234 is now known as Odd_Bloke
admcleodits true though, lazyPower is super cool14:03
lazyPowerwell thanks all for the votes of confidence. Careful putting me on a pedestal, theres nowhere to go from there but down :)14:04
Budgie^SmorelazyPower totally get that :) I would be just rebuilding the charm code instead of writing yet more code on top ;-)14:04
lazyPowerGlad to hear its helpful :)14:05
admcleodlazyPower: there are other, much more majestic, guilded pedestals, on which pidgeons wearing gem encrusted crowns puff out their chests for no particular reason other than that their feathers are shiny.14:05
lazyPoweradmcleod what kinda crazy business do you have going on over there in spain that you're putting pigeons on pedestals?14:05
magicaltroutsometimes admcleod scares me14:05
lazyPowerseems dreadfully wasteful!14:05
admcleodoh they're just there, in the pidgeon pedestal dimension14:06
tychicuswell, I don't get the $PATH error any more, but the claim just sticks at pending14:06
lazyPowertychicus and the ceph secret is enlisted?14:06
tychicusyes14:06
lazyPowerhmmm14:06
lazyPoweranything in dmesg/journalctl?14:07
tychicusI can do static claims14:07
lazyPoweryeah i modeled the static claim in an action... which remained working. what we broke as the rbd auto provisioner when we moved to snaps. Confinement is a hefty hammer apparently.14:07
tychicusbunch of app armor denied messages: apparmor="DENIED" operation="create" profile="snap.cdk-addons.hook.configure" pid=7965 comm="snapctl" family="inet6" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"14:08
lazyPowertychicus i'm going to need more details. When i tested the patch branch I was able to get rbd autoprovisioning working, but thats been some weeks ago now. I don't have the test results or workload manifests handy anymore to spin one up quickly.14:08
lazyPowerthats expected - a bit of a red herring.14:09
lazyPowersnap confinement at work14:09
tychicusah ok14:09
tychicusjust to confirm I should be looking at dmesg and journalctl on the master?14:11
lazyPowertychicus correct14:11
lazyPowerthe kube-controller-manager should be doing that enlistment14:11
tychicushere is one item from dmesg spedific to kube-controller-manager and rbd14:14
tychicus[ 2034.211833] audit: type=1400 audit(1493732994.271:175): apparmor="DENIED" operation="open" profile="snap.kube-controller-manager.daemon" name="/var/tmp/" pid=6055 comm="rbd" requested_mask="r" denied_mask="r" fsuid=0 ouid=014:14
lazyPowerhmmm14:16
lazyPowerits attempting to create a tmp resource and apparmor denied it14:16
lazyPowerthat may be related, but i didn't see that when testing14:16
lazyPoweris the pv/pvc still in pending? with no movement in the eventlog of k8s?14:16
tychicussorry, I just deleted it, let me re-create it14:17
lazyPowerok14:20
lazyPowerno problem, i'm here all day :)14:21
magicaltroutand the next day14:21
magicaltroutand the next14:22
lazyPowerway to make it creepy magicaltrout14:23
magicaltroutthats me14:23
lazyPower:) <314:23
Budgie^Smoreglad you can own it there magicaltrout14:24
magicaltrouthehe14:24
tychicusLazyPower: here is what I get from journalctl14:37
tychicusMay 02 14:36:15 juju-0aa679-default-14 snap[5794]: I0502 14:36:15.273296    5794 wrap.go:75] PUT /api/v1/namespaces/default/persistentvolumeclaims/mypvc: (5.581372ms) 200 [[kube-controller-manager/v1.6.2 (linux/amd64) kubernetes/477efc3/persistent-volume-binder] 127.0.0.1:33828]14:38
tychicusMay 02 14:36:15 juju-0aa679-default-14 snap[5794]: I0502 14:36:15.276311    5794 wrap.go:75] GET /api/v1/persistentvolumes/pvc-b23b5e28-2f44-11e7-b9c8-fa163e1e0ce5: (2.139686ms) 404 [[kube-controller-manager/v1.6.2 (linux/amd64) kubernetes/477efc3/persistent-volume-binder] 127.0.0.1:33828]14:38
tychicusMay 02 14:36:15 juju-0aa679-default-14 snap[5794]: I0502 14:36:15.278364    5794 wrap.go:75] GET /api/v1/namespaces/default/secrets/ceph-secret-admin: (1.12258ms) 200 [[kube-controller-manager/v1.6.2 (linux/amd64) kubernetes/477efc3/persistent-volume-binder] 127.0.0.1:33828]14:38
tychicusMay 02 14:36:15 juju-0aa679-default-14 audit[11601]: AVC apparmor="DENIED" operation="open" profile="snap.kube-controller-manager.daemon" name="/var/tmp/" pid=11601 comm="rbd" requested_mask="r" denied_mask="r" fsuid=0 ouid=014:38
tychicusMay 02 14:36:15 juju-0aa679-default-14 kernel: audit: type=1400 audit(1493735775.306:336): apparmor="DENIED" operation="open" profile="snap.kube-controller-manager.daemon" name="/var/tmp/" pid=11601 comm="rbd" requested_mask="r" denied_mask="r" fsuid=0 ouid=014:38
lazyPowertychicus looks like something has crept in since validation that its being blocked14:38
admcleodthe only thing creepier than magicaltrout is a thawing moose head.14:38
lazyPowertychicus I'll take a task from this and circle back but it likely wont be until tomorrow.14:39
tychicusthanks again for your help!14:39
magicaltroutthanks14:39
lazyPoweradmcleod and you just made it even creepier14:40
admcleodthere only one way to make this even creepier than it is.14:42
Budgie^Smorewow the silence is deafening in here ;-)15:13
lazyPoweradmcleod sucked all the air out of the room :) :)15:14
admcleodshhh15:14
admcleodwatching pidgeons15:15
lazyPowerhaha15:15
Budgie^Smoreand there was me thinking it was the Freenode netsplit / server crash that did that lazyPower... why do you have to pick on poor admcleod like that, it is soooo mean :P15:16
lazyPowerwe have a weird dynamic15:16
lazyPowerwe pick on each other and do good work when we pair15:16
jrwrenand I thought it was my bad comcast.15:16
Budgie^Smoreah I know that dynamic well so it ain't that weird :P15:17
Budgie^Smorepicking on each other is safety valve on a pressure cooker15:17
admcleodits more like a shallow frying pan with a spritz of margerine spray15:19
admcleodsome of the teflon coating is peeling off and ends up in the eggs so we're slowly poisoning ourselves15:19
admcleodthere is a tiny glimmer of hope. the pidgeon overlords may take pity on us.15:20
Budgie^Smoreso your saying it is time for a new frying pan there admcleod15:20
admcleodperhaps a slow death is more comforting in its certainty than one unknown.15:21
* Budgie^Smore admits he is just bored of being a full time job seeker! 15:21
Budgie^Smoremaybe I should look at the CDK issues page and see if there is "something" I can fix there15:23
thomaszyllahello15:23
lazyPowerhey thomaszylla o/15:25
Budgie^Smoreo/ thomaszylla15:25
admcleodmagicaltrout: have you seen 'theresa may awkwardly eating chips'?15:26
Spadswat15:29
Budgie^Smoreadmcleod I think you could have had stopped at "awkward" there15:30
* Budgie^Smore is a Brit living California 15:31
admcleodhaha15:31
Budgie^SmoreAll I have to say about the election is "Go SNP!"15:35
admcleodfingers crossed with my uk^H^Hscottish passport15:37
Budgie^Smoreadmcleod right!15:37
Budgie^Smoreso to contain the "may awkwardly...", did you see her awekwardly knocking on doors in Aberdeenshire?15:42
Budgie^Smorecontinue even, coffee needs to hurry up and kick in!15:43
admcleodBudgie^Smore: haha no, i literally only saw a guardian article about her eating chips15:45
Budgie^Smoreadmcleod: Daily Mail called it "cringeworthy footage"15:46
admcleodheh15:50
admcleode15:50
tychicusso I know that juju has a concept of spaces now, can juju be used to add new network interfaces?17:27
tychicusfor instance I used maas + juju to deploy openstack, but now I need to add a new bridge-mapping to neutron-gateway, but to do that I need a new network interface vlan definition and bridge definition17:31
rick_htychicus: not yet. It's what we want to get to.17:34
tychicusrick_h: thanks so for now my best option is to modify /etc/network/interfaces to add the new interface/vlan definition, then I can add that to the bridge-mappings for neutron-gateway17:36
rick_htychicus: hmm, I'm not sure. I'm not sure if there's ways to do that through actions on neutron or what.17:39
rick_htychicus: /me isn't an OS guru unfortunately17:39
tychicusok, thanks17:40
tychicusI'm not either, but juju has been very instrumental in helping me to start learning17:41
=== frankban is now known as frankban|afk
tychicusif I reboot neutron-gateway, juju give the following error after reboot21:23
tychicusServices not running that should be: neutron-l3-agent, neutron-metadata-agent, neutron-dhcp-agent21:23
tychicusdpkg —get-selections lists them as not installed21:27

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