Issue
VDisk is part of another ongoing transaction
Resolution
If you see the error in the log below, you can use the onappstore cleartransaction command to clean up the stale transaction files.
Example
Log looks something like:
Date 26 Nov 22:43:25
Action RepairDisk
Status Failed
Target Disk #lhk8uy53raifbz
Started at 26 Nov 22:43:32
Failed at 26 Nov 22:43:36
Output
------
Remote Server: 10.0.0.50
Running: Storage API Call: PUT 10.0.0.50:8080/is/Datastore/2vpulh7bsj0ar8/VDisk/lhk8uy53raifbz {"state":"8"}
{"result": "SUCCESS"}
Running: Storage API Call: PUT 10.0.0.50:8080/is/Datastore/2vpulh7bsj0ar8/VDisk/lhk8uy53raifbz {"state":"6"} (3s)
{"result": "FAILURE", "error": "Failed to start transaction on a subset of the nodes with error map :{u'result': u'FAILURE', u'error': u'VDisk is part of another ongoing transaction with ID 2350123577 and description offlineVDisk. Please try again later.'}, success list: [], failed on node: 1642667664"}
Fatal: OnApp::Storage::API::Failure Failed to start transaction on a subset of the nodes with error map :{u'result': u'FAILURE', u'error': u'VDisk is part of another ongoing transaction with ID 2350123577 and description offlineVDisk. Please try again later.'}, success list: [], failed on node: 1642667664
Executing Rollback...
To clean this up, log into a cloudboot HV or Backup Server and run (getting the parameters from the log above):
onappstore cleartransaction vdisk=lhk8uy53raifbz node=1642667664 txn_id=2350123577
Output:
[root@10.0.0.50 ~]# onappstore cleartransaction vdisk=lhk8uy53raifbz node=1642667664 txn_id=2350123577
result=SUCCESS