Comment 5 for bug 1694734

Revision history for this message
Eric Claude Jones (ecjones) wrote :

WORK AROUND

For users experiencing this bug with versions prior to that which contains the fix, the following work around can be used.

If you notice that the unit agent is stuck in continual attempts to fail an action, you can try to step the agent pass that action by updating its state file manually. For example, let us say that logs reveal that you unit agent is stuck canceling an action with ID f5fe333a-9662-4fc1-8dc2-045b16208e85 and your unit agent's state file looks as follows:

leader: false
started: true
stopped: false
installed: true
status-set: false
op: run-action
opstep: pending
action-id: f5fe333a-9662-4fc1-8dc2-045b16208e85

You can delete the line starting with `action-id` and and change the line starting with `op` to `op: continue`. This will step the unit agent past trying to fail the specified action. This should be safe since the controller already believes the action to be cancelled (which is why it is repeatedly rejecting the uniter's requests to fail the action).