/srv/irclogs.ubuntu.com/2016/01/12/#juju.txt

=== blr_ is now known as blr
=== natefinch-afk is now known as natefinch
gnuoyjamespage, is there any harm in having two network endpoint entries one for quantum and neutron ?08:34
=== danilos` is now known as danilos
cholcombelaunching juju local containers over crappy hotel wifi is super painful11:29
tiagogomes__Hi, does JuJu requires Cinder to be installed when bootstrapped on OpenStack when some charms define some storage requirements?11:53
cholcombetiagogomes__, i would guess yes.  Let me have a look at the charm12:01
cholcombetiagogomes__, what does your deploy currently look like?12:03
tiagogomes__cholcombe which deploy? JuJu? I am not trying to deploy anything yet. I am just trying to understand if Cinder is required, because for some reasons we can't have Cinder installed in our setup12:05
cholcombetiagogomes__, i see12:05
cholcombetiagogomes__, i'll have to defer to one of the openstack guys.  I'm not certain12:06
tiagogomes__If JuJu calls "nova attach" i would say it needs12:06
tiagogomes__but on https://jujucharms.com/docs/1.25/storage, it says persistent storage is future work.12:10
jamespagegnuoy, hey - hows it going?12:39
jamespagetiagogomes__, to use an openstack cloud using juju, you don't need cinder deployed12:46
tiagogomes__hi jamespage. Thanks. So what happens when you assign storage to a service? Or when you run "juju storage add"12:48
jamespagetiagogomes__, you won't be able to assign persistent storage to a service without cinder12:48
jamespageI suspect the command will throw an error but I don't know definatively12:48
tiagogomes__jamespage so some charms may not work if they specify storage right and there is no Cinder service right?12:49
jamespagetiagogomes__, most will default to using the root disk if storage is not explicilty configured12:49
tiagogomes__jamespage I understood that. Bu what if f storage is explicilty configured?12:50
tiagogomes__*But12:50
jamespagetiagogomes__, tbh its such a new feature I don't think you will hit that today12:50
jamespagetiagogomes__, maybe in April...12:51
jamespagebut not today12:51
tiagogomes__ah, so storage functionality is new12:51
gnuoyjamespage, good, do you see my mps?13:12
stubcory_fu_, marcoceppi : And the unreadable diff of the year goes to  https://code.launchpad.net/~stub/charms/+source/postgresql/+git/postgresql/+merge/28229913:14
stubYay git file name tracking13:15
tiagogomes__Another JuJu question, can I choose the flavor that VMs will use for JuJu bootstrapped on OpenStack13:52
tiagogomes__Hi, is it possible to run the JuJu state server on the baremetal, whilst orchestrating the services in OpenStack VMs?15:40
marcoceppilazyPower: ping16:21
marcoceppitiagogomes__: technically, yes16:21
marcoceppitiagogomes__: any reason why you would want the state server on the bootstrap node and not in the cloud?16:21
tiagogomes__marcoceppi it was requested by a costumer16:22
marcoceppitiagogomes__: so, the bare metal and the openstack cloud would need to be on the same network, or addressable, and it's really more a hack.16:23
marcoceppitiagogomes__: not something that juju was designed to do16:23
tiagogomes__marcoceppi they will be in the same network. Is there instructions how to do so?16:25
marcoceppitiagogomes__: no, because it's really not a supported thing16:26
marcoceppitiagogomes__: you basically have to bootstrap the openstack cloud first, juju add-machine ssh@baremetal; juju ensure-availability --to 1; destroy machine 0 from openstack16:26
tiagogomes__marcoceppi thanks, by "bootstrap the openstack cloud first" you mean 1. deploy openstack 2. bootstrap juju on Openstack?16:34
coreycbgnuoy, tiny mp if you can take a look: https://code.launchpad.net/~corey.bryant/charm-helpers/swift-mitaka/+merge/28233716:34
gnuoycoreycb, how can 2.5.0 equate to both liberty and mitaka ?16:37
coreycbgnuoy, I originally thought that was going to be a problem but it appears not to be16:37
gnuoycoreycb, I don't understand tbh. If I look up what release 2.5.0 is won't I always get liberty returned?16:38
coreycbgnuoy, get_os_version_codename() is called with the codename (mitaka) as the first parameter, and it then loops through the SWIFT_CODENAMES looking for the 2.5.0 that has 'mitaka'16:39
coreycbgnuoy, well, sortof.  actually it just loops until it finds mitaka and returns 2.5.016:40
coreycbgnuoy, although there's a call to SWIFT_CODENAMES[vers] elsewhere that looks like it could be an issue16:41
gnuoyyeah, I think it'll break get_os_codename_package16:42
gnuoycoreycb, ^16:42
gnuoyFrom what I can tell it'll always return mitaka for 2.5.016:42
coreycbgnuoy, ok I need to figure something out for this and I"ll get back to you. thanks.16:43
gnuoynp16:44
lazyPowermarcoceppi pong17:00
marcoceppilazyPower: I have some concerns about the 'subprocess run'.split() stuff17:09
lazyPowermarcoceppi: do tell17:11
marcoceppilazyPower: https://github.com/juju-solutions/charms.docker/pull/10 if any of those parameters have a space in it, there's a potential for breakage17:12
marcoceppiwhile, not likely in this scenario, it's a common pattern I'm seeing and I think it has some reprocusions17:12
lazyPowermarcoceppi: Aside from scrubbing the input strings, suggestions on a fix?17:12
marcoceppilazyPower: well, don't split the string, build a list instead17:13
bdxopenstack-charmers: is there a best practice for provisioning multiple availability zones using the cinder-ceph charm?17:14
marcoceppilazyPower: http://paste.ubuntu.com/14479145/17:15
marcoceppilazyPower: the first command creates foo\ bar the second creates foo and bar17:15
lazyPowermarcoceppi https://github.com/chuckbutler/charms.docker/commit/f19a0c67d6af5c9e2644451543b32838390d52e917:16
marcoceppilazyPower: thanks, not to be a stickler, but there's a potential for a breakage if the password has a space17:17
lazyPowernp, good catch17:17
marcoceppilazyPower: also, there's an extra space between [ and 'docker17:17
* marcoceppi analretentive mode disabled17:17
lazyPowermarcoceppi updated the pr17:22
lazyPowerapprove when ready :)17:22
bdxopenstack-charmers: I'm currently deploying 3 extra instances of cinder volume to work around being able to have different availability zones17:24
bdxhttp://paste.ubuntu.com/14479202/17:24
bdxopenstack-charmers: by setting cinder_cross_az_attach=True, I am able to attach instances on hypervisors in an availability zone other than nova, to storage in the nova az17:28
bdxbut it seems the availability zone have to exist in cinder in order for this to work17:28
bdxopenstack-charmers: what I'm wondering, is, am I going about this right?17:29
bdx"seems the availability zone have to exist in cinder in order for this to work" <-- I deploy the extra cinder-vol charms to get these availability zones created17:31
bdxeven though they are not 'really' used17:31
bdxopenstack-charmers: these compute nodes http://paste.ubuntu.com/14479284/ cannot use cinder volumes unless they exist in cinder as well http://paste.ubuntu.com/14479280/17:36
bdxeven if there is no actual storage backend in the az, they just have to exist17:37
PrabakaranHello Team,  I am writing amulet test code for ibm-java and since it is a subordinate charm i am using ubuntu charm to test ibm-java subordinate charm.  For testing purpose i have downloaded ubuntu charm and edited metadata.yaml file and mentioned provides as "java". Here both ibm-java and ubuntu charm are connected via java interface.  Now here i want my amulet test code to pick ubuntu charm from my local location which is (/home/ch18:26
Prabakarani want my amulet test code to pick ubuntu charm from my local location which is (/home/charm/charms/trusty/ubuntu) here i dont want ubuntu charm from charm store. How to achieve this. Could someone please help me to resolve this?18:26
Prabakaran if i am using ubuntu charm from charm store for my amulet test while adding the relation ie. d.relate('ibm-java:java', 'ubuntu:java') i am getting relation error. Please advise.  Please find the 10-deploy.py code is http://pastebin.ubuntu.com/14479663/18:30
bdxcharmers: is the packages option in reactive-base-layer usable?19:52
bdxcharmers: Is this legitimate http://bazaar.launchpad.net/~jamesbeedy/charms/trusty/fiche/trunk/view/head:/layer.yaml ?19:54
mbruzekHi James.20:09
mbruzekbdx I don't know the answer to that20:10
mbruzekbdx: cory_fu_ or one of the bigdata charmers might know20:11
lazyPowerbeisner ping20:15
lazyPowernvm i see you're out on teh calendar20:15
bdxmbruzek: hey, thanks for responding ... I guess I should probably ping one of the main contributers of reactive-base-layer even ..20:29
bdxmarcoceppi: can you comment on ^20:29
mbruzekbdx: Yeah I took a look but I was not sure what you were doing, I saw some fixes come in for the "options"  on base layers from the bigdatacharmers, kwmonroe, cory_fu_, or others20:31
mbruzekbdx: cory_fu_ and marcoceppi are in a different timezone right now, eating dinner I believe.20:31
bdxmbruzek: gotcha, ok20:31
bdxmbruzek: I'm trying to install apt pkg deps using the basic packages option20:32
bdxmbruzek: https://github.com/juju-solutions/reactive-base-layer/blob/master/layer.yaml20:32
lazyPowerwait what?20:33
lazyPowerlayers supports package installation?20:33
lazyPowerbdx WHERE DID YOU READ THIS WIZARDRY?20:33
bdxlazyPower: https://github.com/juju-solutions/reactive-base-layer/blob/master/layer.yaml20:33
mbruzeksee bdx, not everyone knows about this20:33
bdxlol20:34
bdxdarn20:34
mbruzekbdx: I saw a fix come down today, from andrewmcleod.20:34
mbruzekhttps://github.com/juju-solutions/reactive-base-layer/issues/2120:34
bdxmbruzek: totally, I'm tracking, and up to date with that patch20:34
mbruzekbdx: check out the layer-hadoop for more information?20:35
=== menn0_ is now known as menn0
lazyPowerhttps://github.com/juju-solutions/layer-hadoop-client/pull/1/files20:35
lazyPowerlook at how nicely that cleaned up20:35
lazyPowerkwmonroe nice wizarding20:36
bdxyea, been there, from what I can understand layer-hadoop had to implement the packages option20:37
bdxnot use it from basic20:37
bdxmbruzek, lazyPower: is ^ consistent with your interpretation of whats going on there?20:38
lazyPoweri think there's stuff still being fleshed out with it20:38
lazyPoweri mean this landed yesterday20:38
lazyPowersorry 4 hours ago20:38
mbruzekbdx: I just learned about this now, so I would not trust my interpretation of the options, kwmonroe or cory_fu_ would know more.20:40
mbruzekbut if what you have works, that would be awesome and I will look into this for my next charm.20:41
bdxok, yea .... I see this (https://github.com/juju/charm-tools/issues/85) as well, the last comment makes me think that the override needs to happen bc basic packages option isn't ready yet...20:43
bdxyea, I'm pumped on it too!20:44
mbruzekbdx this looks great!20:44
mbruzekbdx: from what I read on issue 85 it looks like your layer.html is correct, but again I just learned about this today so confirm with marco, cory or ben20:46
bdxmbruzek: thanks, yea .. will do!20:46
kwmonroehey bdx - is your layer.yaml not working, or is it overwriting other package options (the problem discussed in issue 85)?20:54
bdxkwmonroe: my install hook fails due to the packages not being installed ... http://paste.ubuntu.com/14480678/20:55
bdxkwmonroe: my layer.yaml merges fine20:55
kwmonroefwiw, the big data charms are kinda tough to use as a reference because we used a "dist config" class that handles packages, so we're in the process of moving stuff that we used to do with our own dist logic to more generic packages stuff handled by the base layer.20:56
bdxkwmonroe: ok, entirely.20:57
wesleymasonThe charm I'm working on that was fine this morning is now refusing to install, dies at the initial bootstrap phase: http://pastebin.ubuntu.com/14480739/21:03
bdxwesleymason: rebuild your charm21:04
wesleymasonbdx: already did, same result21:04
bdxwesleymason: it will pull in the new changes from base layer21:04
bdxshould*21:04
* wesleymason kills deps21:04
lazyPoweryeah wheels die slowly21:06
lazyPowermake sure you nuke your artifact and rebuild occasionally21:06
lazyPowerits additive only, doesn't seem to remove older deps21:06
wesleymasonstrange, that looks like it accidentally pulled and older pre-py3 charmhelpers wheel21:07
bdxlazyPower: yea, is there a reason for that^?21:07
wesleymasonas the basestring error should only happen for py2 only being run with p321:07
lazyPowerbdx removals are hard21:07
kwmonroewesleymason: did you rebuild within the last 6 hours?  the basestring problem was fixed in https://github.com/juju-solutions/reactive-base-layer/issues/1921:07
wesleymasonkwmonroe: I rebuilt, but didn't blow away everything properly, seems to have hung on21:08
kwmonroeyeah - a charm build without an rm -rf is probably not a good charm build ;)21:08
* wesleymason burns everything with fire21:09
kwmonroethat's a known issue -- obsolete artifacts should be killed Real Soon Now, but my MO is to just burn it down every time.21:09
kwmonroebdx, i'm working up a better example for pakcages in layer options (better than the big data stuff).. but i'll need about 20 more minutes.21:11
wesleymasonso, while I wait for juju to bootstrap and charm to run, let me say that I'm loving the new reactive stuff 😃21:11
wesleymasonBuilding an errbot charm with it: https://github.com/1stvamp/juju-errbot21:11
kwmonroemeanwhile bdx, if you're blocked, you can always do the old school apt-get install git in your fiche charm: https://github.com/juju-solutions/layer-ubuntu-devenv/blob/master/reactive/ubuntu-devenv.py21:13
bdxkwmonroe: yea, I just abandoned it in favor of using the layer basic packages option21:13
kwmonroeheh. understood bdx.  it's gonna be great ;)21:17
bdxkwmonroe: funny, thats what I keep saying about HA openstack service endpoints :-021:18
=== natefinch is now known as natefinch-afk
=== JoseeAntonioR is now known as jose
=== blr_ is now known as blr
kwmonroebdx: i've tried to break this a bunch, but it Just Works.. not sure why package options in your layer.yaml aren't working.. here's my convert from an install hook to layer.yaml: https://github.com/juju-solutions/layer-ubuntu-devenv/commit/c66183ce52e9cefe188af32facf5929406aacce522:02
kwmonroeand the resultant charm ends up installing bzr/cvs/git/svn like i want22:03
kwmonroebdx: the only thing i can think of is perhaps your layer.yaml isn't being parsed correctly because of the lack of indetion on lines 2-3: http://bazaar.launchpad.net/~jamesbeedy/charms/trusty/fiche/trunk/view/head:/layer.yaml  shot in the dark, but maybe try indenting those?22:09
bdxkwmonroe, thats how they end up after charm generate22:10
bdxor `charm build`22:10
bdxor `charm compose`22:10
kwmonroe:)  gotcha22:10
bdxha22:10
kwmonroei wasn't sure how picky the yaml parser was22:10
bdxkwmonroe: do yours not end up indented like that?22:10
kwmonroewell, now i'm embarassed to say.. i was looking at the output of charm build, but yes, in fact my layer.yaml looks like this:  http://paste.ubuntu.com/14481219/22:12
kwmonroe*wasn't22:12
bdxok22:12
bdxhmm22:13
kwmonroebdx, can you ssh to the unit with the failed install and see if the other stuff was there?  like autoconf, make, etc?22:15
bdxkwmonroe: yea, they are not.22:16
kwmonroebummer22:16
bdxkwmonroe: yea... cool that it works for you22:17
bdxyou give me hope22:17
bdxI think there might be an issue with my layer.yaml getting parsed.... I'm thinking only the layer from nginx gets parsed22:18
kwmonroebdx: i'm gonna try using git in my install hook.. maybe somehow the layer packages options are still being installed when the install hook is run.  i dunno, i'm grasping here.22:21
bdxkwmonroe: thanks.... I just `rm -rf`'d my trusty/fich dir and rebuilt22:23
bdxI'm hoping that does it22:24
bdxhoping that fixes*22:24
bdxkwmonroe: it worked for me22:27
kwmonroeha!  awesome.. that's great news bdx.22:28
bdxI must of had a stale charm-tools hanging out in my wheelhouse22:28
bdxanyway22:28
bdxthanks for your help22:28
bdxand insight22:28
kwmonroeyeah sure - glad it worked.. i won't charge you for this session.22:30
bdxha22:31
marcoceppibdx: do you still need help?22:37
marcoceppibdx: your layer.yaml looks good to me22:38
marcoceppiare you seeing an issue?22:38
bdxmarcoceppi: I figured it out - looks like I hadn't `rm -rf`'d my trusty/fiche dir for a few builds22:38
marcoceppibdx: ah22:38
bdxmarcoceppi: I closed that issue in layer-basic ... my bad22:38
marcoceppibdx: cool, there are some limitations, cory_fu_ and I are working on them this week22:40
marcoceppibut we're in GMT+2 for the week22:40
bdxawesome22:42

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