/srv/irclogs.ubuntu.com/2016/05/19/#juju.txt

=== CyberJacob is now known as zz_CyberJacob
=== redir is now known as redir_afk
cameron_CHi, how to deploy a service to lxc auto select the machine or add a new machine with lxc?03:48
gnuoyjamespage, morning, we need to define an interface for the peer relation for the openstack api charms. Each Openstack API charm uniquely names the interface atm (eg keystone-ha, nova-ha, neutron-api-ha etc). I propose that we create an openstack-ha interface and have new charms use that. Sound ok?07:31
jamespagegnuoy, well so long as the interface uses the same data semantics, I think its ok to use a single type08:33
jamespagegnuoy, so we might endup with charms that have two peer relations - one general, one specific08:33
jamespagebut leader storage should avoid most of that08:33
jamespagegnuoy, can you take a peek at https://review.openstack.org/#/c/317910/08:33
jamespageits the peer to one that's already landed in ceph-mon08:33
jamespagegnuoy, I also have a few stragglers for a general charm helpers resync across master and stable charms yesterday08:34
jamespageI'll fix those up this morning08:34
jamespagegnuoy, hey - could you nudge https://review.openstack.org/#/c/318220/09:26
jamespagebeisner and I agreed not todo full rechecks for the syncs...09:27
gnuoyjamespage, done...09:28
jamespageta09:28
jamespagegnuoy, governance review ressurected and companion email sent to openstack-dev!10:38
jamespagehere we come ....10:38
jamespagethat was worth an extra dot10:38
jamespagegnuoy: https://review.openstack.org/#/c/318231/ and https://review.openstack.org/#/c/318221/ are good to go10:43
jamespagebeisner, I had to create some offical charm branches on launchpad to get the stable amulet tests to pass...10:43
beisnerjamespage, oh yah, i suspect for the newbies, mon, lxd, et al?11:07
beisnerjamespage, this --> https://review.openstack.org/#/q/topic:switch-to-bundletester   should allow us to use the version of amulet that contains the git branch fix.11:08
beisnerie. be able to resurrect that change review you took a stab at a while back11:08
beisnerwelcome back, gnuoy :)11:24
beisnerjamespage, ceph-osd + odl-controller stable sync passed, ready to land?11:25
jamespagebeisner, yes12:10
beisnergnuoy got 'em12:11
gnuoyI did!12:12
kjackalHey lazyPower12:12
kjackalQuick questio12:12
kjackalwhere does the kibana charm live?12:12
kjackalits source?12:13
jamespagegnuoy, beisner: https://review.openstack.org/#/c/317910/12:14
gnuoydone12:15
beisnerjamespage, curious - are ceph-mon or -osd affected similarly?12:15
beisnerasked, with my 'keep the cephs in alignment' hat on12:16
jamespagebeisner, erm for which?12:19
jamespagebeisner, oh -mon already fixed; ceph is the sync12:19
jamespagethen I'll stable branch cherry pick them both12:19
jamespagebeisner, no - -osd was effected - not -mon12:20
jamespagethat's the other one...12:20
beisnerwell look, there it is :-)12:21
jamespagebeisner, gnuoy: https://review.openstack.org/#/c/317313/12:25
jamespagethat should sort out the deployment race for the landscape team12:25
lazyPowerkjackal - i based my branch off of the upstream charmer repo - https://code.launchpad.net/~charmers/charms/trusty/kibana/trunk12:54
kjackallazyPower, I have a fix for the Kibana test that is failing12:54
kjackalshould I submit the fix upstream? Is it well maintained?12:55
kjackalis it maintained by us?12:55
kjackalnever checked12:55
jcastrohey lazyPower12:57
jcastroare you on the latest beta?12:57
lazyPoweri am12:58
jcastrodo you have any issues with it getting stuck on creating units with "pending"?12:58
lazyPowernot with the clouds, i haven't been using LXD12:59
lazyPowerso ymmv12:59
tvansteenburghi'm on lxd, no probs12:59
jcastrohuh.12:59
lazyPowerkjackal well... yeah :)12:59
lazyPowerbut i wouldn't say its well maintained. its a long lived charm. As i'm sure you can tell poking around in there its long in the tooth13:00
lazyPowerprior to this last round of updates, i think icey upgraded it to kibana4, so its got a few hands looking after it13:00
jcastrotvansteenburgh: do you leave your deployments running for a long period of time?13:17
jcastroseems for me it only acts up when I leave it running overnight13:17
magicaltroutdon't answer! its a trap!13:18
tvansteenburghjcastro: yeah, overnight quite a bit13:18
lazyPowerkjackal - with these pr's are you still seeing the failure wrt the relations?13:21
kjackalNope! Everything is GREEN :)13:22
lazyPowerSolid, thanks for the contributions13:22
lazyPowerI'm not real excited about the sleeps... but i see why its a pain. I had intermittent failures during test runs myself because of that13:22
lazyPowerwe kind of need a more deterministic way to sniff that out13:22
jcastroanyone know where actions went in 2.0?13:35
jcastrolist-actions and juju actions are missing now13:35
lazyPowerhttp://paste.ubuntu.com/16506582/13:36
lazyPoweri call schenanigans13:36
magicaltroutbugg@tomsdevbox:~$ juju list-actions joshua-decoder13:36
magicaltroutNo actions defined for joshua-decoder13:36
magicaltroutdoes something for me13:36
jcastrohttp://paste.ubuntu.com/16506594/13:37
jcastrowhat's happening to me13:37
magicaltroutindeed jorge! thats a very prudent question13:37
tvansteenburghwell are you gonna specify a service name??13:38
magicaltrouti am on beta4 so they may have gone away13:38
magicaltroutah yeah lol13:38
kjackalOk, lazyPower! The patch for the failing Kibana test is here: https://bugs.launchpad.net/charms/+source/kibana/+bug/157670613:38
mupBug #1576706: Tests are failure prone <kibana (Juju Charms Collection):New> <https://launchpad.net/bugs/1576706>13:38
jcastrooh, lol13:38
lazyPowerkjackal on it13:38
lazyPowerjcastro - i love how it told you what was wrong xD13:38
tvansteenburghnever underestimate the power of reading13:39
jcastroin my defense I was following instructions for a charm written for 1.2513:39
jcastro$ juju action do spark/0 smoke-test13:40
jcastroERROR unrecognized command: juju action13:40
tvansteenburghdefense rejected13:40
tvansteenburghrun-action13:40
* jcastro nods13:40
lazyPowerooo tim swingin the gavel of readme/2.0-translation justice13:41
tvansteenburghJuju Judge Judy13:41
jcastroand to get the results of an action?13:41
jcastroit's not in the devel docs13:41
tvansteenburghshow-action-output13:41
tvansteenburghshow-action-status for just the status13:42
jcastroman, I am really missing tab completion now13:42
tvansteenburghmine still works13:43
jcastroI am failing at computers today it seems13:44
jcastrocory_fu: hey so I got bigdata-dev/apache-processing-spark running, the readme says it's a standalone cluster, but the status for spark says it's waiting for a relation to hadoop plugin13:46
aisraeltvansteenburgh: how long should CI test results stay around? I'm seeing runs less than 2 weeks old go 404 on me: https://code.launchpad.net/~timkuhlman/charms/trusty/rsyslog-forwarder-ha/nrpe/+merge/29298713:48
tvansteenburghaisrael: not unusual, it only keeps the latest 300 iirc. the new revq caches the results forever13:48
cory_fukjackal: Is that status message a known issue with that bundle?  ^13:49
aisraeltvansteenburgh: ack. I will make an offering of redbull and daycare to the revq gods in that case.13:49
tvansteenburghaisrael: those gods prefer beer and pipe tobacco i think13:54
cory_fukwmonroe: I fixed the charm references in the bigtop repo's tests, built and published the charms, and updated the bundle in the bigtop repo & store.  So, both the PR and store are updated.14:01
ShruthimaHi All, I am developing IBM-Http Server on top of IBM-IM layer, Can we have separate license for HTTP server are do we need to use only one license that we are getting from ibm-base layer....?14:01
ShruthimaActually we are facing one issue when we use common license i.e when we use this state in reactive of HTTP server  @when ('ibm-http-server.installed') @when_not ('ibm-base.license.accepted')   and the below states in reactive of ibm-im  @when ('ibm-im.installed') @when_not ('ibm-base.license.accepted')14:05
Shruthimait is picking randomly ibm-im state first and then ibm-http  which should not happen bec IBM-Installation Manager will not be uninstalled till the products installed through IM are uninstalled.14:05
ShruthimaCould you please suggest on the same....14:06
tvansteenburghShruthima: if the conditions for multiple handlers are true, you can't know which will run first14:10
Shruthimaya that is the issue ,can we use seperate license for http server ?14:11
tvansteenburghShruthima: i'm not sure that is the right solution14:13
kjackaljcastro, I am looking at the bundle issue14:14
Shruthimatvansteenburgh: ok thanks14:14
kjackalhow urgent is it?14:14
jcastrokjackal: average I guess? I am blogging about it14:15
jcastrobut don't expect to publish it until closer to juju 2.014:15
kjackaljcastro, thanks14:15
dweaverAnyone know how to recover juju state server when it thinks it is upgrading after a reboot?14:43
dweaverWould upgrading the tools to a later version and starting the jujud service solve it, or is there somewhere in mongo that needs to be tweaked?14:45
ShruthimaHi kwmonroe/mbruzek , I have sent an email regarding the issue with common license.. could you please suggest on the same....!!14:55
kwmonroehi Shruthima, the thought with a single config variable for the license in the ibm-base layer is that setting this to "True" would indicate that the user accepts whatever terms and conditions the charm requires -- whether it's one license or multiple licenses.15:01
kwmonroeShruthima: so yes, the http server can have a separate license.  in the http server README, you would simply say "ibm http server requires the acceptance of license X, Y, and Z.  if you agree, indicate your acceptance of these terms by entering "juju set <charm> license_accepted=True"'15:02
kwmonroeShruthima: i'll follow up to your email and we can decide if more thought is necessary to handle multiple licenses in your layered charms.15:03
Shruthimakwmonroe: oh ok thanks :)15:04
kwmonroenp15:04
lazyPowerdweaver ah thats a tricky one. I've only seen fixes to "unstick" an upgrade15:08
lazyPowernot when it thinks its upgrading erroniously15:08
dweaverlazyPower, OK, that's not good news.  It thinks it should be upgrading and this was only after a reboot of the state server, not an upgrade request. I am prepared to modify the mongo database or fiddle with the versions installed myself.  However, if this is not recoverable at all, then this is going to be a show stopper.  And this is likely to be published as this is a case study15:24
lazyPowerdweaver - dont abandon hope yet, we can likely get a core dev to lend a hand. I'm not even sure where to begin debugging other than starting with a bug and collecting the controller logs.15:25
lazyPowerdweaver - which version of juju is this? 1.25.5 i assume?15:25
dweaverlazyPower, OK, I'll raise a proper bug with lots of log information, it's actually 1.25.0, which means I can force an upgrade manually, if I need to.15:25
lazyPowercan i get a hot review on this? I need to land it so i can rebase on top of it and prep/trim/rebase the tls branch on top of it. https://github.com/juju-solutions/layer-etcd/pull/1315:32
lazyPowermbruzek ^15:32
xiletSo, I am new to working with juju, it looks like the cs branch of ~openstack-charmers-next/xenial/percona-cluster is out of date with the current branch. So mysql deployments are failing due to this bug https://bugs.launchpad.net/charms/+source/percona-cluster/+bug/1571789,   I was curious a.) if this is something that should be reported somewhere, and b.) is there a way to force change over juju to use the up15:40
mupBug #1571789: install hook failing on Xenial with unmet dependency on mysql-client <uosci> <percona-cluster (Juju Charms Collection):Fix Released by 1chb1n> <https://launchpad.net/bugs/1571789>15:40
xiletdated branch in the meantime?15:40
beisnerxilet, fyi https://jujucharms.com/u/openstack-charmers/percona-cluster/xenial   (cs:~openstack-charmers/xenial/percona-cluster-0)  does contain the fix15:42
beisnerfyi, the -next charms are dev/possibly-bloody versions15:42
xiletGood to know, stupid question, any idea why ubuntu 16.04 LTS ships with those as the defaults?15:44
stokachubeisner: xilet, there is the latest openstack package in xenial-proposed that fixes this15:47
stokachuas for the next question it was because those stable charms were released after xenial GA15:47
beisnerstokachu, excellent.   thanks for the clarification.   so, a change is in flight to stabilize it in xenial main.15:47
stokachubeisner: yea soon as someone marks verification-done on the sru15:48
stokachubeisner: xilet, https://bugs.launchpad.net/ubuntu/+source/openstack/+bug/157641215:49
mupBug #1576412: package does not use released charms <verification-needed> <openstack (Ubuntu):Fix Released by adam-stokes> <openstack (Ubuntu Xenial):Fix Committed> <https://launchpad.net/bugs/1576412>15:49
xiletstokachu: thanks!15:50
stokachuthough i was just made aware of some issues with ceph-osd which I think are being worked out now15:51
stokachubut that wont require an update to openstack package15:51
lazyPowerdweaver - just a follow up - many of our team members are at a planning sprint and thus responses have been latent. I'm trying to track someone down to lend a hand15:51
lazyPowerit may take some time however, if you're willing to be patient and hand off the bug once its filed i'll be happy to run it up the pole15:52
geetha@kevin/matt: Hi!15:52
mbruzekhello15:53
geethawe need a clarification for state names that are set by interface. For ex: Websphere is connecting to DB2 and metadat.yaml file in Websphere charm has 'requires' definition and relation name as 'db' so in reactive script we are using state name as 'db.available'. But you suggested to use state name as 'ibm-was-base.db.available', if we give relation name as 'ibm-wa-base.db' in metadata.yaml, it's giving me error.15:53
xiletShould "juju upgrade-charm --force-units  mysql --switch=cs:~openstack-charmers/xenial/percona-cluster-0" pull the correct version of mysql? I am still getting the error though juju status is showing the new repo.  (Not sure if I have the correct syntax)15:54
mbruzekgeetha: In this case "db" is the relation name, that has nothing to do with state names.15:58
geethaIf I use same relation name i.e, 'db' in both(WAS and DB2) metadata.yaml file, it's not giving me any conflicts and state names set by interface is 'db.available' in both charms(without layer name prefix) is that ok?15:58
mbruzekgeetha: kwmonroe and I recommended using the layer prefix (dot) state name.15:58
dweaverlazyPower, yes, willing to be patient, thanks.  I'll ping you with a bug ID once it is submitted with all the info.  Will be most appreciative thanks.15:59
mbruzekgeetha: I think we have a disconnect here. We were not recommending renaming the relation name.15:59
mbruzekand I don't think relation names can have dots in there.15:59
mbruzekdot/period etc16:00
mbruzekgeetha: can you give me a code example? Perhaps I don't understand your question16:00
lazyPowerAn interface name is a string that must only contain characters a-z and -, and neither start nor end with -. It's the single determiner of compatibility between charms; and it carries with it nothing more than a mutual promise that the provider and requirer somehow know the communication protocol implied by the name.16:01
mbruzekpastebin or something16:01
lazyPowermbruzek - thats what i found here16:01
lazyPowermbruzek and typically they are decorated with @hook('{relation_name}-joined')16:01
lazyPowerthat hook decorator string is run through some helpful templating functions in reactive to expand that relation_name to expand to whatever you have defined in metadata16:02
lazyPowerso in this example, it should probably be declared in metadata like so16:02
lazyPowerrequires:   db2-database: ibm-db216:03
lazyPowerwhere db2-database would be the relationship name16:03
lazyPowerso the state would become @when('db2-database.available')16:03
lazyPowergeetha ^ does that help?16:03
lazyPowerand i totally biffed on that @hook decorator code... its not *that* simple, there's a bit more to it, and it declares the interface inline like so: @hook('{provides:db2}-relation-joined') --- sorry for the typo. i was going from memory :)16:04
geethathen it will be 'db2-database.available'. there is no <layer name > prefix right?16:04
lazyPowergeetha - right, its all predicated by what you name it in the metadata16:05
geethait will take what ever relation name we give in metadata.yaml file.16:05
lazyPowerthe <layer name> prefix is a convention we use in the layers, when setting states so we can avoid collision with other layers. Similar care should be taken when defining relationship names16:05
lazyPowergeetha - here's a super simple interface class that illustrates the code i was typing out above https://github.com/juju-solutions/interface-consul/blob/master/provides.py#L11.  Notice the use of that same template marco teh '{relation_name}' -  that expands and controls the states you will subscribe to in your layer.16:08
gennadiyhi guys16:12
beisnerdimitern, jamespage - "install error: private-address not set" artifact and traceback on bug 158310916:14
mupBug #1583109: error: private-address/public-address not set (1.25.5) <sts> <juju-core:New> <https://launchpad.net/bugs/1583109>16:14
geethaThen we can give 'ibm-was-base-database' as a relation name in Websphere side right?16:14
gennadiyi can't bootstrap juju for openstack environment16:14
jamespagebeisner, \o/16:14
gennadiywe have deployed openstack and would like to use juju to deploy software to it16:15
geethathen it will be @when 'ibm-was-base-database.available'16:15
dimiternbeisner: you mean you got repro + trace logging? \o/ indeed!16:15
beisnerdimitern, yessir16:15
gennadiybut now i have got error  ERROR juju.cmd supercommand.go:429 cannot set initial environ constraints: index file has no data for cloud {regionOne http://10.9.8.21:5000/v2.0/} not found16:15
dimiternbeisner: awesome! tyvm, will have a look shortly16:16
gennadiyit happens when it setups tools on machine 016:16
gennadiyi run it with: juju bootstrap -v --upload-tools --metadata-source /home/juju/.juju --debug --show-log16:16
lazyPowergennadiy is this juju 1.25?16:16
beisnermachine-0.log is 11+MB and I'd like to turn trace off now if that gives you what you're after dimitern16:16
dimiternbeisner: can you point me to the log?16:17
dimitern(too many logs there..)16:17
gennadiyyes, it's 1.2516:18
gennadiydo i need to reinstall?16:18
lazyPoweri'm not certain, i've never seen that error before16:19
dimiternbeisner: ah, got it - 0-var-log.tar.bz216:19
gennadiyour openstack has own regionname - regionOne16:19
beisnerbingo dimitern16:19
gennadiyso we need to use custom --metadata-source16:19
lazyPowergennadiy  https://bugs.launchpad.net/juju-core/+bug/156776316:19
mupBug #1567763: bootstrapping private openstack, with --metadata-source fails when instance-type constraint is specified <bootstrap> <constraints> <simplestreams> <juju-core:Triaged> <juju-core 1.25:Triaged> <https://launchpad.net/bugs/1567763>16:19
gennadiyi can't bootstrap env16:20
lazyPowerright i get that, it seems like theres some streams you'll have to setup because of it but i'm not positive16:21
lazyPowerbut that bug looks applicable16:21
gennadiybut i don't use "--constraints"16:21
dimiternbeisner: great, the log has everything I need (and suspected as the cause) - feel free to reset the logging-config to lower level16:22
beisnerdimitern, ack tyvm16:22
gennadiyi used this tutorial - https://blog.felipe-alfaro.com/2014/04/29/bootstraping-juju-on-top-of-an-openstack-private-cloud/16:23
gennadiyi added image to openstack and generated metadata16:23
jcastrobdx: ping16:30
dweaverlazyPower, The bug is submitted here: https://bugs.launchpad.net/juju-core/+bug/1583683 log files are uploaded to the bug.16:32
mupBug #1583683: juju thinks it is upgrading after a reboot <juju-core:New> <https://launchpad.net/bugs/1583683>16:32
lazyPowerdweaver - thanks for the bug. I'll send this over to the appropriate parties. You should get updates via email as the bug gets triaged/worked. That'll be our focal point for resolution/updates.16:52
=== redir_afk is now known as redir
xiletHrmm cs:~openstack-charmers/xenial/percona-cluster-0  has the same mysql-client issue17:04
gennadiywhy remote bootstrapped machine does't use provided image-metadata-url?17:18
gennadiyseems it tryiesto use https://streams.canonical.com/juju/images/releases/streams/v1/index2.json17:18
beisnerhi xilet - i just did a juju bootstrap ... then juju deploy cs:~openstack-charmers/xenial/percona-cluster-0 to check/confirm sanity of that charm and it looks good from that:  http://pastebin.ubuntu.com/16510376/    are you sure that charm is what is deployed?17:18
gennadiyi see in the log - " skipping index "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson" because of missing information: index file has no data for cloud {regionOne http://10.9.8.21:5000/v2.0/} not found" but i have provided own url - http://192.168.177.51:8888/17:19
xilet beisner checking,17:26
bdxhows it going everyone? Have vlan tenant networks on a lxd openstack been verified as something that should work? Has anyone got their feet wet in this area yet, or is it just me?18:20
=== zz_CyberJacob is now known as CyberJacob
magicaltroutlazyPower: you'll know the answer to this19:52
magicaltroutif I use a layer like https://github.com/juju-solutions/layer-hadoop-client19:52
magicaltroutdo I need to define the provides/requires stuff in metadata.yaml ?19:53
magicaltroutor does layers just sort that stuff out19:53
lazyPowerit sorts it out as the metadata.yaml is already there19:53
lazyPowerand it declares the interfaces in its layer.yaml19:54
lazyPowerso it should be a single line include19:54
magicaltroutta19:54
magicaltroutooh yeah so it does19:57
magicaltroutfunky stuff19:57
Dirler Hi All, if I have kvm machines listed in “virsh list” but not listed in “juju status” for kvm environment,  Can I add such machines in juju kvm environment?20:05
Dirlerp.s. such machines can exist in some scenarios: deployed using libvirt api directly, was exist before juju installation and so on.20:06
=== redir is now known as redir_lunch
penguinRaiderHi, I am using juju to deploy ceph using the command juju deploy  cs:trusty/ceph -n 3 --config=ceph.yaml with just fsid and mon-secret in the yaml file. But when I try to do the same with cs:xenial/ceph it fails with this trace http://paste.ubuntu.com/16513817/. Am I doing something wrong here?20:58
gennadiy_hi. does it juju support images-metadata-url from openstack env config?21:18
gennadiy_i provided it but juju use standard ubuntu cloud url21:18
=== redir_lunch is now known as redir
gennadiy_if we provide --metadata-source for bootstrap command it creates zero machine in openstack but throws error during software installetion(agent setup)21:28
bdxjcastro: sup21:45
gennadiyalso how to use "juju metadata generate-image" in juju2? it requires model but model doesn't exist because controller is not bootstrapped22:13

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