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

=== redir is now known as redir_eod
=== redir_eod is now known as redir_afk
=== natefinch-afk is now known as natefinch
=== thumper is now known as thumper-afk
=== cos1 is now known as c0s
A-KaserHi07:30
jaceknhello. marcoceppi marked my bug as "Fix Released" but my charm is still not recommended in the charmstore: https://bugs.launchpad.net/charms/+bug/153857307:58
mupBug #1538573: New collectd subordinate charm <Juju Charms Collection:Fix Released> <https://launchpad.net/bugs/1538573>07:58
A-KaserI would like to have a node with mesos, hadoop, spark to run my charm; I'm using cs:~tads2015dataart/trusty/mesos-master-0 as "scope: container"; but how can I add trusty/apache-spark-7 on the same node ?07:58
jaceknis there anything I need to do? If not when shoudl I expect my charm to be in the charmstore?07:58
D4RKS1D3Morning, Someone knows if its possible to re-bootstrap one enviorement? I am trying to install services with juju in maas, and all the time I need to create all08:22
=== thumper-afk is now known as thumper
gnuoyjamespage, anytime for https://review.openstack.org/#/c/301637/ ?10:15
jamespagegnuoy, my n-ovs review for enabling DPDK is good for initial review; I need to figure out one other thing which is how to get libvirt to switch to using the root user for qemu processes - but that will require a n-compute change as well10:15
jamespagegnuoy, sure10:15
jamespagegnuoy, swap you for https://review.openstack.org/#/c/30176110:16
gnuoydone10:16
gnuoywell, deal is what I mean10:16
jamespagegnuoy, :-)10:17
jamespagegnuoy, also have https://review.openstack.org/#/c/302236/ up as well10:17
jamespageand https://review.openstack.org/#/c/300384/10:17
jamespagegnuoy, did you figure out whether the switch to apache+wsgi works OK with https?10:20
gnuoyjamespage, Yes I did, not it didn't, it does now10:20
jamespageis the existing support re-used i.e. haproxy -> apache SSL -> apache-wsgi10:20
gnuoyyes10:20
gnuoyjamespage, see how I cunningly stole the keystone.conf context which has the port shuffle logic10:21
jamespagegnuoy, right - so we kinda double hop through apache now?10:21
gnuoyjamespage, yes we do10:21
jamespagegnuoy, that's fine - just wanted to check...10:21
gnuoyjamespage, I think the seperation makes sense tbh. It allows the charm to still talk to the local keystone on localhost without ssl10:22
jamespagegnuoy, agreed10:22
jamespagegnuoy, +2 on that review - lgtm10:23
jamespagelanding now10:23
gnuoyta10:24
jamespagegnuoy, going to focus on the network-spaces -> ceph bits now and will come back to sorting out the last bit of dpdk/libvirt/ovs madness after that10:32
gnuoyjamespage, ok, enjoy10:32
gnuoyjamespage, can I just clarify that your saying that once a device has been given to dpdk you can still see the device via lspci etc but there is no way of accessing the MAC ?10:36
jamespagegnuoy, it is still in lspci and there might be a way of discovering it still via /sys10:36
jamespagebut I did not dig that deep10:37
neiljerramHas someone just broken the mysql-server package on Xenial?  As of this morning, deployment of the mysql charm on Xenial is failing for me, whereas yesterday it was fine.10:42
suchvenuHi All10:44
suchvenuI have a query related to getting values in Interface.10:44
suchvenuI am trying to get the contents of a file from the consumer charm . In the interace (requires side) can I get this value ?10:46
suchvenuIn require side, I am trying something like this :  subprocess.check_output("sudo cat /root/.ssh/id_rsa.pub")10:47
suchvenuI am getting the error that the file doesn;t exist , where as actually the file exists.10:47
gnuoyneiljerram, just had one of our automated tests fail using the mysql charm on xenial. Looking into it now11:10
jamespageneiljerram, might be that 5.7 landed...11:16
jamespagerbasak, ?? ^^11:16
rbasakgnuoy: possibly bug 156640611:16
mupBug #1566406: postinst fails on mysql_upgrade if database is already upgraded <amd64> <apport-package> <package-from-proposed> <xenial> <mysql-5.7 (Ubuntu):In Progress by racb> <https://launchpad.net/bugs/1566406>11:16
jamespagegnuoy, hmm - are you aware of any test isolation problems in any of the charms?11:18
jamespagegnuoy, I was expecting mock state to be rest between indivivdual tests, but I'm not seeing that in ceph-mon11:19
jamespagereset rather11:19
neiljerramgnuoy, jamespage, thanks - certainly 5.7 is the version now being installed.11:27
neiljerramgnuoy, jamespage It is still possible to install version 5.6.28-1ubuntu3 of mysql-server, and that appears to go through...11:33
neiljerram(although a manual step of 'rm -f /var/lib/mysql/debian-*.flag' is needed)11:34
gnuoyI'm seeing http://paste.ubuntu.com/15667815/11:45
gnuoyproper context http://paste.ubuntu.com/15667822/11:46
freak_I'm getting below error when deploying juju-gui11:47
freak_root@maas61:~/.local/share/juju#  root@maas61:~/.local/share/juju# watch juju status Every 2.0s: juju status                                                                                                                         Thu Apr  7 16:42:06 201  [Services] NAME       STATUS  EXPOSED CHARM juju-gui   unknown true    cs:trusty/juju-gui-52  [Units] ID         WORKLOAD-STATUS JUJU-STATUS VERSION MACHINE PORTS PUBLIC-ADDRESS MESSAGE11:47
freak_[Machines] ID         STATE DNS INS-ID  SERIES AZ 0          error     pending trusty11:49
freak_http://paste.ubuntu.com/15667891/11:51
gnuoyjamespage, yes, I had test isloation problems with the action unit_tests specifically but I don't think the issue is limited to them11:52
freak__i have deployed juju-gui and also expose it..but when i type watch juju status i get this outputn: http://paste.ubuntu.com/15667891/11:53
freak__anyone pls help11:53
rick_h_freak__: see help in #juju-gui11:54
=== urulama|eod is now known as urulama
freak__rick_h thanks11:56
rbasakgnuoy: a fix for the known mysql-5.7 packaging bug is on its way. Please let me know if you're still broken after that lands.12:07
rbasakneiljerram: ^^12:08
rbasakWe'll be deleting mysql-5.6 soon.12:08
neiljerramrbasak, thanks!  But I suggest not deleting mysql-5.6 until you're really sure that 5.7 is good!12:09
rbasakneiljerram: we don't really have a choice now. Going back would be more effort than fixing whatever's broken in 5.7.12:09
marcoceppijacekn: looks like ingestion is broken12:11
neiljerramrbasak, I don't understand.  I just managed to work around the current 5.7 breakage by installing version 5.6.28-1ubuntu3 of mysql-server.  There is no 'more effort' needed - you just need to leave 5.6 there.12:11
rbasakneiljerram: the archive is in a pretty inconsistent state.12:15
rbasakneiljerram: we can't release like this.12:15
rbasakneiljerram: for example we couldn't do a security update for 5.6 right now without breaking 5.7.12:16
rbasak(and we wouldn't want double the maintenance effort to support both for five years in any case)12:16
gnuoyrbasak, will do, thanks12:17
neiljerramrbasak, OK, but all I said was "I suggest not deleting mysql-5.6 until you're really sure that 5.7 is good!"  That could just mean for the next couple of days - it doesn't have to mean beyond the Xenial releas.12:18
rbasakIf we wanted to go back to 5.6, we'd need to upload a new 5.6 from the 5.6 source and have it build anyway.12:18
rbasakSo deleting it or not deleting it doesn't actually make any difference.12:19
neiljerramAre you saying that you've deleted 5.6 already?12:19
rbasakNo, but we will.12:20
rbasakI appreciate your sentiment, but in practice it makes no difference from an archive management perspective.12:20
rbasakWe can't delete 5.6 until all the reverse dependencies are switched to 5.7.12:20
rbasakI'm working on that actively now.12:20
neiljerramI'm sorry, I have no clue what you're actually saying.  Sounds like nonsense to me.12:21
rbasak5.6 and 5.7 are not independent. They are intertwined. Between each other and with their reverse dependencies.12:21
neiljerramRight now, I can install 5.6 to work around 5.7 breakage.  If you delete 5.6, I won't be able to do it, and I won't have a working 5.7 either.  To my mind, that definitely does "make a difference".12:22
rbasakI have uploaded a fixed 5.7.12:22
rbasakIf it does not work, please tell me so that I can fix it.12:22
neiljerramrbasak, Cool, I will try that.  Probably will be an hour or so, because of my Juju deployment cycle time.12:28
rbasakneiljerram: make sure you pick up the fix for bug 1566406 please - 5.7.11-0ubuntu5, which isn't built and published yet.12:30
mupBug #1566406: postinst fails on mysql_upgrade if database is already upgraded <amd64> <apport-package> <package-from-proposed> <xenial> <mysql-5.7 (Ubuntu):Fix Committed by racb> <https://launchpad.net/bugs/1566406>12:30
rbasakneiljerram: I don't know that this is your issue either. I only know that we were getting reports and this was a bug. You might have another.12:30
neiljerramrbasak, I looked at the bug, but can't tell where to get the fixed package from.12:40
rbasakneiljerram: when the bug is marked Fix Released, wait half an hour and it should be available from archive.ubuntu.com.12:41
rbasakJust check the version you end up with (it'll be announced in the bug) to be sure you have the fix.12:41
neiljerramrbasak, BTW it appears that my latest deployment using 5.6 instead doesn't fully work - which I guess is the point that you were making above.12:42
neiljerramrbasak, Thanks, will do.12:42
jamespagegnuoy, I think I'm going a little mad12:48
jamespageI have no idea why I'm suddenly hitting this isolation problem12:48
gnuoyjamespage, are you adding a new unit_test file ?12:49
jamespagegnuoy, yes12:49
gnuoyjamespage, does its name feature alphabetically before the others?12:49
jamespagegnuoy, kinda in the middle12:50
gnuoyjamespage, well, I'd try renaming in temporarily test_zzz and go from there12:50
gnuoys/in/it/12:50
jamespagegnuoy, nope - its completely due to when two tests get scheduled on the same testr process12:51
jamespagegnuoy, its like the cleanup is not getting run between individual tests...12:52
jamespageafaict12:52
gnuoyjamespage, engage the tinwood would be my advice12:52
tinwoodjamespage, can you run them both individually? (e.g. tox -e py27 -- -n unit_tests.xxxx)12:54
jamespagetinwood, no12:56
tinwoodoh12:56
jamespagetinwood, its really weird - the mocks are different for each test case...13:02
jamespagebut something odd is going on13:02
tinwoodwhich charm is it?13:02
=== matthelmke is now known as matthelmke-afk
jamespagetinwood, ceph-mon13:08
jamespagetinwood, https://review.openstack.org/#/c/302681/13:08
* tinwood is having a look ...13:10
tinwoodjamespage, do you mind if I pull it down and have a look at it?13:12
jamespagetinwood, please do13:12
jamespageI'm baffled13:12
jamespagewhat should have taken me 2 hrs todo across three charms is completely blocking me now...13:12
tinwoodokay, will do.13:12
=== terje is now known as Guest72484
jamespagetinwood, sorry I'm being a dimwit13:16
jamespageplease stop looking at my complete stooopidity...13:16
tinwoodhave you tracked down the problem.13:16
jamespage@cached - wish I'd never written that decorator...13:16
tinwoodah.13:16
tinwoodyes, that would do it.13:17
tinwoodtricky to mock as it happens at loadtime.13:19
jamespagetinwood, yah - I fixed this before13:20
jamespagetinwood, reseting the cache in tearDown works OK13:20
tinwoodah, good idea.  Like it.13:20
jamespagegnuoy, https://review.openstack.org/#/q/status:open+branch:master+topic:network-spaces they should all be good now13:31
jamespageto much copy/paste in the ceph charms atm - cholcombe, icey - it would be nice to try address that next cycle...13:31
iceyjamespage: I'd love to take a whack at layering up the charms, the ceph-mon and ceph inherit from a ceph-base, and then we could maintain the ceph charm as a POS charm because it would just depend on ceph-mon and ceph-osd13:32
jamespageicey, +1 sounds neat...13:32
jamespageicey, https://review.openstack.org/#/q/status:open+branch:master+topic:network-spaces might be of interest to you as well13:33
iceyI'm about to want a review to add the storage hooks (in the ceph charm) to the ceph-osd charm as well :)13:33
jamespagetinwood, pxc pause/resume lgtm - ok for me to push that through to landing?13:43
tinwoodjamespage, pxc == percona?13:43
jamespagetinwood, yes13:44
tinwoodyes, it should be.13:44
tinwoodjamespage, I also need to talk to you about ceph and pause/resume.  I'm still unsure about use case now I've dug into it more13:45
jamespagegnuoy, arghhhhhh13:57
jamespagegnuoy, how many amulet tests check for 'keystone' as a running service now...13:57
gnuoyjamespage, ? amulet was passing for me with the move to mod_wsgi or am I missing your point?13:58
jamespagegnuoy, well yes in keystone13:58
gnuoyoh13:58
gnuoyyeah13:58
jamespagebut how many other charms deploy keystone as part of their amulet tests...13:58
jamespageceph-mon13:58
jamespage\o/13:58
gnuoyjamespage, I don't think other charms should test that tbh13:59
jamespagegnuoy, yeah - I think our amulet test approach needs a rethink/refactor...14:01
jamespagebeisner and I where chatting about that a while back14:02
jamespagegnuoy, ok reviews raised for ceph* for that change...14:09
=== matthelmke-afk is now known as matthelmke
=== cos1 is now known as c0s
lazyPowermbruzek - when you get a sec i need a hotfix review on https://github.com/juju-solutions/layer-docker/pull/3414:43
jamespagegnuoy, I had a run through the apparmor reviews; I don't think they are ready to go in yet...14:45
gnuoyjamespage, ok, I'll take a look at your review comments14:46
=== spammy is now known as Guest10665
lazyPowercory_fu nvm on the ping,14:58
jamespagegnuoy, https://review.openstack.org/#/q/status:open+branch:master+topic:network-spaces are testing OK14:58
cory_fulazyPower: What ping?14:59
lazyPowerfrom 10:1714:59
lazyPowersa'll good man, you missed it :)15:00
gnuoyjamespage, not sure canonical ci agrees with you15:00
jamespagegnuoy, oh not those ones15:00
jamespagegnuoy, https://review.openstack.org/#/q/status:open+branch:master+topic:keystone-apache15:01
gnuoykk15:01
cory_fulazyPower: Odd, I didn't get a ping from you at that time.15:01
cory_fuHope I'm not missing other messages15:01
gnuoyjamespage, are you suggesting an amulet full would be overkill ? I tend to agree is thats what your proposing15:02
jamespagegnuoy, +`15:02
jamespage1 rather15:02
gnuoykk15:02
aisraelWhat's the status of payloads in juju 2? I'm running beta3 and `juju list-payloads` throws "ERROR unknown object type "payloads" (not implemented)"15:11
aisraelmarcoceppi: lazyPower ^^15:11
lazyPower:O15:11
lazyPowercherylj - did payloads get dropped?15:12
aisrael`juju help payloads` is dead, too. :(15:15
alexisblazyPower, no15:15
alexisbthat is a bug15:15
alexisbcan you please open a bug15:15
lazyPoweryou betchya alexisb15:15
aisraelalexisb: will do!15:15
alexisbwe can get eyes on it15:15
iceycory_fu: how do oyu guys handle the upgrade charm hook in reactive / layers15:19
jamespagegnuoy, I suspect that our mysql woes are charm related15:25
gnuoyjamespage, well, a fresh install on xenial without the charm did not result in an error15:26
gnuoyrbasak, ^15:26
jamespagegnuoy, yah - confirmed15:26
gnuoyjamespage, but I can't see what the charm is doing to mess up the install15:26
rbasakIt wouldn't surprise me if some behaviour changed in 5.7 causing this though.15:26
rbasakEg. authentication.15:26
jamespagegnuoy, I think it pushed a config file onto disk prior to install15:26
rbasakWe're using socket auth by default now, so a few bits have changed, especially if automatic.15:26
jamespagerbasak, did 5.7 just go in?15:27
rbasakbug 1567098 for example.15:27
gnuoyjamespage, yes15:27
mupBug #1567098: Cannot log in as root user when not root Unix user <mysql-5.7-transition> <mysql-5.7 (Ubuntu):New> <https://launchpad.net/bugs/1567098>15:27
rbasakjamespage: yes15:27
cory_fuicey: Basically the same as other hooks, really.  The charm dependencies (wheelhouse) is upgraded automatically, and you can have a @hook('upgrade-charm') decorated block if you need to do anything special during upgrade.15:29
cory_fuI think upgrade-charm is probably the one remaining case where it really makes more sense to use @hook15:30
jamespagegnuoy, rbasak: I think its something todo with the fact that the charm writes password files into /var/lib/mysql15:42
beisnerjamespage, gnuoy - yah i'm still +1 for yanking irrelevant checks from amulet tests (focus on the charm and its services only).15:42
beisnerjamespage, gnuoy - we also need to a spike on xenial test enablement.15:43
beisnergnuoy, looks like the charm writes a conf file, then apt installs with confold.  maybe we're breaking there?15:44
gnuoybeisner, that sounds likely15:45
rbasakDo you need to tell apt to tell dpkg to use your conffile and not overwrite? There's an option for that AIUI.15:46
neiljerramrbasak, Sorry for not asking this earlier - but how long would you expect until that mysql-server bug shows Fix Released ?15:46
rbasakneiljerram: by now I'd have thought. I see an issue. Looking.15:46
neiljerramrbasak, Thanks...15:46
beisnerjamespage, gnuoy (ftr consider that a standing +1 to prune such tests as drive-bys with your other changes)15:48
gnuoyta :)15:48
A-Kaseris it possible to have action executed when we remove a service , as an uninstall script ?15:59
=== terje is now known as Guest79665
kwmonroehey suchvenu - you were asking about getting a remote unit name from an interface?17:04
kwmonroei'm assuming you want to do this from the "requires" side of the interface.. if the scope of that interface is scopes.UNIT, then you can have a method that simply returns self.conversaion().scope17:05
kwmonroe(scope will be the name of the unit)17:05
suchvenuYes17:05
suchvenui want to get the require side unit name17:06
suchvenuand my scope is global17:06
=== redir_afk is now known as redir
kwmonroe(one sec, gotta meet the schoolbus)17:07
suchvenuok, np17:07
kwmonroesorry abou that suchvenu, i'm back17:13
kwmonroeok.. so you have an interface, and in the requires.py, you want to return the remote unit name?17:13
kwmonroe(bcsaller may have some tips here ^)17:13
suchvenuin provides.py i want remote unit name17:14
kwmonroeok, so you're providing a service, and the provider needs to know the remotely connected unit name?  i'm guessing this is to do something like create a db2 instance name based on whatever requires the db2 relation?17:17
lazyPowerkwmonroe - there's an environment variable for $JUJU_REMOTE_UNIT during a relationship hook sequence17:17
suchvenuyes, right... kwmonroe17:18
lazyPowerhttps://jujucharms.com/docs/devel/reference-environment-variables#juju_remote_unit17:18
lazyPowerdoc link if its helpful ^17:18
kwmonroeoh hey!  there's an idea.. that may be an easy thing to do do suchvenu ^17:18
suchvenuthe env variable $JUJU_REMOTE_UNIT will work in the interface a?17:19
suchvenuI have used it in the reactive layer..17:19
suchvenuBut this i want in the interface17:19
lazyPowersuchvenu - that environment variable is set during the relationship context, so it's important ot remember that you should only depend on that during the @hook('relation-name-joined')  joined/changed/departed/broken17:19
lazyPowerif you attempt to reference that environment variable during say, config-changed, its not going to be there17:20
kwmonroesuchvenu: in a more complicated example -- say, for example, you needed to know *all* the remote units connected to your interface, you could create an "endpoints" method simliar to how the monitor interface does it: https://github.com/juju-solutions/interface-monitor/blob/master/provides.py17:20
kwmonroesuchvenu: i think lazyPower's suggestion is that you not worry about the remote unit name in the interface, and use it in the reactive layer during a @when '<required>-relation-changed' state is present.17:23
kwmonroeugh, sorry, i meant provides.. so like in the db2 reactive layer, @when 'db2-relation-changed'17:24
kwmonroeecho $JUJU_REMOTE_UNIT, or whatever you need to do with that17:24
suchvenuThe issue i am facing is, I need to get the remote-unit name to create DB and users based on the unit name. If i miss to set accept_license to true and add-relation between db2 and consumer, I get the remote unit name in the reactive layer. But since accept_license was not set the install will not happen17:24
suchvenuThen I set the accept_license flag and after this, when it comes to relation hooks I am not getting the $JUJU_REMOTE_UNIT name17:25
suchvenuBefore install, when the add-relation was called, it actually goes to the relation hooks and gives the $JUJU_REMOTE_UNIT name17:26
suchvenuBut not after install. So I thot of getting this value from Interface17:26
kwmonroeah yeah, so that gets back to what lazyPower was saying.. when add-relation was called, you were in a "db2-relation-[joined|changed]" hook, which is a relation hook, which is why $JUJU_REMOTE_UNIT was available17:26
suchvenuright17:27
suchvenufirst time i get it17:27
kwmonroewhen you set accept_license, you were in a "config-chagned" hook, which has no remote relation information available17:27
kwmonroeso you would need to adjust your states to handle the case when both license is accepted && relation is available17:27
suchvenuBut doesn't it go to relation hook again after config-changed ?17:27
kwmonroelike "@when 'license.accepted' 'db2-relation.joined'"17:28
kwmonroethen echo $JUJU_REMOTE_UNIT17:28
kwmonroethe 2nd clause in that @when decorator will ensure it happens in a relation context, so remote unit info should be available17:28
kwmonroeno, relation hooks may not fire after a config-changed hook, and even if a conifg and relation hook are both set to fire, you have no guarantee which one will happen first17:29
suchvenuhmm17:29
kwmonroethat's the nice part about reactive charming.. you can create a combination of states so that it does not matter which happens first17:29
kwmonroesimply define a method that requires both states -- in this case, license.accepted and db2.ready (or whatever the db2 state is called) -- and you can do both config and relation-related things in there.17:30
suchvenuok..17:30
suchvenulet me try this way and see17:31
kwmonroedoes that help?  if not, please point me to a repo so i can take a look (it doesn't have to be working code :), or paste the reactive code that isn't working to http://paste.ubuntu.com/17:31
suchvenuThanks Kwmonroe and lazypower17:32
suchvenuI will try and let you know17:32
suchvenuSure thanks17:32
jcastro_mthaddon, https://jujucharms.com/docs/devel/tools-charm-tools17:34
cory_fukwmonroe, suchvenu, lazyPower: Sorry I'm late to the party, but I'd highly recommend against using $JUJU_REMOTE_UNIT, because it will *only* be valid within a @hook('*-relation-*') handler and almost certainly not in any @when handler.  Instead, you can always get the list of unit names from a conversation with conv.units17:35
lazyPowerah thats right17:35
lazyPowercory_fu - as usual, to the rescue ;)17:36
kwmonroeoh dear -- sorry suchvenu!  don't do that17:36
cory_fukwmonroe: I'm also now recommending *against* ever using conv.scope directly.  That was a bad pattern that I started and now regret.17:36
lazyPowercory_fu - we need some of that knowledge in the docs, if i bug that can I point you at it?17:36
kwmonroeheh17:36
cory_fulazyPower: Yes, please do.  conv.units isn't even in the docs anywhere and definitely needs ot be17:36
cory_fulazyPower: I've also been thinking about scrapping the Conversation pattern entirely (or at least hiding it) because it seems to cause more confusion than it saves17:37
jcastro_aisrael, can you loop back around to this today? https://bugs.launchpad.net/charms/+bug/156294417:37
mupBug #1562944: Please review and add auditd charm as a recommended charm <Juju Charms Collection:New for charmers> <https://launchpad.net/bugs/1562944>17:37
cory_fuAnd there is at least one bug now that's damned hard to fix with people relying on conv.scope17:38
aisraeljcastro_: Yep, I'll hit it again tonight. The AWS test finally ran and passed. \m/17:39
stubI'd love to have an example of a relation where the leader sets a password that all units set on their relation, cause then I might understand how I can use conversations ;)17:39
jcastro_does the review queue bot not post immediately to lp when the test passes?17:39
jcastro_or is it like a nightly thing or something?17:39
jcastro_all I see on the bug are the failed tests17:39
aisraeljcastro_: Not sure. I'm going by this: http://review.juju.solutions/review/262017:40
jcastro_mthaddon, ^^17:40
jcastro_aisrael,  thanks!17:40
cory_fustub: You've pretty much convinced me that not only are conversations and scopes harder to understand, but they lead to an incorrect mental model of how relations work under the hood.17:40
aisraeljcastro_: no worries. I'm on the case17:40
=== Guest10665 is now known as spammy
mthaddonjcastro_: thx, will pass on to Tim17:41
stubcory_fu: I was hoping I'd missed some important fact that was stopping me grokking it :-(17:42
kwmonroecory_fu: how would you get the current remote unit name from a globally scoped provides.py?17:43
suchvenucory_fu, kwmonroe -> So are ou suggesting me to use conv.units ?17:43
kwmonroecory_fu: conv.units gets me all remote (requiring) units, right?  i just want 1 in particular.17:44
cory_fustub: The intention originally was to model the progression of states that one unit assigns to another as a conversation, but the asymmetry of how relations actually work in Juju, and the variation in the use-cases led to it ending up being less useful than we'd originally hoped17:44
cory_fukwmonroe: When you're dealing with states (@when), there *is* no "current" remote unit.  You could be in a config-changed hook, if that happened to be the last thing that changed to satisfy all of your @when conditions.  All you know is that the state you referenced applies to a set of one or more remote units17:46
cory_fusuchvenu: Yes, I am recommending that you use conv.units which will be a list of unit names.17:46
suchvenuBut I want only one unit for which I am creating the DB name and user17:50
cory_fusuchvenu: If you have two services connect to the database, they should both get a database, right?  So, if the timing works out that you are handling two at once, it means you need to loop over them and create a database for each.17:52
suchvenuBut if I have already created for one ?17:53
cory_fusuchvenu: Unless you only want to create one database per service and the connected service has multiple units?17:53
cory_fuIn that case, you'll need to convert the unit names to a (shorter) list of service names and create one per service.17:56
kwmonroehow about this cory_fu suchvenu... in the db2 charm, @when 'db2.ready', loop through all units from conv.units, test if user/db/whatever already exists, and if not, create what you need based the data in the current loop iteration.17:59
cory_fu+118:00
A-KaserI got this warning : charm URL should include a revision18:00
kwmonroebecause i think you're right in that all units connected to db2 will need a user/db/whatever, so just always loop through all of them and create the missing pieces18:00
suchvenuyes that will work18:00
A-Kaseris it in metadata.yaml ?18:00
cory_fuA-Kaser: Where did you get that warning?18:00
A-Kaserjuju bundle proof18:01
cory_fuHrm.  I think that's an out-of-date warning18:01
cory_fuOh, bundle proof!18:01
cory_fuA-Kaser: That means that bundles should include specific revisions for charms.  I.e., "charm: cs:trusty/mysql-5" instead of "charm: cs:trusty/mysql"18:02
A-Kaserit's my owns charms18:02
cory_fuA-Kaser: That's to ensure that bundles are a set of specific charm revs that are known to work together18:02
A-Kaserand there are only local, I'm lookig to how publish it18:03
cory_fuA-Kaser: Really, that only applies to bundles that you want promulgated.  They will work w/o revs, but for promulgated bundles we basically require them to be rev locked18:03
A-Kaserok18:03
A-Kaserso I can add -1 at the end of "charm:" line18:04
cory_fuA-Kaser: But you can put a bundle in your own namespace, that refers to charms in your own namespace, w/o rev locking them18:04
A-Kaserand I suppose I will be able to create this revision18:04
A-Kaserok ok, I need to check how to publish it18:04
suchvenuCory_fu , do you have any example where I can look at conv.units ?18:04
A-Kaserlaunchpad use only bzr ?18:04
cory_fuA-Kaser: Whenever the charm is published to the store (either by having it be automatically ingested from Launchpad, or using the new `charm push` / `charm publish`, it will create the rev18:05
cory_fusuchvenu: Not off the top of my head, and I have to step away for a few minutes.  I will find one and get back to you shortly, if kwmonroe doesn't find you one first18:05
cory_fubbiab18:05
suchvenusure18:06
c0skwmonroe: cory_fu : a quick question about ArchiveUrlFetchHandler. If I am using in the form of18:15
c0s  fetcher.install(my_url, my_dest, checksum="deadbeef", hash_type="md5)18:15
c0swhere the checksum and hash type would be coming from ? Assuming my_url is defined in the config.yaml, shall the other two be defined there as well?18:15
c0ssorry for the silly question18:15
c0soh I see - I guess I just can add the checksum to the url itself.18:17
kjackalcory_fu, kwmonroe, admcleod-, who is where do we set the "namenode.joined" ?18:17
kwmonroesuchvenu: i don't know of a conv.units example either, but i think in your provides.py, you'd just define a method that does "return self.conversation().units" and then call that method from your db2 layer when license.accepted and db2.ready.18:23
kjackalcory_fu, kwmonroe, admcleod-, interface:dfs18:24
kwmonroeyup c0s, you can either have the sum and hashtype as separate config vars (and only call install when all pieces are configured), or stick those onto the url as url?md5=deadbeef18:24
c0sk, thanks!18:25
coreycbjamespage, gnuoy, thedac: way past eod for a few of you but rockstar needs this fix if any of you happen to be free to review. https://review.openstack.org/#/c/302427/19:24
beisnercoreycb, do we have full passing on that ^?19:47
coreycbbeisner, no, I'm waiting for a +2 and full recheck19:48
coreycbbeisner, or can the full passing come first?19:48
beisnercoreycb, yah let's get charm-recheck-full passing19:48
coreycbbeisner, ok19:48
beisnerfyi thedac is on hols today/tomorrow19:48
coreycbbeisner, ok thx19:48
rbasakneiljerram: mysql-5.7 5.7.11-0ubuntu5 has landed in the release pocket now. If you're using the mysql charm though, I think gnuoy's working on that since it broke something there?20:28
magicaltroutare charms building to the charmstore?20:36
kwmonroemagicaltrout: wadda you mean by 'building to the charmstore'?20:40
magicaltroutpush charm to LP -> deploy charm to CS20:41
magicaltroutjust trying to unbreak my saiku charm so I pushed an update 50odd minutes ago but I don't see an update in the CS20:42
kwmonroemagicaltrout: i believe the LP ingestion process is still a thing, but have seen it take an hour(ish).  however, iiuc, if the charm has ever been published with the new "charm push && charm publish" commands, then the LP ingester doesn't look at that anymore.20:44
kwmonroemagicaltrout: did you push an update to LP for this one? https://jujucharms.com/u/f-tom-n/saikuanalytics/trusty/320:45
magicaltrouthttps://jujucharms.com/u/spicule/saikuanalytics-enterprise/trusty/20:46
magicaltroutits its up over an hour, i'll return to twiddling my thumbs, i thought it was ~40mins20:46
marcoceppimagicaltrout: ingestion is broken at best20:49
marcoceppimagicaltrout: use new charm workflow20:49
marcoceppimagicaltrout: and help vet our documentation :)20:50
magicaltroutthat involes me doing things20:50
magicaltroutlink me up20:50
marcoceppimagicaltrout: https://github.com/juju/docs/pull/97520:51
marcoceppimagicaltrout: https://github.com/marcoceppi/docs/blob/17b54ba8f49d464a0b26b11fab7087705166c6bf/src/en/authors-charm-store.md20:51
marcoceppimagicaltrout: doc is very much WIP, but feedback on that pull request would be great20:52
marcoceppimagicaltrout: hope to hvae it finished up by EOW20:52
magicaltroutk i'll give it a spin20:52
magicaltroutthanks20:52
kwmonroemagicaltrout: the nice thing about the new workflow is that you push and it's immediate.. no waiting on an ingestion process to pull20:52
kwmonroedang marcoceppi, really nice job on the wip!  that ascii art and pointer description are really helpful.20:54
* thumper chuckles at the name of magicaltrout20:56
thumpercracks me up20:56
thumpermorning folks20:56
magicaltrouter right them marcoceppi problem #121:01
magicaltroutwhere do I get a charm exec thats up to date enough to run charm login?21:02
marcoceppimagicaltrout: ppa:juju/devel and ppa:juju/stable - you need both21:02
magicaltrouter21:02
magicaltroutright21:02
magicaltroutoh I've got a charm in some anaconda dir stomping on my path21:04
magicaltroutdont' even know what/how that got there21:05
magicaltroutalrighty then marcoceppi21:12
magicaltroutsays its published to stable21:12
magicaltroutwhats the lag time on the UI?21:12
magicaltroutbecause you said its immediate and either its not or I've ballsed up21:14
jrwrenkwmonroe: magicaltrout looks like ingestion run and your saikuanalytics imported: https://api.jujucharms.com/charmstore/v5/changes/published?start=2016-04-0721:16
magicaltroutthat does indeed jrwren21:16
magicaltroutoh arse21:16
magicaltroutwrong bloody bzr launchpad login21:17
magicaltroutokay so21:18
magicaltrouthelp me out here ;)21:18
magicaltroutlogged in with charm login21:18
magicaltroutbut its associated me with ~f-tom-n and not spicule21:19
magicaltroutah charm whoami21:21
magicaltroutokay i'm stuck21:23
magicaltrout /usr/bin/charm push . cs:~spicule/saikuanalytics-enterprise21:23
magicaltroutERROR cannot post archive: unauthorized: access denied for user "f-tom-n"21:23
rick_h_magicaltrout: what's f-tom-n?21:24
rick_h_magicaltrout: do you have more than one login?21:24
rick_h_magicaltrout: can you charm logout?21:24
rick_h_magicaltrout: or rm -rf ~/.go-cookies21:24
rick_h_and relogin21:24
rick_h_using the spicule account21:24
rick_h_logout support was added recently, /me goes to look21:24
=== Guest79665 is now known as terje
magicaltroutrick_h_: I don't have 2 accounts, I did rename my launchpad account though21:27
magicaltroutbut as I logged in like 5 minutes ago for the first time, I do'nt see what a logout would do21:27
rick_h_magicaltrout: well, charm login thinks your ~f-tom-n and you're trying to submit to the user ~spicule which ~f-tom-n isn't able to21:28
rick_h_magicaltrout: so which one did you have before and which one is the current username?21:28
magicaltroutyeah, but that was my old launchpad id21:28
magicaltroutf-tom-n is the old one, and a few weeks ago I changed it to spicule21:29
magicaltroutdumped my cookies and did it again21:30
magicaltroutsame output21:30
magicaltroutwell then22:04
magicaltroutin a nutshell i can't publish to my new launchpad ID and ingestion seems knackered, so, I'm snookered22:04
rick_h_magicaltrout: sorry, meetings wheee22:04
magicaltroutaye no worries22:04
rick_h_magicaltrout: yea, well it doesn't support the LP username change.22:04
magicaltroutso it appears! :)22:05
rick_h_magicaltrout: there's work to try to find a path forward, but atm it breaks things since those names are the urls everyone uses to deploy production stuff22:05
rick_h_it's like a username with a published PPA, it blocks username22:05
magicaltroutrick_h_: but as I already have saiku deployed under spicule and my LP id is now spicule, why can't charm push just use an alternative url22:05
magicaltrouteven if I have to specify it instead of it being default22:05
magicaltrout`https://bugs.launchpad.net/juju-core/+bug/1567690 I dunno where charm tool bugs go, so I filed it in juju core22:47
mupBug #1567690: Can't push charm to my new LP home <juju-core:New> <https://launchpad.net/bugs/1567690>22:47
c0sdoes anyone know if bundletester work with juju 2.0?23:15
LiftedKiltis there a way to tell juju that if maas reports a machine as failed-deployment, have it add another machine and retry the charm deployment on that machine?23:20
LiftedKiltotherwise if I deploy a bundle with say 9 machines, and one of the machines fails to deploy properly, the whole bundle is in limbo until I manually add a machine and move the units and relationships23:21
rbasakjamespage, gnuoy: I've filed bug 1567696 and bug 156769523:25
mupBug #1567696: mysql-server-5.7.postinst is influenced by ~/.my.cnf, causing installation hangs <mysql-5.7-transition> <mysql-5.7 (Ubuntu):Triaged> <https://launchpad.net/bugs/1567696>23:25
mupBug #1567695: mysql-server-5.7.postinst is influenced by $HOME, causing installation hangs <mysql-5.7-transition> <mysql-5.7 (Ubuntu):Triaged> <https://launchpad.net/bugs/1567695>23:25
rbasakI suspect this may be related to your charm problems.23:25
=== redir is now known as redir_afk

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