Swift middleware subordinate charms?
James Page
james.page at ubuntu.com
Thu Sep 25 16:54:45 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 24/09/14 12:09, Andrew Wilkins wrote:
>
> Anyway, normally I think you'd want the primary charm's
> (swift-proxy's) relevant relation-changed hook to do the restart
> itself when the middleware changes (ie. when middleware-changed is
> triggered). This just makes sure that the responsibility and
> knowledge of restarts stays within the charm responsible for the
> service.
>
>
> That makes sense. I was coming from the angle of how to do this
> without touching any existing charms, which is wrong.
>
> I think to do this right I'd need to modify the swift-proxy and
> swift-storage charms, and have them modify their configuration
> files rather than having the subordinate do it. The subordinate
> would effectively just provide configuration parameters and install
> the middleware dependencies. I'll hack around for now, and maybe
> I'll propose something later if anything becomes of my charm.
That sounds like the best approach - we did something similar for
cinder backends - see the cinder and cinder-ceph or cinder-vmware charms.
- --
James Page
Ubuntu and Debian Developer
james.page at ubuntu.com
jamespage at debian.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJUJEjVAAoJEL/srsug59jDJjsQAJt5XXwvMeCUAl0N5lBHYKQs
d/SAz0Wxsi5EoLZkIYl2woJlvwO8/vfeIcBJ3+f6OOG1Xa52An+OHgxi3tSqJfNT
dhxOU5aFkiawNrakDofnxxmTxDIZln3IcdCrh3SypB4s6t4yGkeRSzcnXo2AnINH
Xt/sTsYtCtZG6aeKjtUp331ITtjtbyz0+WMlSnGRaXUbpmrr5kVcf4R4PMvqAk+Q
OjqMle5dSHStT7EkdWSepOXsfxIu7Hb6F9gEuzzNUKi8IhGiuuiprB5uoZ/we31c
FXFy8ArL+Q3MG+kuV8SJqD79cxWjPaL0hLKelLo3GWUJN1E+VvaKnREzSqCIgRvW
aenbp/cj7Q3WwnS0Cvm2quWSknFc9BvTORk9ITtHWHrcyJ8/snDFlgDZ1whqDS+V
ZMkefHMerxpl9tcWayyyq+rHfkiDj9RTzAnmumOp1uM8e8epN4PRm6scQfT8Q7t+
Ywl1MojloYDTaWQFCiNeEIjHY6WEFI5E7Agym/iKwCtnGqFJaWV3LaxSJIHnrBCQ
eRDNezVG/gz6wNl/Mv4W1hXRrFHh1Vb1FnkA7lQDBodzeWZdc1otz+vLelsSg8p6
uguxu6193khXYoJQgp33KMK+QvU5tAZq1MWoWVWzzuzPd9aYgdNv1YCS8Lq3+BDb
plWkSAOmnCWs/fUTJG/x
=gLEx
-----END PGP SIGNATURE-----
More information about the Juju
mailing list