lazypowerbolthole : well huzzah for random workingness :)00:01
lazypowerbolthole: sorry about the quickstart papercut though :/00:04
=== urulama__ is now known as urulama
=== narindergupta is now known as narindergupta_aw
apuimedojamespage: https://code.launchpad.net/~celebdor/charms/trusty/nova-cloud-controller/liberty/+merge/28370908:41
apuimedodid you have a chance to look at the merge proposal?08:42
apuimedojamespage: I take it that were waiting for after the release to merge them since the branch is probably frozen (don't know if you do that or you make a frozen separate branch)08:44
jamespageapuimedo, not yet08:44
jamespageapuimedo, your tomorrows train work :-)08:44
jamespageso long as things are looking and testing ok I'd hope to land later this week once we unfreeze08:44
apuimedoyou are going to Brussels by train?08:45
apuimedoI finally decided for plane08:45
jamespageapuimedo, btw we have plans to move all charm development upstream under openstack - I'm assuming that you might be supportive of that move?08:45
jamespageapuimedo, eurostar is to easy :-)08:45
apuimedojamespage: supportive is not enough. I'm enthusiastic about it08:45
jamespageapuimedo, planes are ok but I have to transfer Norwich -> Amsterdam -> Brussels08:45
apuimedoyou'll probably have a downstream release branch though, right?08:46
jamespageapuimedo, I'm hoping to sprint on the last remaining technical blockers thurs/friday so can move forwards08:46
jamespageapuimedo, nope - all git/gerrit08:46
apuimedojamespage: that makes me happy08:46
jamespagewell have some sort of branch strategy for consolidated charm release points08:46
jamespageapuimedo, charm store is moving away from the bzr based injestion to a direct publish model so that helps...08:47
apuimedoalthough having a downstream internal canonical clone for hotfixes makes a lot of sense08:47
jamespageapuimedo, I'd rather do it all upstream08:47
apuimedojamespage: so would I. I'm just speaking in practical terms08:47
jamespageapuimedo, we're just moving everything we do now in launchpad/bzr to gerrit/git08:47
apuimedothat is the best news I heard for a while jamespage08:48
D4RKS1D3Hi, goodmorning09:34
D4RKS1D3jamespage, to whom sal I connected the juju-info interface required by openvswitch-odl?,  p.s: Could you share with me a juju-status, it would be very appreciated to enable me to explore this information, thanks a lot in advanced.09:34
jamespageD4RKS1D3, just relate it to nova-compute and neutron-gateway09:41
D4RKS1D3Thanks jamespage09:44
jamespagegnuoy, beisner: not sure that neutron-openvswitch got a charm-helpers sync11:57
* jamespage checks11:57
jamespagebeisner, gnuoy: https://code.launchpad.net/~james-page/charms/trusty/neutron-openvswitch/16.01-resync/+merge/28393312:00
marcoceppilazypower aisrael12:57
beisnerjamespage, yeah i've been finding onesy-twosey sync misses unfortunately14:36
lazypowertvansteenburgh: o/ heyo - have you ever seen an issue like this bubble up when attempting ot test a bundle w/ bundletester? http://paste.ubuntu.com/14672009/14:38
tvansteenburghlazypower: no14:38
tvansteenburghlazypower: pondering...14:40
lazypowerI got this stack trace from anton, a nexenta charmer14:40
* lazypower is trying to reproduce14:40
mbruzekI have a partner getting an error bootstrapping, "ERROR failed to bootstrap environment: cannot start bootstrap instance: No default VPC for this user (VPCIdNotSpecified". I have never seen this before.  Has anyone in #juju seen this problem?14:41
lazypowermbruzek: i'm thinking thi sis an account permissions issue14:41
lazypowerbut i'm not 100% positive ont hat14:42
mbruzeklazypower: OK I will ask14:42
lazypowermbruzek: and i'm referring to the AWS API Credentials being provided to juju14:42
mbruzekyes I figured that.14:42
lazypowerright on :) I haven't had my coffee this morning, and if this week is anything like last week, i'm already speaking jibberish14:43
mbruzeklazypower: I had not thought of that, so I thank you for responding.  I will send them an email14:43
tvansteenburghit could also be that the aws user is old enough that it predates vpc, and actually doesn't have a default vpc defined - that happened to me once upon a time14:43
=== coreycb` is now known as coreycb
mbruzekthanks tvansteenburgh!  All good things to check.14:45
tvansteenburghlazypower: are the nexenta charms in lp?14:46
lazypowertvansteenburgh they are, 1 sec and i can get you a link14:46
lazypowertvansteenburgh https://bugs.launchpad.net/charms/+bug/151571714:47
mupBug #1515717: Nexenta Edge Charms to deploy edge cluster <Juju Charms Collection:In Progress by nexenta-systems> <https://launchpad.net/bugs/1515717>14:47
tvansteenburghlazypower: ta14:47
lazypowerurulama: are we in the middle of a deploy?14:57
lazypowerurulama: looks like our docs are 404'ing all the way down the url tree14:58
urulamalazypower: no, no deploy on production going on ...14:58
urulamalazypower: will look into it14:58
lazypoweri take that back, /stable/ is whats 404'ing14:58
lazypowerlooks like /devel/ is still functional14:58
lazypowerand i spoke too soon14:59
urulamaweird behaviour!14:59
* lazypower nods14:59
lazypowerWant me to file a bug urulama?14:59
urulamai'll put a task directly, thanks15:00
lazypowernp, thanks for taking a look15:00
urulamalazypower: i suspect that was an exact moment when docs got rebuilt ...15:02
tvansteenburghlazypower: i couldn't repro using the charm from lp, but, the first thing i would try is to ask him to reinstall bundletester in a venv15:02
lazypowerok, i've got you cc'd on these emails. incoming update15:02
marcoceppicory_fu: I've got a use case for helpers.any_states16:04
marcoceppicory_fu: I'd like to add a @hook_any do you think that would work?16:04
marcoceppicory_fu: this is what I'm doing currently: http://paste.ubuntu.com/14672561/16:05
cory_fumarcoceppi: Sorry, meeting.  @hook_any?16:11
cory_fuDo you mean @when_any?16:11
marcoceppi@when_any, yes16:12
cory_fumarcoceppi: Ok, sorry, meeting is done.16:17
cory_fuOk, I'm fine with a @when_any in theory, but the issue is that, for states set by relations, you are in a position where a given relation instance might or might not be available, so how do you match up relation instances to handler args?16:18
marcoceppicory_fu: are relations keynamed invoked? or just passed as args?16:18
cory_fuAnd, more importantly, if a state is not set, you have no way of knowing if it would have been a relation state, so no way to know if it *would* have an instance if it were set vs if it's a non-relation state in which case it would not have a value regardless16:19
marcoceppimaybe this isn't the best approach16:20
cory_fumarcoceppi: They are only passed  by position, because you can name the args whatever you want16:20
cory_fuIn the handler16:20
cory_fumarcoceppi: Really, passing args into the handler is not ideal, because there's already confusion about which states should expect args and which shouldn't.16:20
marcoceppicory_fu: yeah, I might need to rethink this a bit16:22
cory_fuIt's definitely a problem, though.  I've run into cases where having @when_any would make the code quite a bit cleaner16:22
cory_fumarcoceppi: You can always work around it by having multiple handlers, each with their own explicit conditions16:23
cory_fuBut that can make the list of handlers quite cluttered16:23
cory_fumarcoceppi: For your specific example, it looks like all of those states that you're checking with any_states are really just a way of detecting whether or not you're in an action.  Could you generalize that to a single "in-action" state?16:24
marcoceppicory_fu: possibly, but it's only a subset of actions16:26
cory_fumarcoceppi: Also, if we had https://github.com/juju-solutions/charms.reactive/issues/11 then you could just handle that with an @action decorator with some sort of pattern or wildcard16:26
marcoceppicory_fu: sure, but I'm still in a position that I have to mix @action and @when_not16:26
marcoceppidoes any_states support wildcard?16:26
cory_fuNot currently, no16:26
marcoceppicory_fu: interesting16:27
cory_fumarcoceppi: How are those states getting set?  Could the code that sets those states also set a common "action-requires-configured" state?16:27
marcoceppicory_fu: :) https://github.com/juju-solutions/vpe-router/tree/master/actions16:28
marcoceppicory_fu: so it's possible that we could set that state16:28
marcoceppiwhich might be easier16:28
cory_fumarcoceppi: You could also have the action code check for the vpe.configured state itself and handle the fail instead of doing it in the reactive handler16:30
marcoceppicory_fu: yeah, I was trying to avoid too much logic in the action file, wanted to keep it pretty boilerplate16:30
marcoceppibut that is true16:30
cory_fuFair enough16:31
marcoceppithis is part strawman to see how actions in reactive would work16:31
cory_fuI do think that @when_any would be worthwhile to figure out, and more generally figuring out a better way to address the ambiguity in what states correspond to what params to a handler16:32
cory_fuOne thought was to always pass in a single "context" arg that has methods for accessing the available instances.  Of course, you can also always call charms.reactive.relations.RelationBase.from_state('state') and we could wrap that in a helper16:33
marcoceppicory_fu: kind of like how frameworks send in a single request object?16:34
cory_fuI had rather liked Whit's charm context proposal before he left, but no one picked that up.16:34
marcoceppicory_fu: you still can ;)16:35
cory_fuI know.  :p16:35
cory_fuSwitching to a single context param would be a pretty significant change to the reactive API, though.  Definitely a 2.0 thing16:37
tertiaryi am currently evaluating juju as a solution, but am unsure of something. we have a use case where our clients would need to install our maas+juju cluster, and ideally i would like this to be done with a simple .deb package. is this possible? would i be able to automate juju in a way that it could autodeploy the services with an installer?16:49
tvansteenburghtertiary: i don't see why not. you can automate via the juju cli pretty easily16:58
tertiaryah theres a cli, thanks16:59
=== narindergupta_aw is now known as narindergupta
=== CyberJacob is now known as Guest84254
=== Guest84254 is now known as CyberJacob
=== natefinch_ is now known as natefinch
=== urulama is now known as urulama__
tertiarytrying to install juju on Ubuntu 15.10 Desktop with juju-quickstart, getting the following error: "ERROR there was an issue examining the environment: failure setting config: cannot find address of network-bridge: "lxcbr0": route ip+net: no such network interface". It's strange, this does not happen on Ubuntu 15.10 Server...20:33
lazypowertertiary did you install the juju-local package? and are you using the 'local' provider?20:35
tertiaryyesyes, just confired juju-local is installed. yes using "local" provider20:36
lazypowertertiary:  ifconfig lxcbr0  returns nothing?20:39
tertiaryyeah: lxcbr0: error fetching interface information: Device not found20:39
lazypowerone sec, let me boot up a vm and try something before i recommend it20:40
jrwrentertiary: try `sudo service lxc-net restart`20:40
jrwrentertiary: it can't hurt and its easy enough. then see if `ifconfig lxcbr0` returns status instead of error.20:41
tertiaryyeah same error20:41
skaya very small docs comment: https://jujucharms.com/docs/1.25/authors-hook-debug someone has remapped ctl-b to ctl-a and it's written in to the docs as though ctl-a is hte default20:42
skayspeaking about the tmux session20:42
skayjust noticed it today20:43
lazypowero/ skay  long time on see :)20:43
skaylazypower: hiya20:43
lazypowerskay : looks like the same issue was ported over into the devel docs - https://jujucharms.com/docs/devel/developer-debugging#the-'debug-hooks'-command20:43
lazypowerskay can you file a bug? http://github.com/juju/docs/issues/20:44
lazypowerwe'll circle back and add a footnote that the default key binding is ctrl-b20:44
skaylazypower: I myself also remap ctl-b to ctl-a due to muscle memory of screen20:44
skaychange the code to match the docs, ha!20:44
lazypower:) Thats possible too20:45
lazypowerskay - if you use dhx, you can customize all of that, even upload your own tmux config w/ things like powerline and the like.20:45
tertiary`service lxc-net status` yields: "dnsmasq: failed to create listening socket for Cannot assign requested address"20:46
lazypowerahh, this came up the other day20:46
lazypowerdnsmasq is preventing the lxc bridge froms tarting20:47
lazypoweryou can stop dnsmasq, start lxc-net, then restart dnsmasq - or reboot.20:47
bdxmbruzek: http://bazaar.launchpad.net/~charmers/charms/trusty/postgresql/trunk/view/head:/hooks/service.py20:47
bdxmbruzek: in the configure_sources hook20:48
mbruzekbdx: What is up?20:48
bdxmbruzek: it looks to me as if the sources are only added if both conditions are met correct?20:48
bdxmbruzek: sudo sysctl -w kernel.shmmax=1503238553620:49
bdxmy bad20:49
bdxmbruzek: if config['pgdg'] and config.changed('pgdg'):20:49
tertiarylazypower: service status looks good after reboot, working now. thank you much sir.20:49
mbruzekbdx: Yeah it looks OK to me, if pgdg exists and it has changed generate the debian install line.20:50
bdxmbruzek: all versions of postgres other than 9.3 fail to install the postgresql binary due to sources not being available20:51
bdxbecause for any other version other than whats default in the repos the key and source have to be added20:52
bdxmbruzek: what I'm getting at, is that config.changed('pgdg') shouldn't ever be true20:53
mbruzekbdx config.changed('pgdg') will be true on first run and if anyone sets something else.20:54
mbruzekbdx: If it has a value the first time, if it is none the first boolean check will fail20:54
mbruzekbdx: I often use this pattern when doing configuration values.   if config['key'20:55
mbruzek] and config.changed('key'):20:56
bdxmbruzek: yes, but who wants to modify that config every time the `juju deploy postgresql` ?20:57
lazypowertertiary glad we got you unblocked :)20:57
bdxmbruzek: it should be a prerequisite to have to change that param to have postgresql install other versions on install hook20:58
bdxmbruzek: because it has no default value?20:59
bdxmbruzek: so http://paste.ubuntu.com/14674572/20:59
bdxmbruze: will automaticall make config.changed('dbms') true21:00
bdxmbruzek: at the time of install hook?21:00
bdxmbruzek: I see, hmm, ok. thanks for clearifying that21:01
mbruzekbdx: Still checking, I am very confused thought we were hung up on pgpd parameter.  Let me look at dbmz21:01
bdxoooh my bad21:01
bdxmbruze: will automaticall make config.changed('pgdg') true21:01
bdxtypo in the .yaml I pasted you as well21:03
mbruzekpgdg is a boolean so it _has_ to have a default value (so it will have "changed" on first run) so I would expect `if config('pgdg') and config.changed('pgdg'):` to be true the first run.21:03
mbruzekI don't know about dbms or the version parameter.21:04
bdxmbruzek: ok, no worries, thats all I was after21:04
mbruzekbdx: stub write this charm code, and hangs out in the channel.  If you have specific postgres questions you can ask Stewart.21:04
bdxmbruzek: my bad, I thought I saw you as the contrib for that, I see now it was stub21:06
lazypowerbdx are you stirring up trouble again ;)21:06
mbruzekbdx: I am always happy to help, but I had no context what you were asking.21:06
mbruzekbdx: if you have questions stub knows that code much better than I do.  But again I am always happy to help if you have questions.21:07
bdxmbruzek, lazypower:  I'm currently replacing our postgres clusters with juju deployed ones, just running into a few issues, thats all21:09
mbruzekbdx: Sure.21:10
bdxmbruzek: thanks, totally, I see that now21:10
mbruzekbdx: postgresql is one of the more complex charms we have I can see that one being hard to debug21:11
boltholeHi. I deployed a second mysql instance, and a gitlab instance, through juju-GUI on azure. They werent happy so I tried to delete them. BUt now they wont go away. How can I force them to go away?21:39
boltholethe gitlab status is currently "error", with message;21:39
lazypowerbolthole if services are in error they will block21:39
boltholehook failed: "Db-relation-changed" for mysqlgitlab:db21:39
lazypowerbolthole you have 2 options - 1) to resolve every error (without retry) and just resolve it all the way down until it goes away21:40
lazypower2) juju destroy-machine # --force21:40
lazypowerwhich is a very very angry way to get rid of a service's units, and you can then juju destroy-service {{service}}21:40
boltholeso basically, the "resolve" button, actually means "shut up I I nkow about it already" ?21:41
lazypowercorrect. it will forcibly resolve the error (if you dont choose retry) and it will continue to the next hook in progression21:41
boltholethat seemed to work. thanks!21:41
lazypowernp bolthole o/21:42
boltholewhile i'm on the subject, how can I make a new instance of something with a different name, through the gui? ...21:42
boltholecommand line of "juju deploy mysql mysqlfoo" works. but cant seem to find equivalent in gui that actually works21:42
lazypowerwhen it is dragged onto the gui its "staged"21:42
boltholeI tried going to the Configure option, and changin ghe name, and pressing save... but it doesnt stick?21:42
lazypoweryou should be able to change the service name while its got the blue ring21:42
lazypowerbut once its committed, its committed. You cant change the name21:43
boltholetrying again...21:43
boltholeadding to canvas...21:43
boltholeConfigure -> Serivce name: "Mysql-gitlab" ... Save changes..21:44
boltholebut when I click on configure again.. service anme is back to "mysql"21:44
boltholeseems broken21:44
lazypowerbolthole: thats unfortunate :/ would you mind filing a bug? https://bugs.launchpad.net/juju-gui/+filebug21:45
=== natefinch is now known as natefinch-afk
cory_fulazypower: I don't know if you saw my edit to my comment on https://github.com/juju-solutions/vpe-router/pull/16 that explains more about the try / else construct in Python22:00
lazypoweri did22:00
cory_fuOk.  :)22:00
lazypowerthat was all new to me, i had no idea python did try/except, and the except is intended to allow further exceptions to not be caught by the diaper22:00
cory_fuaisrael: ^ also.  I do think that Exception should be changed to something more specific.22:01
cory_fu"except Exception" is generally a bad pattern22:01
cory_fuThe only thing worse is a bare "except:"22:02
lazypowercory_fu: diaper exceptions ftw i guess?22:02
aisraelI'm indifferent about the Exception; it's just passing a string back to the action handler to call action_fail with22:04
aisrael^^ marcoceppi22:06
cory_fuThe main issue is that it will catch pretty much any type of exception, even ones you are not expecting.  E.g., if the ssh raises something, it will be caught and reported as a validation error, potentially robbing you of some useful stacktrace info22:09
marcoceppicory_fu: that method raises an Exception, haven't really scoped it yet :)22:22
marcoceppicory_fu: I supposed I should create a new Exception class22:23
marcoceppiaisrael: I think the else can be squashed and set_state just moved to the last line in the try block22:23

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