Commit Graph

4 Commits

Author SHA1 Message Date
Liam Young 207bac8bec Ensure endpoints are populated within actions
When actions are run the reactive run_at{start,exit} methods are not
implicit run. This means that some data associated with endpoints
is missing. For example reactive.Endpoint.all_joined_units is always
None.

Change-Id: I565fb534612a06d76e6688ed4f06ad64bc42e512
2021-05-11 08:06:09 +00:00
Liam Young 701cf8d2c4 Add action to restart services
Adds an action to charms to trigger a service restart.

Depends-On: Ic3521c08cdaa207e1391a32e03e53b276c51b309
Change-Id: I1d509d0bc2c3fb77348edef6810fcdc30cdc9ab8
2018-11-30 15:36:26 +00:00
Liam Young 7fa96de883 Add generic action code.
Add generic action code that utilises charms_openstack.bus.discover()
so that the top level charm does not need to make any changes to
inherit generic actions.

Change-Id: I8b3422b915e2477d936e5cdd2d883c6815487577
2018-09-20 13:00:04 +00:00
Liam Young 91caccf8e5 Pause/Resume action for reactive charms
Add pause and resume actions to the Openstack charms. To use these
actions the charm author needs to add an os_actions.py file (which
imports the charm class) and needs to create action symlinks.

Change-Id: Ib882a506b8de6588c556187d526a4028586e5217
2018-09-18 11:26:13 +00:00