Hello @KastenJohn
Thank you for using our community and K10!
There is a way to cancel a K10 action from CLI (runaction, backupaction, restoreaction..), you must create a cancel action, you can find more details in our documentation.
https://docs.kasten.io/latest/api/actions.html?highlight=cancel%20action#cancelaction-api-type
I will describe how to do it and also how to check in more details about your restore action.
First check if the restore action is still running: (It can be also done for backup actions)
kubectl get restoreactions -A -o custom-columns=ACTION:.kind,NAMESPACE:.metadata.namespace,NAME:.metadata.name,'CREATED AT':.metadata.creationTimestamp,STATUS:.status.state,POLICY:.metadata.labels."k10\.kasten\.io\/policyName"
ACTION NAMESPACE NAME CREATED AT STATUS POLICY
RestoreAction test22 test22-6nr5v 2022-10-11T14:33:49Z Running <none>
Describe the restore action, it can help you identify what is happening:
#This case using the restore action from the command above:
kubectl describe restoreactions test22-6nr5v -n test22
...
Exceptions:
Cause: {"errors"::{"cause":{"cause":{"cause":{"fields"::{"name":"pod","value":"kopia-debug"}],"file":"kasten.io/k10/kio/exec/phases/phase/kanister.go:855","function":"kasten.io/k10/kio/exec/phases/phase.waitForWorkloadReady","linenumber":855,"message":"Pod not in ready state"},"fields"::
....
With the name and namespace you can create a cancel action using the command bellow:
#Using restore action name "test22-6nr5v" and namespace "test22", please replace with your values
cat <<EOF | kubectl create -f -
apiVersion: actions.kio.kasten.io/v1alpha1
kind: CancelAction
metadata:
name: cancel-action
generateName: cancel-action-
namespace: test22
spec:
subject:
kind: RestoreAction
name: test22-6nr5v
namespace: test22
EOF
cancelaction.actions.kio.kasten.io/cancel-action created
After that you can monitor using CLI checking the restore actions again or through K10 dashboard, but please keep in mind the cancel action can take some time depending in which kind of action is being performed, this same process can be used for BackupActions.
Please let us know if you have any other questions.
Fernando R.