/srv/irclogs.ubuntu.com/2016/03/07/#juju.txt

=== thumper-bjj is now known as thumper
gnuoyjamespage, would you agree that the charms pep8 tests shouldn't cover charmhelpers?10:11
jamespagegnuoy, yes its normally excluded10:11
jamespagesee tox.ini10:11
gnuoybeisner, I don't understand my -1 from https://review.openstack.org/#/c/289229/ . Is that Openstack CI failing to initiate tests remotely?10:47
gnuoyjamespage, beisner, I want to run a mojo spec using my branch which is up for review at review.openstack.org. I'm following the workflow where the only remote location of the wip branch is whereever gerrit stores it when the mp is created. So, I need to tell mojo where to check out my wip branch from. I see no reference to my wip branch on gerrit. Any ideas?10:57
jamespagegnuoy, one sec yes10:57
jamespagegnuoy, ok11:02
jamespageso for you current review:11:02
jamespagegit clone https://review.openstack.org/openstack/charm-keystone11:02
jamespagecd charm-keystone11:02
jamespagegit fetch https://review.openstack.org/openstack/charm-keystone refs/changes/29/289229/211:03
jamespagegit checkout FETCH_HEAD11:03
gnuoyjamespage, thanks but I don't see how that is going to work with mojo11:04
jamespagegnuoy, if you want a straigh branch to ref, the maybe just fork on github and push the branch to the fork for wip testing11:05
gnuoyack11:05
jamespagegnuoy, that's what I'm doing for https://github.com/javacruft/charm-ceph/tree/network-spaces11:06
jamespagefor example11:06
jamespagewant to smoke it before staring to consume ci cycles for testing11:06
jamespagegnuoy, do you know had to add additional remotes to your local repo?11:07
gnuoyyep11:07
jamespagegood-oh11:08
gnuoyjamespage, that's working, thanks11:28
jamespagedosaboy, thedac, gnuoy: http://paste.ubuntu.com/15320377/ well that works...12:19
jamespagemaas-spaces2 branch + MAAS 1.912:19
dosaboyjamespage: congratz12:22
jamespagedosaboy, containers support is just around the corner, and then we can flesh out a openstack-base bundle12:22
jamespagethedac, gnuoy: https://code.launchpad.net/~james-page/charm-helpers/network-spaces/+merge/28828512:57
jamespagethat's what we're getting for Juju 2.0 re network-spaces...12:58
marcoceppinagyz: the MAAS CLI drives an API directly. You could script something directly against that if you were looking to simplify/automate something14:11
beisnerhi gnuoy, re: that initial -1, looks like it was an interwebs glitch http://pastebin.ubuntu.com/15321038/14:28
lazyPowerjamespage -its simple. I like it15:01
jamespagelazyPower, ?15:02
jamespageoh network-spaces15:02
lazyPowerthe network-spaces mp you linked above15:02
jamespageyes15:02
jamespageI agree it is simple15:02
lazyPowerso instead of relation-get, we network-get and it hands back the IP address it should bind to?15:02
beisnerjamespage, our mojo specs define the neutron-gateway:mysql shared-db relation.  that relation found retirement last wk, so we'll need to update all next topologies in spec tests, yah?15:03
beisnero-c-t as well, if it's there15:03
jamespagebeisner, oh I fixed o-c-t already15:04
jamespageneeds dropping everywhere....15:04
jamespagelazyPower, yeah I think so15:04
beisnerjamespage, ok cool, thx for the o-c-t updates.  i'll work on the mojo spec updates.15:05
jamespagelazyPower, you always need the name...15:06
jamespagelazyPower, "<dimitern> jamespage, looking15:12
jamespage jamespage, LGTM"15:12
jamespagelazyPower, wanna give me a charmers +1 so I can land that?15:12
magicaltroutthought i'd missed the deadline for a talk submission then realised March comes before April.....15:12
lazyPowersure, where does teh binding param come from? is it just the name of the relation?15:13
dimiternlazyPower, it can be a relation or extra-binding name15:14
jamespagelazyPower, relation or 'extra-binding' which is a relation-less network binding mechnism15:15
jamespageha15:15
jamespagesorry - dobuled up where15:15
jamespagethere15:15
jamespagecan't type...15:15
lazyPowerIt happens to me all the time :D i'm contageous15:15
jamespagedimitern, I really really want to play with the containers support now :-)15:17
dimiternjamespage, I know :) as soon as that's in a testable state will let you know - should be within the next week or so15:18
lazyPowerjamespage - +1'd15:19
jamespagelazyPower, lovely thanks...15:19
magicaltrouti want to test leader election in amulet15:34
magicaltroutis there a way of asking juju which unit is the leader?15:34
lazyPowermagicaltrout  - `is-leader`15:35
magicaltrouter15:36
marcoceppimagicaltrout: not easily, at least easily atm15:38
magicaltroutthats fine i set it in a status message anyway15:38
magicaltroutso I'll grep the status15:38
magicaltroutjust wondered if there was an official way15:38
marcoceppijuju doesn't really expose who the leader is externally, so we could make a d.service['service'].leader property, or something similar, where we abstract the testing of that away15:39
marcoceppimagicaltrout: I'll open a bug to track15:39
magicaltroutyeah i looked at juju status yaml and didn't see anything of note15:40
lazyPowerunless you status-set something of value wrt leadership, there is none15:41
magicaltroutyeah thats what i do15:41
magicaltroutjam's LXD patch is f***ing rocking. Back to LXD Local \o/15:41
marcoceppiheck yeah! happy to hear that15:42
marcoceppiit should squeak into beta2 due out this weekish15:43
* magicaltrout lives in the land of adhoc patching and trunk builds, beta's have no meaning on this server.......15:44
marcoceppihah15:48
jrwrenmagicaltrout: bonus if its production.15:52
magicaltroutjrwren: hehe, no, i'm not that crazy...........15:53
magicaltroutmy prod server is 2.0 Alpha1.....! ;)15:53
magicaltroutmarcoceppi: i'm clearly just not grepping amulet properly16:08
magicaltrouti know about wait for status16:08
magicaltrouthow do i just get the status?16:08
magicaltroutor the message, to be more precise16:09
marcoceppimagicaltrout: I don't remember, let me check16:12
marcoceppimagicaltrout: ['workload-status'].get('message')16:12
magicaltroutthanks, i was just in the process of getting amulet to print me the contents of the unit object16:13
marcoceppimagicaltrout: basically, unit is the contents of the yaml output of juju status for that unit16:14
marcoceppiso workload-status and message dict key from that16:14
larrymimarcoceppi:  hi, trying to figure out the syntax for the placement stuff from what you suggested. Any pointers as to constraint to use for machine name?16:28
marcoceppilarrymi: I'm not sure, that used to be a secret constraint in juju but it may have been removed. If you use tags in MAAS though it'd have the same effect16:28
larrymimarcoceppi: I see thanks. I tried the tags for 5 machines but getting "ERROR cannot deploy bundle: machine "0" is not referred to by a placement directive (and 4 more errors)"16:33
aisraeltvansteenburgh: There's several charms showing up in the review queue but have been merged: 2433, 2430, 2432, 229916:49
magicaltrouthttps://gist.github.com/buggtb/ec2b9d5abb77c058b46e marcoceppi unleash your python-fu and spot the mistake please :)16:53
magicaltroutwell, i get the error, but I can't figure out the correct syntax :)16:54
aisraelline 2 is missing a closing )16:56
marcoceppimagicaltrout: https://gist.github.com/marcoceppi/298d7db8b409900b2a9916:56
magicaltroutaisrael: i had to type it, ignore the typos the code compiles :)16:56
aisraelalso, I think this: self.d.sentry.unit['pdi/0'] should be: self.d.sentry.unit['pdi'][0], but don't hold me to that16:56
marcoceppiaisrael: ^ ;)16:57
magicaltroutbooo16:57
marcoceppi.unit is pretty outdated at this point. self.d.sentry['service'][#] is better16:57
magicaltroutthe amount of different variations i tried16:57
magicaltroutI dint use .unit initially but they both returned the same error anyway :)16:57
marcoceppimagicaltrout: yeah, .info isn't really that obvious, but because self.d.sentry['service'][#] is a UnitSentry class, it wasn't originally made to be subscriptable, https://github.com/juju/amulet/blob/master/amulet/sentry.py#L63 so we placed the data in .info - that's a design decision from 3 years ago. Obiviously self.d.sentry['service'][#]['workload-status'] should just work16:59
magicaltroutyeah i would have taken about 3 hours to guess that I reckon17:00
magicaltroutworks though... thanks a lot!17:01
tvansteenburghaisrael: updated those reviews, thanks17:03
tvansteenburghmagicaltrout: i am working on api docs for amulet as we speak - hopefully that will help17:03
beisnerhi thedac, can you have a look over this mojo spec review?:  https://code.launchpad.net/~1chb1n/openstack-mojo-specs/mojo-openstack-specs-juju-wait-for-workload-status/+merge/28830217:40
thedacbeisner: sure17:40
thedacbeisner: the resyncs from gerrit to lp, are they at next still or somewhere else?17:43
beisnerthedac, @ next17:44
thedacthanks17:44
beisnerditto :-)17:44
cholcombecharmers: anyone willing to take a look at a quick bugfix? :)  https://code.launchpad.net/~xfactor973/charm-helpers/ceph-configkey-bugfix/+merge/28814617:48
cholcombe8 liner :D17:48
lazyPowercholcombe +1'd17:54
cholcombelazyPower, thanks!17:54
thedacbeisner: so, ceph-radosgw has not synced since Mar 2. Can you take a look?17:55
beisnerthedac, let me make sure we're on the same page(s).  it looks in sync to me:17:57
beisnerhttps://github.com/openstack/charm-ceph-radosgw/commits/master17:57
beisnerto:   https://code.launchpad.net/~openstack-charmers/charms/trusty/ceph-radosgw/next17:57
thedacLet me double check but the bzr log in the next version has a last commit of Mar 217:58
magicaltroutthanks tvansteenburgh looking forward to them! :)17:58
thedacbeisner: ignore me. I had reverse on the bzr log ;)17:59
marcoceppiaisrael: I've got an MP for charmhelpers that adds resource-get18:00
beisnerthedac, woot :)18:00
marcoceppiaisrael charmers https://code.launchpad.net/~marcoceppi/charm-helpers/resource-get/+merge/28832818:04
jamespagebeisner, thedac: I have a glance and ceilometer review in the queue which fix from bits of mitaka support - any chance you can review?18:09
jamespagethey both full smoke OK18:09
beisnero/ jamespage - sure18:09
thedacjamespage: yes, I am having issues logging into review.openstack.org. Trying to figure out what I am missing18:10
jamespagethedac, hmm18:10
jamespagesso matching maybe18:10
thedacYeah, I get into a loop with sso18:10
beisnerfyi jamespage, thedac, gnuoy - added [uosci-crit] failure email nag on the github-to-launchpad sync job18:12
thedacbeisner: jamespage: is there an LP team we need to be in to log into gerrit?18:14
thedacI notice sso is not passing any teams18:14
beisnerthedac, not afaik18:15
cholcombebeisner, here's the debug log: https://gist.github.com/cholcombe973/11f017456581397664f4 :)18:21
cholcombebeisner, rolling upgrade in action18:21
cholcombeit's noisy18:21
aisraelmarcoceppi: awesome, I'll check it shortly18:56
=== alexisb is now known as alexisb-afk
=== alexisb-afk is now known as alexisb
metsuke_is there any documentation we can look at to add MAAS to juju 2 ?  all the docs we find and even the cli help is old20:33
lazyPowermetsuke_ - there was a section about this on the release notes, one sec while i fetch you a link20:35
lazyPowermetsuke_ - https://lists.ubuntu.com/archives/juju/2016-February/006618.html    under private clouds20:35
metsuke_lazyPower: thanks20:39
metsuke_will juju 2 have multi-user authentication and management?20:39
rick_h__metsuke_: yes20:40
metsuke_rick_h__: cool, thanks!  I saw the last on-air and the subject was kind of touched on.  Specifically, can we link users in juju to openstack tenants or users?20:42
rick_h__metsuke_: ah not so much there20:42
rick_h__metsuke_: that the admin that bootstraps a controller can share/add other users to that controller20:42
metsuke_ok, how about models in juju lining up with openstack tenants?  if that's not a think then how about imposing quotas on models to act like quotas on nova tenants?20:45
rick_h__metsuke_: so when you create a model you can specify cloud credentials to use20:46
rick_h__metsuke_: and those could be different tenants on OS and you could do things like enforce OS quotas I think20:46
metsuke_oh, so it is per model that we can specify the credentials.  That would work just fine!20:47
rick_h__yea, it'll have a sane defautl, but be tweakable20:47
metsuke_Do you happen to know if there is a way to share volumes in juju or is that left up to your back-end (like Openstack Manila)?20:49
rick_h__so there's a roadmap feature for adding shared filessystems to the storage modeling Juju does20:51
rick_h__but yes, at the moment that's not available in juju itself20:51
metsuke_nice!  In that case, I'll have to find someone to make a Manila charm20:52
rick_h__marcoceppi: I see a new charm on the horizon http://blogs.microsoft.com/blog/2016/03/07/announcing-sql-server-on-linux/20:54
marcoceppirick_h__: we already have sql-server for windows ;)20:54
magicaltroutsql server, the platform that makes grown men cry20:54
rick_h__marcoceppi: true enough20:54
stokachuwill the auto credential detection still require us to manually create a credentials file for MAAS?20:57
rick_h__stokachu: it looks at local files. wallyworld is there a list of what's supported? not seeing a list of paths in the release notes20:59
stokachui saw one for checking .novarc for openstack, so curious if there is one for maas21:00
=== _thumper_ is now known as thumper
rick_h__stokachu: don't see it but if there's a path please let us know and we can look to add https://github.com/juju/juju/blob/af8944dd5a0d6cfe65a1f0e6bd5116a479270a91/cmd/juju/cloud/detectcredentials.go21:01
stokachuhmm that may need a feature request for maas guys21:01
wallyworldrick_h__: the release notes do list what's supported21:01
wallyworldi updated them last week21:02
rick_h__wallyworld: in the google doc?21:02
wallyworldyep21:02
wallyworldaws, google, openstack/rackspace21:02
stokachucan i get access to that google doc?21:03
stokachujust to read it21:03
wallyworldsure21:03
aisraelre charm promulgate, it's throwing "ValueError: Series can not be None" when I run it inside the charmdir I want to promulgate. Is there more to the command?21:09
aisraelmarcoceppi: lazyPower ^21:09
lazyPoweraisrael charm promulgate -s trusty21:10
aisraellazyPower: mucho gracias21:10
wallyworldrick_h__: do the release notes answer your question? did you see the material?21:11
rick_h__wallyworld: looking at https://docs.google.com/document/d/1ID-r22-UIjl00UY_URXQo_vJNdRPqmSNv7vP8HI_E5U/edit under "autoload-credentials" it'd be good to list what clouds/paths it looks for21:12
wallyworldrick_h__: it does in the Credentials Management section21:13
rick_h__wallyworld: maybe a reference from that section to the other?21:13
wallyworldok21:13
rick_h__ty21:13
wallyworldrick_h__: the info is a few lines above21:15
wallyworldie the autoload feature is described in the credentials management section21:15
wallyworldwhere it looks is described just before the autoload command is talked about21:15
wallyworldthere's no need for a link then is there?21:16
wallyworldie all the info is together21:16
mattywcmars, menn0 http://reviews.vapour.ws/r/4085/21:22
menn0mattyw: looking21:22
mattywmenn0, thanks, I *think* it's what you suggested21:23
menn0mattyw: it is, but I've suggested further changes on the review21:25
mattywmenn0, we still want to keep the DocID filed right? because we want to choose which field mongo wants to have as _id (our static key)21:27
menn0mattyw: when the document struct doesn't have an _id field, the "Id" on the txn.Op that inserts it is used21:28
menn0mattyw: given that you don't care about the _id when you read the doc out (it's fixed after all), there's no reason to have it on the struct.21:29
menn0mattyw: leaving it off the struct just avoids some clutter21:29
mattywmenn0, I see it now, thanks for pointing it out21:31
mattywmenn0, I'm going to have a pr with many more deletions than additions :)21:31
menn0mattyw: that's often a very satisfying kind of PR :)21:31
mattywmenn0, just pushing the changes21:32
mattywmenn0, PTAL http://reviews.vapour.ws/r/4085/21:36
rick_h__wallyworld: hmm, ok yea it reads backwards to my brain but understand. I did a "find on page" for autoload and read down and so I never saw the stuff above it.21:44
lbordaguys can you point me to a charm where I can learn (in python) how to change the variables for a given config template file ?  or point me to a commit where a parameter was added to an existent charm ?21:52
magicaltroutlborda: https://github.com/OSBI/layer-pdi/blob/master/reactive/pdi.py#L124 or something more?22:10
lbordahumm... magicaltrout you're using the render function directly... cool how does that work if you have to juju service set <service> var=bla ?22:14
magicaltroutso if you look around line 5822:16
magicaltrout61 etc22:16
magicaltroutthere are a bunch of data_changed hooks22:16
magicaltroutto reprocess stuff if you change a charm setting22:16
magicaltroutso I'd just use on of them and the render call22:16
magicaltrout(I believe, i'm no expert but i'm pretty sure that would work fine)22:16
magicaltroutthe render calls down the bottom are triggered by leader election22:17
magicaltroutwhich is pretty similar22:17
lbordamagicaltrout, humm... lines 61..64 look like what I am looking for... :) thanks... it's actually for the keystone charm so I will probably have to use a variance of the logic ... but it helps a lot tks22:21
magicaltroutno probs22:24
lbordamagicaltrout, using charms.reactive is much easier...22:24
magicaltrouthehe22:26
magicaltroutwell i got a very helpful double team training session from kevin and cory_fu in Ghent which helped a lot with picking the right stuff22:26
magicaltroutespecially as I knew no python22:26
magicaltroutthe only reason we wrote that layer in python is because i was stubborn and wanted to learn some python ;)22:27
magicaltroutbut its serving as a good place for me to refer to as its got a bit of everything22:27
lbordamagicaltrout, doing it for learning python is a good excuse! :) tks22:29
=== thumper is now known as thumper-dogwalk
magicaltroutevening all23:08
aisraelo/23:08
magicaltroutis there a way to tell a test to wait until the next leader election routine has run?23:08
magicaltroutor do I  just tell it to chill out for 5 minutes and check again23:09
aisraelHm. You could watch the status for the next leader election to run, and then wait for that to finish23:18

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