/srv/irclogs.ubuntu.com/2012/02/06/#juju.txt

=== asavu_ is now known as asavu
=== grapz is now known as grapz_afk
=== grapz_afk is now known as grapz
koolhead11hi all13:46
_mup_juju/robust-test-removed-service-unit r457 committed by jim.baker@canonical.com18:57
_mup_Fix test in use of watch so it doesn't assume that it will see all changes to a ZK node (because it won't)18:57
=== hspencer is now known as hspencer[lunch]
_mup_juju/increase-session-timeout r448 committed by kapil.thangavelu@canonical.com20:49
_mup_allow managed zk to specify longer timeout20:49
=== robbiew1 is now known as robbiew
hazmatadam_g, ping21:34
=== hspencer[lunch] is now known as hspencer
adam_ghazmat: pong21:50
hazmathi adam_g i was playing around with deploying dependencies to create automated tests that can verify relations, and smoser pointed out that for openstack there is a required ordering to make it work.. i was just curious about some of the details, the sample test plan i have for nova-compute is.. http://paste.ubuntu.com/831927/21:52
hazmatalso i wanted to talk about the dependencies for the swift charm, it seemed strange to me that swift-storage both requires and provides swift, seems like it was intended that it provides 'swift', and the proxy requires it.21:53
adam_ghazmat: sure, one sec21:54
adam_ghazmat: so, wrt ordering.. service like nova-volume and nova-compute are basically useless without functioning [nova-cloud-controller, rabbitmq, mysql]. all the nova-* components require access to the database and rabbit queue21:58
SpamapShazmat: this goes back to what I said, which is that relations shouldn't actually be established until all of a service's required relations are established22:00
adam_ghazmat: for nova's authentication to work, the nova-api server (part of nova-cloud-controller) needs a relation to the keystone service.. which, ideally, has a relation to a database. its possible to not use an external database and store in a local sqlite database, but if a new data store is introduced through a new relation, all existing auth + service entries need to be migrated to the new db.22:00
hazmatSpamapS, it goes beyond that, its assuming a global ordering to the required relation establishment.22:01
adam_ghazmat: nova-compute + cloud-controller then need another relation to the glance service in order for images to function. glance also requires a database and a keystone relation22:01
hazmatadam_g, so it sounds like, what SpamapS said, if all the required relations for a service are deployed for a service then its provided interfaces can have relations established22:04
hazmatie. it doesn't need a particular ordering of dependency established, ie. add rabbitmq before keystone or mysql for nova-compute22:05
adam_ghmm22:06
adam_g(looking thru charms)22:07
adam_ghazmat: so,   deploy keystone, nova-*, glance.  for each, satisfy required relations. once each components required relations are established, add relations between each depending on what is provided. ?22:12
hazmatadam_g, yeah22:13
adam_ghazmat: is it an issue that keystone is a required relatin of both nova-* and glance? it may end up that things do adhere to some global order depending on what interfaces exist, even if its not defined explicitly22:19
hazmatadam_g, that's fine re keystone22:23
adam_ghazmat: fwiw, this is what a deployment looks like currently, in terms of ideal ordering: http://paste.ubuntu.com/831987/22:23
koolhead17m_3: hello there22:27
adam_ghazmat: about swift. yea, you're right. the interfaces are poorly / incorrectly named. that charm is a bit dated and ive got work items this cycle to rewrite it. for now, i can propose an update along the lines of: swift-proxy provides proxy:swift-proxy, swift-storage provides storage-ring:swift-storage22:41
hazmatadam_g,  that sounds good22:42
adam_ghazmat: i'll also propose merging those changes to interfaces we talked about last week. i had gotten distracted and forgot about that, sorry22:49
hazmatadam_g, thanks23:01
hazmatadam_g, fwiw, here's what i get for an automated ordered relation list http://paste.ubuntu.com/832017/23:02
hazmatfor nova-compute23:02
* koolhead17 scratching his head to try this whole OS charms!! :P23:03
adam_ghazmat: is this the oneiric charms?23:16
SpamapShazmat: That looks awfully close to "establish required relations before provided relations start working"23:18
SpamapShazmat: I don't think you have to assume global ordering. Juju can simply see that nova-cloud-controller isn't ready to start providing things until the requires: are satisfied.. so it would do nothing with the relations established to its provide side, until the requires side is done.23:20
SpamapShazmat: the problem there is that the relations have no way of saying "I am established"23:20
ejathi, is there a way to generate admin-secret & control-bucket23:27
ejatfor environments23:27
jimbakerSpamapS, i don't understand that statement, isn't that the point of relation settings to say stuff like that?23:30
hazmatSpamapS, your right it is just establish required first, i was concerned it might be more than that, wrt to relation established just identifying a steady state for a timeout wrt to status changes for the rel should suffice23:31
SpamapShazmat: I suppose steady state is achieved if all hooks exit 0 w/o relation-set23:34
SpamapSjimbaker: relation settings are for the other side of the relation. They're meaningless to juju itself.23:34
SpamapShazmat: Actually, this could work.23:35
jimbakerSpamapS, agreed on their meaning to juju. i guess the problem here is you want more explicit support from juju on relations being established23:38
hazmatSpamapS have you seen smoser's deployer script, i'm thinking about just feeding these plans into that23:38
hazmathttp://bazaar.launchpad.net/~smoser/+junk/juju-deployer-concurrent/view/head:/deployments.cfg.jstack23:38
jimbakerstacks, nice :)23:39
hazmatjimbaker, SpamapS we can add a helper script to juju-tools for better external rel inspection and watching23:39
jimbakerhazmat, just for inspection, or also used to control the adding of relations in a stack?23:40
adam_ghazmat: i wrote that script btw, the weight'ing was my naive solution to the issue of 'i need keystone up first before anything else'23:41
hazmatadam_g, oh.. cool, i like it :-)23:41
hazmatjimbaker, just for inspection, but inspection against a rel is a timeout against a steady state of no change, we can either have the timeout on status change or just use the related watch23:42
jimbakerhazmat, ok, such tools at least tell us the real needs here. ideally there would be no need to have the deployment script need to manage having keystone up before it can do anything else23:45
adam_gjimbaker: well, keystone should ideally have a relation to its back end database before taking relations from any services on the interface it provides.23:46
jimbakeradam_g, sure, it just seems that this can be negotiated using relation settings23:47
hazmatjimbaker, agreed, bcsaller's described implementing subordinates that way before.. which gave the properties/effect that deploying things with unfufilled requirements where a noop.23:48
jimbakerhazmat, albeit it seems like an orthogonal concern to subordinates. anyway, real code will give us a better understanding of what's missing in juju, so certainly adam_g's plan sounds good23:49
bcsallerhazmat: well, the service state is still created and appears in status, but no units are allocated and no machine assigned23:50
=== koolhead17 is now known as koolhead17|zzZZ
SpamapSI don't think any drastic change is necessary.. except that people would be confused by nothing happened when required relations aren't established..23:57
SpamapSBasically right now relations are just watched and acted on, but the unit agent would have to delay acting on provides relations until all required relationships have reached a steady state where all hooks have exitted w/o changing any settings.23:57
SpamapSSo there would need to be another state beyond 'up' which would be 'steady' or something like that... and that would be managed by the unit agents on both sides.23:58

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