/srv/irclogs.ubuntu.com/2016/11/14/#juju.txt

Danni-33hello, is anyone here familiar with the kubernetes-core bundle? it keeps failing to install easyrsa for me and I am unsure how to debug...02:02
Danni-33seems to stop with this: 2016-11-14 01:07:33 INFO client-relation-changed error: could not download resource: HTTP request failed: resource#easyrsa/easyrsa not found02:02
kjackalgood morning juju world08:01
MmikeHello, guys. Do  you know when 1.25.7 is going to hit trusty archives? (or at least stable juju ppa?) I see that 1.25.7 got release almost two weeks ago: https://launchpad.net/juju-core/+milestone/1.25.710:08
magicaltroutkjackal: its a shame you're not here, i need someone to laugh at!10:22
magicaltrout.. i mean with10:22
kjackalmagicaltrout: :)10:42
kjackalmagicaltrout: so what are the highlights from apache big data?10:53
magicaltroutkjackal: admcleod 's shiny head, SaMnCo 's campness and my sobriety so far.....10:56
magicaltroutmarcoceppi: when you wake up, i spun up a bunch of stuff the otherday, then did apt-get update which amazingly removed everything from my /home directory11:03
magicaltroutso I can't shut the nodes down11:03
magicaltroutso when you clean stuff up, i've got a bunch of crap running doing nothing cause I can't access them11:04
marcoceppimagicaltrout: I'm in EU time zones11:04
magicaltroutor that11:04
magicaltroutfair enough11:04
marcoceppimagicaltrout: so I'll do tha tnow11:04
magicaltrouti have some nodes running :P11:04
marcoceppimagicaltrout: in eu-west-1?11:05
magicaltroutsounds correct11:05
marcoceppimagicaltrout: cleaned up, you may need to kill-controller to reset11:08
magicaltrouti have no home directory, it's as reset as it comes :P11:08
magicaltroutthanks11:08
admcleodi wonder if the code of conduct specifies 'cant slap tom' explicitly11:20
magicaltroutdoubt it, but as you're a woman i'm not allowed to retort either which is deeply unfair admcleod11:22
admcleodexcellent11:23
magicaltroutadmcleod: one of you chaps should sit down with Rich Bowen and do a quick interview about why juju works well with Apache projects11:32
magicaltrouti'm sure you wont, but just a thought11:32
magicaltroutsend petevg along to talk nonsense11:32
admcleod*cut* *paste*11:35
petevgI can talk nonsense. Sounds fun.11:38
magicaltroutwell we're wanting more projects other than Bigtop to upstream charms11:39
magicaltroutso chatting with Rich about it in an audio blog thing wouldn't be a bad way to get the message out a bit11:39
petevgmagicaltrout: has Rich established a base of operations somewhere, or is it a matter of bumping into him?11:49
magicaltrouthe'll just be milling around petevg11:51
magicaltroutI asked him earlier he said the best bet is getting him whilst sessions are on as it'll be a quiet period11:52
petevgCool. Thx, magicaltrout11:52
rockHi all.  We need to know the answer for one question. This is very important for us. In order to interact with charm store we need Ubuntu SSO account and we need to login to launchpad even once right. We created Ubuntu SSO account with Mail ID: "Harish.Kannamthodath.CTR@kaminario.com"  and username is "kaminario". We had account authentication issue. So without deactivating launchpad account unknowingly we deleted Ubuntu SSO account perm12:00
rockThen we tried to create Ubuntu SSO account  using the same mail ID and username. But we got an issue like "kaminario" username already in use. Probably "kaminario" username has stored somewhere in server cache. So please provide me the way to get "kaminario" username back. Because we want "kaminario" username account to push our charm store. How can we delete "kaminario" username from ubuntu server cache?12:00
rockWe raised the bug. But didn't get reply. https://github.com/CanonicalLtd/jujucharms.com/issues/37212:00
axinorock: hi, please email rt@ubuntu.com with your request and we'll sort it out12:54
rockaxino: OK. Thanks.14:14
rockaxino: We will put mail very soon. Please provide me the resolution as soon as possible. Thanks.14:28
pascalmazonHello, I'm developping a charm that takes control replaces the standard network driver to use our own userland one.16:10
pascalmazonTo do so, it performs an `ifdown -a` then `ifup -a` to re-record the interfaces configuration.16:10
pascalmazonUnfortunately, the lxd-bridge is not registered in /etc/network, and lxdbr0 ports to my containers are lost.16:10
pascalmazonI have to manually re-add veth ifaces into lxdbr0.16:10
pascalmazonDo you people have a suggestion on how to deal with that properly?16:10
pascalmazonI tried `systemctl restart lxd-bridge` just in case. didn't change the situation16:14
jproulxis there a complete reference for the YAML I can use in specifying a private OpenStack cloud?  specifically now I'm trying to define what network to use but seems like a full reference would be quite handy16:28
rick_hjproulx: I believe you just need --config network=$uuid17:06
bloodearnestmarcoceppi, many thanks for charm-tools 2.1.6 \o/, works for me on trusty17:08
marcoceppibloodearnest: thanks for the confirmation. Can't wait for snaps on trusty then i can boot out these debs and dep management17:11
bloodearnestmarcoceppi, looking forward to it! :)17:11
cory_fumarcoceppi, mbruzek, aisrael: Please take a look at https://github.com/juju/charm-tools/issues/27617:22
mbruzekcory_fu:  on it17:23
mbruzekcory_fu: Do you mean: https://github.com/juju/charm-tools/pull/28217:23
aisraelcory_fu: ack, I ran into that problem as well17:23
cory_fumbruzek: Yes, the PR not the issue.  Thanks17:24
cory_fuaisrael: I believe the PR should resolve both issues, as I believe they were both due to the venv not being used and it instead trying to upgrade pip on the system.  I'm not 100% certain about it fixing #274, though17:25
cory_fuaisrael: Hrm.  On second thought, I think it probably won't, since that's failing in load_entry_point17:26
cory_fumbruzek: Comments addressed or replied to17:32
mbruzekcory_fu:  OK. I had another one just now. I think venv parameter is unused.17:33
cory_fumbruzek: Hrm.  It's not exactly unused, but I agree that it's confusing17:34
mbruzekcory_fu:  oh? let me take another look then.17:35
cory_fuI changed it to a state var because we had multiple levels of passing it through now.17:35
cory_fumbruzek: Take a look now.  param removed entirely17:35
mbruzekcory_fu: How/where does __call__ get invoked?17:35
cory_fumbruzek: That's the main entry point for the tactic.  It's invoked by the build system17:36
mbruzekOk thanks cory_fu17:37
cory_fumbruzek: https://github.com/juju/charm-tools/blob/master/charmtools/build/builder.py#L44817:37
cory_fuThat's the initial call, and the call within WheelhouseTactic.__call__ is recursion17:37
cory_fu(Sort of)17:38
cory_fumbruzek: I added a clarification to my explanation about the difference between the 1.x and 9.x pips and why each is needed.  I think the verison pin in the PR is needed, but I am a little worried that it is a bit "hidden" in the code.17:42
cory_fuBut having it should prevent breakages due to newer versions being released in the future.17:42
jproulxrick_h: thanks --config network=$uuid was the next puzzle piece17:43
mbruzekcory_fu: Yes I am trying to verify the .join logic, then you get my +117:43
rick_hjproulx: so you should be able to stick that in the cloud file via nested yaml17:43
rick_hconfig: <newline and indent>network=$uuid17:43
rick_hjproulx: you were the one on the mailing list thread?17:44
jproulxthanks it was the 'config:' section I was missing17:44
jproulxrick_h: yup that's me17:44
mbruzekcory_fu: When I make a local path _venv I tried this command: 'bash', '-c', ' '.join(('.', _venv / 'bin' / 'activate', ';', 'pip3') + args)17:45
mbruzekI get: TypeError: can only concatenate tuple (not "list") to tuple17:45
rick_hjproulx: k, I'll reply to the thread as well to make sure it's documented. thanks for fighting through it17:46
cory_fumbruzek: def foo(*args): comes in as a tuple.  If you defined it as a list, it won't wokr17:46
cory_fumbruzek: i.e., use args = ('foo',) instead of args = ['foo']17:46
mbruzekoh17:47
cory_fuI never really understood why Python rejects tuple + list or list + tuple.  They seem like reasonably compatible types17:47
cory_fuI mean, list.extend(tuple) works fine17:47
mbruzekTypeError: can only concatenate tuple (not "dict") to tuple17:48
cory_fuAs does a_tuple + tuple(a_list)17:48
cory_fumbruzek: lolwut17:48
mbruzekI made args['foo']='bar'17:48
cory_fumbruzek: Yeah, a dict is not a tuple17:49
mbruzekmy mistake17:49
mbruzekI see the error of my ways now17:49
mbruzekthanks17:49
cory_fu:)17:49
cory_fumarcoceppi: Can you take a look at https://github.com/juju/charm-tools/pull/282 and include that in the release?17:51
=== zz_CyberJacob is now known as CyberJacob
sk_Hi, I have a query related to juju relations. When we add a relation say juju add-relation Service A Service B, the relation is added at service level.So if Service B has multiple units deployed, each and every unit of Service B will connect to Service A.18:01
sk_But I have this requirement where I want relations to be added at unit level, can we achieve this ?18:02
magicaltroutwhat does the unit stuff achieve sk_ ?18:03
magicaltroutfor example you could detect if it was the leader unit and act on that I guess, or pick out other unit specifics18:03
sk_the scenario is that unit1 of Service A gets connected only to unit1 of Service B and similarly unit2 of Service A gets connected to unit2 of Service B and so on18:04
magicaltroutsk_: but how would you ensure the same number of units existed in each?18:06
magicaltroutthat said, when the relation is joined you could ask for a list of units from the other side18:06
magicaltroutand use some logic to pick the one you want, no?18:07
rick_hsk_: I think you'd have to basically allow juju to manage the juju relation data, but work with the leader to coordinate exact to exact requirements18:07
rick_hsk_: the issue would be that what happens when unit 3 goes down and you add unit 9 and you want A9 to work with B318:07
magicaltroutyou could setup some config based hash to maintain the connection list, not sure what happens if machines go missing though18:08
sk_ok, thanks I would try out these options and see it works for my requirement18:10
magicaltroutdemoed some juju stuff to some folk from JPL today rick_h they have plans to upstream a Solr Cloud charm and some other bits hopefully18:10
rick_hmagicaltrout: <3 awesome, solr the fulltext tool or something different?18:11
magicaltroutyeah they make use of solr a lot instead of elasticsearch. I believe they have some spark <-connector->solr platform18:11
magicaltroutso were looking to use the spark charms with some solr stuff18:11
magicaltroutthey were trying to do it in docker so we ran through the juju stuff and quickly got them converted18:12
rick_hnice18:13
marcoceppicory_fu: that didn't fix it18:42
cory_fumarcoceppi: I'm getting a different error now: Command 'lsb_release -a' returned non-zero exit status 118:45
marcoceppicory_fu: yeah18:45
marcoceppibecause you're using bash18:45
cory_fuIt is using the venv pip, though18:45
cory_fumarcoceppi: Why is using bash a problem?18:45
marcoceppiwell, maybe not18:45
cory_fumarcoceppi: File "/tmp/tmpJDK3hF/bin/pip3", line 11, in <module>18:46
marcoceppipip 9.0 i using lsb_release18:46
marcoceppiugh, I hate software18:46
cory_fuIt is using the venv pip correctly.  I don't understand why lsb_release would fail18:46
marcoceppibecause it's a sap18:46
marcoceppisnap*18:46
cory_fuSnaps can't see what system they're running on?18:46
marcoceppino18:47
marcoceppiit's confined. /etc/lsb-release just doesn't exist (really, practically) for snaps18:47
marcoceppiwhy does pip need to query lsb_release18:47
cory_fuI have no idea18:47
* marcoceppi angrily digs into code18:47
marcoceppicory_fu: so, it's just doing distro detection, which, whatever18:56
marcoceppiI'll update the snap, angrily18:56
cory_fumarcoceppi: How can you work around that in the snap?18:57
marcoceppicory_fu: ANGRILY18:58
marcoceppinot sure, but I'm going to try18:58
MotherDuckingNewSalutations.19:15
MotherDuckingNewI was following THIS video tutorial: https://www.youtube.com/watch?v=bxvCkPnC53U, but it seems he already has some clouds set up on his first video, so I can't really follow along, since I have zero clouds set up. What's a really good beginner tutorial on juju?19:16
MotherDuckingNewp-please reply guys. :319:19
tvansteenburghMotherDuckingNew: https://jujucharms.com/docs/stable/getting-started19:34
andrey-mpHi! I have a question about bundles. Is it right place to ask it?19:57
skay_I am trying to debug hooks. I don't have the commands listed here, https://jujucharms.com/docs/stable/developer-debugging#debugging-reactive19:59
skay_did I not install everything?19:59
cory_fuskay_: Those commands must be run on the deployed unit, in a hook context, and will only be available if your charm is reactive.  Also, if your charm specifies use_venv in layer.yaml, then you will have to activate the venv from /var/lib/juju/agents/unit-<app>-X/.venv/bin/activate20:04
cory_fuskay_: So, the main two questions are: Are you in a debug-hooks session, and does your charm use_venv?20:05
skay_cory_fu: hi, I started off by running juju dhx, which starts up tmux then eventually drops me to a window for the hook20:05
skay_cory_fu: my charm doesn't use venv, I wonder if that would be helpful?20:06
cory_fuOk, good, so you're already in a debug-hooks session20:06
skay_cory_fu: do I have to do anything special when I've got a charm with layers? I'm not clear from reading the docs20:06
cory_fuskay_: It's recommended for subordinate charms, and it is probably better for all charms but does add a step when debugging hte charms20:06
cory_fuskay_: Nothing other than building the charm with `charm build`.  Can you point me to, or pastebin your layer.yaml file?20:07
cory_fuThe only other thing I can think of is that maybe you forgot to add 'layer:basic' to your includes: list20:08
andrey-mpquestion about bundle: In juju 1.25 I can use prepared machines for bundle. But Juju 2.0 ignores created machines even they have same "names". Is it a bug?20:08
rick_handrey-mp: no, it's a difference in the built in bundle deploy vs the deployer tool20:09
rick_handrey-mp: the goal of the built in bundle deploy is to use bundles that are portable for all users and to leave it to the deployer to do special case things that only work locally20:09
skay_cory_fu: done20:11
andrey-mprick_h: thank you for answer. I made this solution because bundle didn't support disks for machines. Is it possible to specify disks for each machine in 2.0?20:11
cory_fuskay_: That seems fine.  You should be able to run charms.reactive from the command line in your dhx session.  What do you get when you type that?20:11
skay_cory_fu: I get 'command not found' https://paste.ubuntu.com/23477174/20:13
skay_cory_fu: perhaps I missed something when building my charm?20:14
cory_fuskay_: That's very strange.  Check the wheelhouse/ directory in the built charm and see if it has the charms.reactive wheel in there20:15
skay_cory_fu: I do not see a wheelhouse directory (I didn't build this one with a venv enabled)20:16
skay_cory_fu: where would a wheelhouse directory go, or is it only around when someone uses a venv20:17
cory_fuskay_: When you do `charm build`, one of the first lines output by that command says what directory it's building into.  The wheelhouse directory will be there.  Alternatively, it will be on the deployed unit in /var/lib/juju/agents/unit-<app>-X/charm/wheelhouse20:21
skay_cory_fu: it's not in /var/lib/juju/agents/unit-<app>-X/charm/wheelhouse20:22
skay_cory_fu: I'm going to rebuild20:22
skay_(I can't remember what to put in metadata.yaml to use a venv and I don't remember where the docs are for valid metadata entries)20:24
lazyPowerskay_ - its layer.yaml, virtualenv: true  as a layer option20:24
lazyPowerhttps://github.com/juju-solutions/layer-basic#layer-configuration - to anyone following along at home20:25
skay_lazyPower: thanks, that was driving me to distraction20:25
lazyPowernp skay_  :)20:25
skay_thnks lazyPower and cory_fu. I've rebuilt my charm, and I have access to the commands I didn't have before (and I also am using a venv now)20:36
lazyPower\o/ nice20:47
brandor5Hello everyone: quick question, how can i map a juju machine to the maas system it lives on?21:12
brandor5anyone?21:22
marcoceppibrandor5: in Juju, it lists the instance-id, which is the ID for the MAAS node21:22
brandor5marcoceppi: oh, i wasn't aware. thanks !21:23
marcoceppinp!21:23
MotherDuckingNewI'm feeling kind of nervous and jittery. Can someone tell me everything will be alright?21:51
WalexMotherDuckingNew: difficult to do that in the #Juju channel :-)21:54
* rick_h passes juju juice around for calming effect21:55
Walexbut most things will be allright21:55
=== spaok_ is now known as spaok
skay_I'm unable to install snap with the snap-layer. it fails on grabbing ubuntu-core22:11
skay_systemctl pastebin https://paste.ubuntu.com/23477593/22:11
skay_journalctl pastebin https://paste.ubuntu.com/23477594/22:11
skay_I'm trying to install a snap via  resource file22:12
skay_it failed, then I started up a debug session and tried running a snap install command directly to see the output22:13
skay_it's actually called layer-snap https://github.com/stub42/layer-snap22:17
skay_stub: hi, have you seen a problem where someone is unable to install ubuntu-core when trying to install a snap?22:18

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