/srv/irclogs.ubuntu.com/2017/06/13/#juju.txt

narinderguptahi juju team are we working on kubernetes provider by any chance? Just wondering whats our take on instatiating a workload on top of kubernetes.00:40
tvansteenburghnarindergupta: juju deploy canonical-kubernetes00:42
narinderguptatvansteenburgh: i understand but anything on deploy on top of kubernetes like we do it on lxd or openstack etc....00:43
narinderguptatvansteenburgh: thanks00:49
kjackalGood morning Juju world!06:57
=== frankban|afk is now known as frankban
armaanjamespage: Hello, I am trying to find the official documentation for Mitaka to Newton upgrade? I am not sure if there is one such document which is publicly available. Could you please let me know where can i find the docs for the M->N upgrade?11:23
armaanjamespage: If i just change the source to openstack-origin=cloud:xenial-newton, will that be enough?11:25
jamespagearmaan: yup11:25
armaanjamespage: great, thanks :)11:30
erik_lonroth_Hello again. I'm about to demo an installation of a hadoop/spark bundle with juju and wonder if someone has a working example I can use? Preferably some failsafe bundle....11:32
magicaltrouthttps://jujucharms.com/hadoop-spark/ canonical are currently working on a jaas tutorial for that erik_lonroth_11:33
magicaltroutit works pretty well11:33
erik_lonroth_Great, I'll try give it a go and see11:38
erik_lonroth_thanx!11:38
erik_lonroth_I tried deploy it but it fails with errors on the namenode and spark...11:56
magicaltroutweird11:59
erik_lonroth_I think it might be some apt things...11:59
magicaltroutwe spun it up 30 minutes ago without any issues11:59
erik_lonroth_I'll push up a debug-log soon12:01
erik_lonroth_https://pastebin.com/WpxCbx7K12:03
erik_lonroth_I will mention that we have a proxy..... Its been a source for extremely many problems so far.12:06
magicaltroutdoes look nasty12:07
magicaltroutyou should have a chat with the lovely kwmonroe12:07
kjackalerik_lonroth_: magicaltrout I am giving it a try now12:09
magicaltroutgoooooooo kjackal12:09
magicaltrouthe is also lovely12:09
magicaltroutbut a little bit crazy12:09
kjackaldid you get a car magicaltrout?12:10
magicaltrouti have a car12:10
magicaltroutits a 2nd hand vw golf12:10
magicaltroutthe same one i had in pasadena12:10
kjackaldisaster....12:11
magicaltrouti'm thinking about a 2nd hand ford mustang import12:11
rick_hmy neighbor just got a new mustang, pretty nice12:13
rick_hlong live the stick!12:13
magicaltroutmaybe i'll get a huge rick_h style RV instead....12:14
rick_hFun at the campground https://goo.gl/photos/C9v1yhoAg2PhnF5u712:15
rick_hActually https://goo.gl/photos/978vPSWqGgP3u6Ai612:16
magicaltroutdo you have a stupendous Pickup to go with it rick_h ?12:16
magicaltroutI believe thats the law in the us12:16
magicaltroutah12:16
magicaltroutonly moderate12:16
rick_hmagicaltrout: but of course12:16
rick_hTough to fuel up sometimes https://goo.gl/photos/VD1cZZ6uXk8dSdmr9 lol12:17
magicaltroutnot like the pickups we saw when crusing around florida though12:18
magicaltroutsome of those were bonkers12:18
kjackalerik_lonroth_: spark bundle seems to deploy fine ever here12:18
kjackalerik_lonroth_: let me see the repo it is trying to get bigtop packages from12:19
jrwrenmagicaltrout: i assure you, there is nothing moderate about that pickup and that it is stupendous.12:24
kjackalerik_lonroth_: the repo for bigtop is this one: http://bigtop-repos.s3.amazonaws.com/releases/{version}/{dist}/{release}/{arch}12:24
magicaltroutha!12:25
kjackalerik_lonroth_: is it possibe your firewall/proxy is blocking this repo?12:25
erik_lonroth_It is the prime suspect.13:06
erik_lonroth_I'll investigate that first as that is normally our proble,.13:06
erik_lonroth_problem.13:06
erik_lonroth_Could it be related to another error I found that looks like this from something called "Bigtop" https://pastebin.com/wzVYUtc513:18
magicaltroutbigtop is the apache hadoop distribution fyi13:18
erik_lonroth_unit-namenode-0: 14:01:54 INFO unit.namenode/0.install FileNotFoundError: [Errno 2] No such file or directory: Path('/etc/default/bigtop-utils') -> Path('/etc/default/bigtop-utils.bak')13:18
magicaltroutI think its likely to have failed prior to that13:19
magicaltroutlike the apt failures13:19
magicaltroutthat error is because there is nothing to copy13:20
magicaltroutbecause bigtop doesn't seem to have been installed13:20
=== scuttle|afk is now known as scuttlemonkey
dakjgood evening everyone, someone can help to understand how to deploy landscape-client on a virtual server where is installed already a service? its README is few clear. thanks in advance14:24
dakjI've also a post here https://askubuntu.com/questions/918493/deploy-of-landscape-client-on-a-node14:25
=== Guest6511 is now known as med_
kwmonroehey erik_lonroth_ - the big data charms/bundles do require external apt access.  if you're behind a proxy, you can configure a model to use them:  https://jujucharms.com/docs/stable/models-config14:36
kwmonroeerik_lonroth_: as an example:  juju add-model mymodel --config http-proxy=http://squid.internal:3128 --config https-proxy=http://squid.internal:3128 --config no-proxy=127.0.0.114:37
kwmonroeyou may be able to set those vars on an existing model with "juju model-config -m mymodel foo=bar"14:38
vlad_Hey guys what networks does the juju controller need to be on for an openstack deploy to work?14:40
vlad_Does it need to share all networks that the nodes for the deploy themselves are on14:40
magicaltroutsee i told you kwmonroe was very nice14:45
magicaltroutmuch more useful than that kjackal14:45
kwmonroelol14:46
kwmonroeyou're pretty lovely too magicaltrout14:46
magicaltroutaww only cause rick_h files feature requests on my behalf, saves my fingers from RSI14:47
rick_hmagicaltrout: heh, glad to be of service14:50
rick_hvlad_: are you deploying the openstack or on the openstack?14:51
rick_hvlad_: generally it needs binds to all interfaces on the machine it's deployed to and it needs to share a common interface with the nodes14:52
vlad_rick_h: Deploying the openstack14:52
rick_hvlad_: there's an open bug about getting juju to support specifying the network to use for juju communication14:52
vlad_rick_h: Makes more sense now that I was able to get the system to boot up using one network that the controller shared with the rest14:53
vlad_rick_h: Think I could get around this issue as long as the openstack nodes and the controller share at least one subnet?14:54
rick_hvlad_: I think so, but the question is going to be some juju quirks as to how it'll pick which subnet to talk across and making sure it's in the right place in the list on the nodes to be picked up as a common place to chat14:58
rick_hvlad_: beisner and others from the openstack teams probably have more experience with those quirks than I can think off of the top of my head14:59
vlad_rick_h: Good point. To be honest you guys have been the most helpful IRC to date for me anyway. Which I really really appreciate by the way. I think my biggest issue is that I'm trying to set this up in a system that's not physically setup right and that's why I keep hitting quirks15:00
rick_hvlad_: yea, there's a lot of moving parts to work through for sure15:00
rick_hvlad_: there's some charms that admcleod has that helps test network among nodes in maas (/me isn't sure what you're putting this OS on)15:01
* rick_h takes this opportunity to poke admcleod about the blog/demo stuff on them. 15:02
rick_hhttps://jujucharms.com/u/admcleod/woodpecker and https://jujucharms.com/u/admcleod/magpie15:03
vlad_rick_h: Awesome thanks I'm deploying everything onto xenial I believe15:06
vlad_rick_h: Yeah this is strange I've taken out the bindings and all config references in juju of this network and it keeps using it for some reason15:07
bdxhello!16:01
bdxis there a xenial docker charm laying around somewhere?16:01
cholcombeif i call relation_list() on a reactive charm when I only have 1 unit is it expected that it will fail?17:11
jrwrenfail as in traceback? no.17:11
cholcombejrwren: i get 2 error code back saying: error: no relation id specified17:20
cholcombeit ran relation-list --format=json17:20
cholcombei'm running juju 2.1.317:20
=== frankban is now known as frankban|afk
cholcombehere's what i'm seeing: https://gist.githubusercontent.com/cholcombe973/2ffd92cc7afc50fa01299600c05b3c09/raw/4d84efb719a9299c2a0febbd7ef0459334250f63/gistfile1.txt .  I'm deploying a new gluster charm with 1 unit17:23
cholcombei'm calling relation_list() and it blows up17:24
cholcombei see the same thing in the debug-hooks for the install hook17:24
cholcombemaybe that's the issue.  i'm in the install hook and it's running this17:24
jrwrenIMO definitely a reactive bug.17:25
jrwrenor charmhelpers bug.17:25
cholcombejrwren: yeah one of them is broken17:25
jrwrenpart of the point of charmhelpers is to wrap those calls and make it easy for a charm writer to never have a traceback surface.17:25
cholcombejrwren: indeed17:33
lazyPowerbdx: got your metadata pr merged. should be g2g if you rebuild now17:57
lazyPowerbdx: anything you find in the store is going to be old at this point. I'd like to ideally setup a job to build and publish that charm to edge on repo-update. I haven't had the bandwidth to circle bakc to that effort though.17:58
lazyPowercholcombe: i dont see relation_list in this. https://pythonhosted.org/charmhelpers/api/charmhelpers.core.hookenv.html18:00
lazyPowerso i suspect reactive, or you're invoking some wrapper thats calling that via subprocess?18:01
cholcombelazyPower: i'm calling related_units which calls relation-list on the cli18:13
lazyPowercholcombe: did you capture that output? i would have suspected relation-list would return empty, but may be > 0 during the install hook18:13
cholcombelazyPower: yeah it's in the paste above18:13
lazyPowerafaik the charm has no notion of any relations that early in the invocation, as no other events have been processed other than *possibly* storage-attached in some charms.18:13
cholcombeyeah i prob messed up somehow and it's stuck in the install hook18:14
lazyPowerreturned non-zero exit status 2 -- ok, so have you attempted to invoke?18:14
lazyPowersorry incomplete sentence18:14
lazyPowerHave you tried to invoke that command in a shell in that hook context?18:14
cholcombei did18:14
cholcombesame error18:14
lazyPowerit gave you a python traceback?18:14
cholcombeyeah18:15
cholcombei also have the cli output but it's identical18:15
lazyPoweri meant have you invoked relation-list --format=json on the cli18:15
lazyPowerrelation-list is a golang app, if your'e getting python somethings really wrong.18:15
cholcombeoh.  yeah i did but i threw that terminal away18:15
lazyPowerok i want to do 2 things is why i'm asking18:15
cholcombeok18:15
cholcombei'll try again in a sec18:16
lazyPower1) make sure that traceback isn't masking a bug, 2) capture the behavior so we can patch or document charm-helpers so this doesn't bite other people18:16
lazyPoweri suspect you'll need to capture this in a try/except block and handle the CalledProcessError exception to keep going today.18:16
lazyPowerthat or guard against invoking that during install18:16
lazyPowerbut i dont like option 2, because it's not indicative as to why thats the case.18:17
cholcombelazyPower: yeah.  i'll get the cli output in a sec18:17
lazyPowerty <318:18
cholcombei remember it giving the same output thought.  it says no relation id specified18:18
cholcombeand then echo $? says 218:18
bdxlazyPower: thx18:19
lazyPowercholcombe: relation-list --help?18:19
cholcombei've gotta wait for a vm to start up again to try18:19
cholcombe1 min18:19
lazyPoweri think you need to run relation-id's, to get the relationship id, and then plug that into relation-list ot list the sessions of that relation type18:19
lazyPowerso either a param was missing, or something is really funky in ch18:20
cholcombethe related_units code doesn't do a try except in the charmhelpers source18:20
cholcombeit just expects it to work18:20
lazyPoweryeah, i'm not surprised. i think the thought was better to raise an error than silently fail18:20
cholcombei see18:20
cholcomberelation id shows as None in the install hook18:20
lazyPowerok give me 1 sec, let me trap a unit in a hook and get some more detail18:21
lazyPower1 sec18:21
lazyPowercholcombe: you're forcing me to reactivate dead braincells in this domain :) I haven't had to think about this since the move to reactive18:22
cholcombehahaha18:22
cholcombelazyPower: sorry man18:22
lazyPoweryou're all good bruv, we need to know this stuff too18:22
lazyPoweri've just been spoiled18:23
cholcombei'm building up the new gluster charm as reactive that's why i'm asking18:23
lazyPowerSo, why are you probing for relation id's instead of using the conversation objects?18:24
lazyPowerthis level of tracking is handled for you when you use the newer style interfaces. you can just invoke object.conversations() and count how many occurrences you have. if you need more detail, the conversation object has it in the dict.18:25
cholcombelazyPower: hmm alright.  yeah i'm prob going about this the wrong way18:27
cholcombeit's because the old charm was classic and i'm trying to convert it18:27
lazyPowercholcombe: however, lets teach you :)18:27
lazyPowerrelation-ids kube-api-endpoint18:27
lazyPowerkube-api-endpoint:818:27
cholcombeok18:28
lazyPoweryou start with the relation-id's command to get your relationship id, you have to specify the interface18:28
lazyPoweror is it relation name?18:28
lazyPowerits relation name18:28
lazyPoweryou use that id at the end of the name, so in this example its 818:28
lazyPowerrelation-list -r 818:28
lazyPowerkubeapi-load-balancer/018:28
lazyPowerwhen you invoke relation-list -r  it tells you what units are attached in the scope of that id18:29
cholcomberight18:29
cholcombei think i had that written down somewhere in a cheat sheet18:29
lazyPoweri thought there was a command that gave you -all- relations in a list plus id, but that doesn't appear to be the case.18:29
lazyPoweragain, dead braincells, i might be conflating it with something else18:29
lazyPowerso, i'm going to presume that the related_units() invocation needs the relationship name18:29
cholcombeok18:30
lazyPowerand that should get you what you're looking for18:30
lazyPowerlemme pull up the source and verify18:30
cholcombeok18:30
cholcombelazyPower: +1 :)18:30
vlad_Hey guys if one of my unit fails to deploy is there an easy way to have juju just rerun it? For example my openstack-dashboard failed to deploy but nothing else on that machine had errors18:31
lazyPowervlad_: it should auto-retry with a backoff timer by default unless you disabled that behavior in model config18:32
lazyPowercholcombe: where did you import relation_list() from?18:32
cholcombefrom charmhelpers core hookenv18:32
cholcombei believe18:32
lazyPowerthat method doesn't exist18:32
lazyPowerwhat are you actually calling again? :)18:32
lazyPowerits lost in scrollback to me18:32
cholcombehaha18:33
cholcombeum18:33
cholcomberelated_units i think it's called18:33
lazyPowerdef related_units(relid=None):18:33
lazyPoweryeah sure does, it wants the ID of that relationship18:33
lazyPowerhttp://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/core/hookenv.py#L42818:33
lazyPowerthats why its blowing up on you. the method incorrectly defaults to None and masks the error. it should have faulted at the parameter level and forced you to provide one18:34
cholcomberight or it asks for relation_id which turns out to be None in the install hook18:34
cholcombeyeah18:34
lazyPoweryou're not in a relationship context, so that seems to jive with what we're seeing18:34
cholcomberight18:34
cholcombei'm always breaking stuff :-/18:34
lazyPowerall of these were intended to be used in the scope of a relationship context, and overridden when you were outside of it to invoke relations during non-relationship events.18:34
lazyPowernah, its just a confusing mess bruv. i feel your pain18:35
cholcombehaha18:35
lazyPowerrelationships are still one of the most advanced concepts we have18:35
lazyPowerthe reactive model has made it easier, but its not perfect18:35
lazyPowerso, i would encourage you to write a proper interface using the reactive model, and use the interface object you get back to perform your checks you're trying to do18:36
lazyPoweri presume this is for peering and minimum node count?18:36
cholcombeyeah18:36
cholcombethat's correct18:36
lazyPoweryeah, you're gonna need to write a peer interface, which both provides and requires18:36
lazyPowerso you get to mash that logic up into a single interface18:36
lazyPowerlemme link you to etcd peer interface18:36
cholcombeok18:36
lazyPowerit may help18:36
lazyPowerif it doesnt, i take no credit/blame ;)18:36
cholcombewolsen wrote a peer interface and i'm trying to wrap my head around it still18:36
lazyPowerhttps://github.com/juju-solutions/interface-etcd/blob/master/peers.py18:36
lazyPoweryeah this is too light to actually be helpful18:37
lazyPoweri forgot i'm using leadership to coordinate the cluster18:37
lazyPoweri'm only using peering to do detail probing and control states.18:38
cholcombethat's ok18:38
wolsenI think cholcombe's code will use essentially the same level of details18:38
lazyPowerthere's a whole heap of logic that's not represented in here because i used a different mechanism18:38
lazyPoweroh ok :) well, neat18:38
lazyPowercholcombe: best of luck to you :)18:38
cholcombethanks :)18:38
lazyPowervlad_: that being said, juju resolved openstack-dashboard/0 will retry the hook execution that last failed18:39
=== scuttlemonkey is now known as scuttle|afk
Guest73Hi All, What is the difference between Juju and DCOS ?23:23

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