the ceilometer-upgrade post-deploy action should not be required
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Ceilometer Charm |
Triaged
|
Low
|
Unassigned |
Bug Description
It's an anti-pattern to require an action (with no parameters) to complete setup after a charm deploy. juju deployed application should handle all of that on their own.
In the case of ceilometer-upgrade, there are "many inherent race conditions" [1] (apparently unresolved at this point) that motivated the addition of this action. It makes it possible for this to work without race conditions, but it is still a hack.
This bug is to track the fact that the relation shouldn't be required. It doesn't provide anything useful except to workaround the unfixed race conditions.
Requiring the charm complicates deploying openstack with juju. It goes from:
juju deploy bundle.yaml
to:
juju deploy bundle.yaml
juju wait --exclude ceilometer
juju run-action ceilometer/leader ceilometer upgrade
juju wait
This is a big complication, given that juju wait is a community supported plugin.
[1] https:/
description: | updated |
description: | updated |
Changed in charm-ceilometer: | |
importance: | Undecided → Wishlist |
Changed in charm-ceilometer: | |
status: | New → Triaged |
importance: | Wishlist → Low |
Changed in charm-ceilometer: | |
status: | Triaged → Opinion |
status: | Opinion → Triaged |
tags: | added: charm-upgrade |
tags: |
added: openstack-upgrade removed: charm-upgrade |
The heat charm also has a post-deployment action which has been required for quite some time. With Juju goal state now being a feature, we can revisit this bug, and other areas where ultimate state was not predictable from an individual charm application perspective. In the mean-time, this is the established method to address this type of issue where very serious and impactful race conditions would otherwise exist.
Doing that would require that we take a deep assessment of application state on the whole, and incorporate goal state into the charms. To-date, only a PoC of goal state has been exercised in relation to OpenStack Charms.
Hence, the classification as a feature request.