Commit Graph

10 Commits

Author SHA1 Message Date
Aurelien Lourot 43a2312794 Remove pause/resume logic
This is a subordinate charm and since a recent
commit [1] it shares a list of its services with
the principal charm nova-compute, which has now
the responsibility to pause and resume services. [2]

The ceilometer-agent-compute service has a
dependency to the nova-compute service anyway, so
it is impossible for this charm to resume its
service if its principal charm nova-compute is
paused. This is what also led to errors in
ceilometer-agent's post-series-upgrade hook. This
hook attempted to resume its service although
the principal service was still paused. Removing
this logic entirely solves this issue.

Validated by running openstack-upgrade and
series-upgrade tests. [3]

[1]: https://opendev.org/openstack/charm-ceilometer-agent/commit/be45f779
[2]: https://opendev.org/openstack/charm-nova-compute/commit/8fb37dc0
[3]: https://github.com/openstack-charmers/charmed-openstack-tester

Closes-Bug: #1952882
Change-Id: Ia22b53b52b541250f7f803c6708968d75e64475c
2021-12-13 16:21:15 +01:00
Alex Kavanagh a924a071fd Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: I602a2a9c241de5898f737aacec6f85390d0be4f7
2020-09-27 15:31:34 +01:00
Alex Kavanagh 7ea0be57de Convert the charm to Python 3
Change-Id: I8c8df27be189098be363d0ea125f86e59fdbb020
2019-03-13 12:29:49 +00:00
Liam Young 1a40c275d5 Remove independent OpenStack upgrade
Ceilometer has had an openstack-origin and supported upgrading
the Ceilometer version independently of the principle that it is
associated with. This can cause issues with clashes in package
dependencies between the two. This change makes the
ability for the agent to be upgraded independently of the principle
and instead has the upgrade triggered by the principle. This brings
this charm inline with the other OpenStack subordinate charms.

Change-Id: I641ac2168ac705191d916eaa0624214791e1745d
Closes-Bug: #1802400
2018-11-11 18:44:29 +00:00
James Page 616f05866b Re-license charm as Apache-2.0
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.

Change-Id: I081ca71ffd24c8169bed053c351ad4019956e99b
2016-06-28 11:40:19 +01:00
Alex Kavanagh ed5416c6b8 Enhanced pause and resume for maintenance mode
Adds improved pause and resume unit to the charm such tha the
charm stays paused during maintenance operations.
Sync latest version of charm-helpers for maintenance mode.
Amulet test for pause/resume actions

Change-Id: I3ec090fb9eb85561834b79003606c4d4b38dc84c
2016-03-18 16:31:17 +00:00
James Page 861de65957 Add tox support 2015-11-02 09:52:06 +00:00
Corey Bryant 1d9e1ae2ed Import CONFIGS instead of calling register_configs() again. 2015-09-22 20:46:52 +00:00
Corey Bryant c47a34e7e5 Adjust parameter order 2015-09-15 01:05:46 +00:00
Corey Bryant 42a75be9be Action managed openstack upgrade support 2015-09-14 21:02:50 +00:00