/srv/irclogs.ubuntu.com/2014/01/14/#juju.txt

=== thumper-gym is now known as thumper
=== CyberJacob|Away is now known as CyberJacob
=== mwhudson is now known as zz_mwhudson
=== CyberJacob is now known as CyberJacob|Away
=== nate_finch is now known as natefinch
timrcDoes the config option need to be defined in a yaml file before it can be settable?  I'm charming a service with nested configuration options.  I have a "channels" config option which is a coma-delimited list encapsulated in a string but for each channel I would like to have a "<channel>_devices" config option which encapsulated a coma delimited list inside a string14:50
mgztimrc: yes14:51
mgzeverything should be in config.yaml so you can't have pseudo-lists14:52
timrcmgz, Can I specify multiple config yamls? (e.g. config.yaml has the base config and then a local.yaml which not part of the charm but is used to deploy a specific instance/set of instances)14:53
timrcer as the base config*14:53
mgzno.14:53
mgzyou can just be cleverer about what you're packing into your string14:54
timrcmgz, ugh14:54
mgzthere might be a neater way of doing what you're attempting, that some experienced charmer could explain if you give the whole problem14:55
timrcmgz, I'm just going to use a ConfigParser-type config file, point to it in the config.yaml, and have my config-changed script read and Do The Right Thing (tm)14:59
mgztimrc: config.yaml just describes the config15:00
mgzyour charm needs to get the values out when hooks run using the juju commands15:00
lazypowermarcoceppi: im' getting a key error on admin-secret, i'm in the local environment for juju, and the trace is: http://paste.ubuntu.com/6750920/15:16
lazypowerthis is regarding an amulet test - btw. not juju core, i should specify that.15:17
marcoceppilazypower: yeah, this is a deployer error, do you have an admin-secret key set for your local environment?15:17
lazypoweri dont want to answer that...15:18
lazypoweri do not (facepalm)15:18
marcoceppiadmin-secret is used by deployer because it's the password for gui15:19
marcoceppithat's why deployer is failing, since amulet uses deployer to drive deployments you have your answer15:19
* marcoceppi makes note to make deployer fails nicer15:19
lazypowerThat i knew. My environments.yaml has changed from what i remember it being, or I'm thnking of my juju lab. 1 sec while i run this down.15:19
jcastroman, what happened to the queue15:23
jcastrowe were doing so well!15:23
marcoceppijcastro: all in due time my friend15:27
sinzuimarcoceppi, jcastro: How do I bootstrap juju on trusty. I know how to make a charm go to trusty, but not bootstrap the state-server on trusty16:09
jcastrothe bootstrap node is trusty16:14
lazypowerman I think i just hozed my juju installation :| I've got a leftover in here somewhere after downgrading from 1.17 thats breaking my local provider16:17
lazypowerERROR TLS handshake failed: x509: certificate signed by unknown authority16:17
marcoceppilazypower: delete ~/.juju/environments/local.jenv16:21
marcoceppisinzui: default-series: trust?16:21
marcoceppiI've never tried to make a trusty bootstrap node16:22
sinzuimarcoceppi, yeah, that is the only way I know too16:25
marcoceppisinzui: did it not work?16:25
sinzuimarcoceppi, we haven't checked yet. actually, I do know that method works. We wanted to use an existing env in yaml, but just change the series16:26
arosalessinzui, does bug 1254401 only affect 1.17?17:25
_mup_Bug #1254401: error reading from streams.canonical.com <bootstrap> <juju-core:In Progress by wallyworld> <https://launchpad.net/bugs/1254401>17:25
arosalessinzui, specifically is 1.16 not effected17:25
sinzuiarosales, it affects 1.16+ it will be fixed when we deploy to the site17:26
arosalessinzui, so all deploys are dead in the water this whole week?17:27
sinzuiarosales, there is nothing for a developer to do the bug cannot be in progress, or if it is, utlemming is working on it17:27
sinzuiarosales, the site has  never been up17:27
arosalesI am just wondering if folks know the severity17:27
sinzuiarosales, the bug was filed months ago17:27
arosalessinzui, understood but 1.16 worked before .  .17:27
sinzuiarosales, juju always tries the tools-url, then streams.canonical.com then aws17:28
sinzuioh, it looks in the control bucket first17:28
arosalessinzui, oh so deploys should still work after streams.c.c fails17:29
arosalessinzui, sorry I thought deploys were broken all together17:30
sinzuiarosales, CI has never failed because the site doesn't exist17:30
arosalessinzui, whew17:30
arosalessinzui, I understand now, thanks for clearing that up.17:30
sinzuiarosales, log show a a lot of hate, then juju comes to terms with the issue and moves on17:30
arosalessinzui, gotcha and thanks for the education17:31
arosalesmbruzek, note your hp deploy should succeed after the errors ^17:32
mbruzekright according to the workaround in the bug 1254401 I was able to get this to work with the following17:33
_mup_Bug #1254401: error reading from streams.canonical.com <bootstrap> <juju-core:In Progress by wallyworld> <https://launchpad.net/bugs/1254401>17:33
mbruzekjuju bootstrap -e hpcloud --upload-tools17:33
sinzuimbruzek, no need to that17:37
mbruzekno?17:37
mbruzekjuju bootstrap -e hpcloud ended in Error the first time I tried it17:38
mbruzekjuju sync-tools didn't work either.  Same error17:38
sinzuimbarnett, each CPC has a local copy of tools. Looks like Juju doesn't check for the CPC tools, but you can tell it to17:39
sinzuimbruzek, ^ add tools-url: https://region-a.geo-1.objects.hpcloudsvc.com/v1/60502529753910/juju-dist/tools17:39
mbruzekI was only able to get it to work with the --upload-tools17:39
sinzuimbruzek, I understand that feature will be removed in the future, but will work for a few more months. it is often abused17:39
mbruzekOK17:40
sinzuimbruzek, tools-url will be renamed tools-metadata-url. It will always to the right thing and do it quickly17:40
mbruzekOK so add tools-metadata-url: https://... to my environments.yaml file under hpcloud?  Or tools-url?  This is for trusty and 1.17?17:41
mbruzekadding tools-url17:44
jcastrombruzek, hey so devel release questions will be closed on askubuntu, things like that where stuff is fast moving should be on irc or the mailing list.18:00
mbruzekI was trying to document this for others, and build rep.18:01
jcastroyeah that won't work. :)18:02
lazypowerjcastro: should this be removed then? http://askubuntu.com/questions/405472/how-can-i-downgrade-my-juju-revision18:08
jcastroI would drop the specific versions18:08
jcastroand make it more generic18:08
jcastro"How do I revert from a development version of Juju to a production one?"18:08
lazypowerThanks. Completed.18:10
marcoceppihey, juju-core guys, what does JUJU_HOME expect as a value? With or without the .juju directory? natefinch?18:53
=== CyberJacob|Away is now known as CyberJacob
natefinchmarcoceppi: with18:55
marcoceppinatefinch: ta!18:55
natefinchmarcoceppi: /home/foo/.juju is the default value for JUJU_HOME18:55
marcoceppinatefinch: that's what I was looking for, awesome18:56
natefinchi.e., if you set it, we don't put a .juju folder in the folder we specify, we just dump data directly in that directory18:56
natefinchs/we specify/you specify18:57
marcoceppimbruzek: I couldn't get hpcloud to bootstrap with tools-url, were you able to get a bootstrap?19:40
mbruzekYes only with the --upload-tools19:40
mbruzekIt was already running from that, so my tools-url is untested19:41
marcoceppimbruzek: nvm, I got it working had to remove the .jenv file19:42
jcastromarcoceppi, the postgres review wasn't as heavy as I thought it would be19:43
jcastroso I just pushed19:43
* jcastro cowboys19:43
marcoceppijcastro: yeah, stub does a great job maintaining the charm already19:44
marcoceppi_thumper_: did the default behavior of destroy-environment change from using a -e flag to just a parameter?19:51
=== _thumper_ is now known as thumper
marcoceppiI could have sworn it used to be -e flag19:51
thumpermarcoceppi: yes19:51
thumpermarcoceppi: the name of the environment is now always needede19:51
marcoceppithumper: y u do dis19:51
thumpermarcoceppi: no, nate19:51
thumpermarcoceppi: primary reason was to make someone type 'juju destroy-environment production'19:52
marcoceppiand just like that, half of my scripts broke because -e is no longer a valid flag19:52
thumperinstead of just getting the name from the environment19:52
marcoceppihttps://juju.ubuntu.com/docs/charms-destroy.html#destroy-environments needs updating too19:52
marcoceppithumper: when did this change land? or is it a 1.17 thing?19:53
marcoceppiI can't recall this being an issue in 1.1619:53
thumpermarcoceppi: I think so19:53
marcoceppiohhh, this will be tricky19:54
marcoceppican I file a regression that -e should be valid with no parameters passed for env?19:54
marcoceppithumper: as in, do you think that would be addressed by next stable?19:54
marcoceppior, is it even possible to do19:55
thumperanything is possible, just not simple19:55
marcoceppiis it simple* to do?19:55
thumperno19:55
thumperwell... kinda19:55
=== zz_mwhudson is now known as mwhudson
thumpermarcoceppi: feel free to file the bug, and we can discuss it19:56
marcoceppithumper: Okay, I'll file it as a bug then and hope it gets prioritized for a 1.18 cut19:56
marcoceppithumper: thanks o/19:56
thumpernp19:56
_mup_Bug #1269119 was filed: destroy-environment no longer accepts an -e flag <pyjuju:New> <https://launchpad.net/bugs/1269119>20:01
marcoceppidamnit, wrong project20:02
lazypowermaxcan: you around?20:17
maxcanI am20:18
maxcanwhats up?20:18
maxcanyou're question has the horrifying implication that I'm considered someone who knows something about juju20:18
* lazypower grins20:21
lazypowerYou're doing docker + juju "loose integration" in your production stack arent you?20:22
maxcanwhat do you mean by "loose"20:22
maxcanwe have some charms that where we use a binary that we  "ship" as docker images20:23
maxcanthe charm downloads and runs that docker image20:23
maxcanif thats what you mean20:23
maxcani've thought about writing a generic docker image charm20:23
maxcanbut it wouldn't work for us since we require authnetication to d.load the charm etc20:24
mbruzekWriting an amulet deploy test, I got an error when trying to create a relation20:24
mbruzekValueError: Can not relate, service not deployed yet20:24
marcoceppimbruzek: can you pastebin the test?20:25
lazypowermaxcan: ah ok. I thought i saw environment exports for the config and relation changes20:25
lazypowermind you that was what, a week ago at 11pm EST :)20:26
mbruzekhttp://pastebin.ubuntu.com/6752404/20:26
mbruzekmarcoceppi, ^20:26
marcoceppimbruzek: you reference rabbitmq but you deploy rabbitmq-server20:26
maxcanlazypower: you mean on the MMS charm?20:27
mbruzekThanks marcoceppi20:27
marcoceppimbruzek: either change the add line to d.add('rabbitmq-server', 'rabbitmq') or change the d.relate to use the rabbitmq-server name20:27
maxcanlazypower: oh, for our main charm?  yes, we export env vars into hte docker container with -e20:27
mbruzekIf I had changed the name on the deploy that would have worked20:27
maxcans/main/docmunch-yesod20:27
marcoceppimbruzek: actually, it's d.add('rabbitmq', charm='rabbitmq-server')20:28
marcoceppisorry about that20:28
* marcoceppi needs to read his own docs20:28
maxcanlazypower: i was about to step out for lunch, anything i can help with before I go?20:31
lazypowerThat was it my man. I had a cursory question about your docker usage with juju20:32
lazypowerThanks!20:32
maxcannp20:32
marcoceppithumper: the output a user gets during bootstrap,that's you, right?20:43
thumpermarcoceppi: as in, did I do that?20:43
thumperno, that was axw20:43
marcoceppiyeah20:43
marcoceppiaw, next time I see him, let him know it's really nice20:43
marcoceppidon't have to scratch my head anymore20:43
thumper\o/20:44
dpb1marcoceppi: hey, did you get a chance to review that storage charm? :)21:03
lazypowerdpb1: he did, he's pending a paper writeup for you.21:06
dpb1oh no21:06
dpb1lazypower: I responded to your review comments on the swap charm, thx. :)21:07
lazypowerand its not "oh no" :) you're doing some interesting new stuff in there21:07
dpb1lazypower: yes, agreed.  We are eagerly anticipating the results.21:08
lazypowerThank you for submitting the swap fixes so quickly!21:10
lazypowerI'll try to get that re-reviewed by tomorrow morning, bit backed up atm21:10
dpb1lazypower: no worries, that one is pretty simple.21:11
mbruzekOK I have a new amulet test written ( http://pastebin.ubuntu.com/6752656/ )with the relations corrected.  When I run the test I see it getting started on the hpcloud but I run into this error.21:23
mbruzekAttributeError: 'module' object has no attribute 'CalledProcess'21:23
marcoceppimbruzek: can you provide the full trace?21:24
mbruzekhttp://pastebin.ubuntu.com/6752675/21:25
mbruzekmy admin-secret is not setup correctly?21:25
mbruzekWe need that for the local one, but I set this environment up for hpcloud where juju uses the keypair21:27
mbruzekSo set something for admin-secret and do I need to rebootstrap?21:27
marcoceppimbruzek: all environment s need an admin secret21:27
marcoceppiyes21:28
mbruzekOK21:28
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
=== mwhudson is now known as zz_mwhudson

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