Commit Graph

5 Commits

Author SHA1 Message Date
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 8b39ad9763 Remove the 'debug' action
Remove the 'debug' action which was introduced in error.

Change-Id: I3c512084f9bfc7420c05a019ec15936fb9c85700
2018-09-20 15:40:58 +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 36ab4e52cd Backout actions.yaml as a tactical fix.
The current implementation forces a charm to define its own
pause/resume actions and charm lint will fail if they do not. This
breaks charms in an unpleasant way so instead work is ongoing
to make pause/resume code standalone in this layer. For the moment
backout actions to unbreak charms.

Change-Id: I04f313097f632d7fa89e1734b966d12bda21656c
2018-09-20 07:00:42 +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