[ovirt-users] Re: Manually Remove Snapshots
This worked for me. I was able to delete the bad snapshot reference and then hose the VM. Thank you for the help ! ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/YZQPR2DMPYV5424RXOFWTLHTXLMXLKCV/
[ovirt-users] Re: Manually Remove Snapshots
Checked my old notes, had to directly alter PostgreSQL db several times, yet my cases were different. I think this can be still fixed with editing PostgeSQL database directly. A blueprint for your solution may be found here, someone from Red Hat had to clarify: https://noeschanga.wordpress.com/2018/02/09/how-to-solve-snapshots-state-locked-in-ovirt-4-1/ This for example is a fix for unknown VM status. su - postgres psql engine select vm_guid from vm_static where vm_name='MyProblematicVM'; vm_guid -- b1b8d576-9567--y-xxx (1 row) select status from vm_dynamic where vm_guid='b1b8d576-9567--y-xxx'; status 7 (1 row) update vm_dynamic SET status=0 where vm_guid='b1b8d576-9567--y-xxx'; update vm_dynamic SET run_on_vds=null WHERE vm_guid='b1b8d576-9567--y-xxx'; On 9/23/22 20:22, Clint Boggio wrote: Attempting to create another snapshot fails with this snippit: - Result: 'cleanSuccess' -- Message: 'VDSGenericException: VDSErrorException: Failed in vdscommand to HSMGetAllTasksStatusesVDS, error = Cannot create volume snapshot from illegal volume: (u'576b2761-a5bc-427b-95a9-0594447f0705',)', -- Exception: 'VDSGenericException: VDSErrorException: Failed in vdscommand to HSMGetAllTasksStatusesVDS, error = Cannot create volume snapshot from illegal volume: (u'576b2761-a5bc-427b-95a9-0594447f0705',)' 2022-09-23 12:17:08,031-05 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engineScheduled-Thread-41) [] CommandAsyncTask::endActionIfNecessary: All tasks of command '2505390c-dd54-41ff-91f5-b56af5b0b3ee' has ended -> executing 'endAction' 2022-09-23 12:17:08,031-05 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engineScheduled-Thread-41) [] CommandAsyncTask::endAction: Ending action for '1' tasks (command ID: '2505390c-dd54-41ff-91f5-b56af5b0b3ee'): calling endAction '. 2022-09-23 12:17:08,032-05 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engine-Thread-73809) [] CommandAsyncTask::endCommandAction [within thread] context: Attempting to endAction 'CreateSnapshot', 2022-09-23 12:17:08,041-05 INFO [org.ovirt.engine.core.bll.snapshots.CreateSnapshotCommand] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] Command [id=2505390c-dd54-41ff-91f5-b56af5b0b3ee]: Updating status to 'FAILED', The command end method logic will be executed by one of its parent commands. 2022-09-23 12:17:08,042-05 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] CommandAsyncTask::HandleEndActionResult [within thread]: endAction for action type 'CreateSnapshot' completed, handling the result. 2022-09-23 12:17:08,042-05 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] CommandAsyncTask::HandleEndActionResult [within thread]: endAction for action type 'CreateSnapshot' succeeded, clearing tasks. 2022-09-23 12:17:08,042-05 INFO [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] SPMAsyncTask::ClearAsyncTask: Attempting to clear task '835aef5c-ff62-4d14-aa24-4b82321e866d' 2022-09-23 12:17:08,043-05 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.SPMClearTaskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] START, SPMClearTaskVDSCommand( SPMTaskGuidBaseVDSCommandParameters:{storagePoolId='31fdd642-6b06-11ea-a4c4-00163e333bd2', ignoreFailoverLimit='false', taskId='835aef5c-ff62-4d14-aa24-4b82321e866d'}), log id: a9fec48 2022-09-23 12:17:08,043-05 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] START, HSMClearTaskVDSCommand(HostName = hprvsr02.locacore.com, HSMTaskGuidBaseVDSCommandParameters:{hostId='ecad78a5-58e3-4fcd-8b84-e30e3e1993cf', taskId='835aef5c-ff62-4d14-aa24-4b82321e866d'}), log id: 6712f5cc 2022-09-23 12:17:08,076-05 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] FINISH, HSMClearTaskVDSCommand, return: , log id: 6712f5cc 2022-09-23 12:17:08,076-05 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.SPMClearTaskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] FINISH, SPMClearTaskVDSCommand, return: , log id: a9fec48 2022-09-23 12:17:08,087-05 INFO [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] BaseAsyncTask::removeTaskFromDB: Removed task
[ovirt-users] Re: Manually Remove Snapshots
Attempting to create another snapshot fails with this snippit: - Result: 'cleanSuccess' -- Message: 'VDSGenericException: VDSErrorException: Failed in vdscommand to HSMGetAllTasksStatusesVDS, error = Cannot create volume snapshot from illegal volume: (u'576b2761-a5bc-427b-95a9-0594447f0705',)', -- Exception: 'VDSGenericException: VDSErrorException: Failed in vdscommand to HSMGetAllTasksStatusesVDS, error = Cannot create volume snapshot from illegal volume: (u'576b2761-a5bc-427b-95a9-0594447f0705',)' 2022-09-23 12:17:08,031-05 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engineScheduled-Thread-41) [] CommandAsyncTask::endActionIfNecessary: All tasks of command '2505390c-dd54-41ff-91f5-b56af5b0b3ee' has ended -> executing 'endAction' 2022-09-23 12:17:08,031-05 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engineScheduled-Thread-41) [] CommandAsyncTask::endAction: Ending action for '1' tasks (command ID: '2505390c-dd54-41ff-91f5-b56af5b0b3ee'): calling endAction '. 2022-09-23 12:17:08,032-05 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engine-Thread-73809) [] CommandAsyncTask::endCommandAction [within thread] context: Attempting to endAction 'CreateSnapshot', 2022-09-23 12:17:08,041-05 INFO [org.ovirt.engine.core.bll.snapshots.CreateSnapshotCommand] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] Command [id=2505390c-dd54-41ff-91f5-b56af5b0b3ee]: Updating status to 'FAILED', The command end method logic will be executed by one of its parent commands. 2022-09-23 12:17:08,042-05 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] CommandAsyncTask::HandleEndActionResult [within thread]: endAction for action type 'CreateSnapshot' completed, handling the result. 2022-09-23 12:17:08,042-05 INFO [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] CommandAsyncTask::HandleEndActionResult [within thread]: endAction for action type 'CreateSnapshot' succeeded, clearing tasks. 2022-09-23 12:17:08,042-05 INFO [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] SPMAsyncTask::ClearAsyncTask: Attempting to clear task '835aef5c-ff62-4d14-aa24-4b82321e866d' 2022-09-23 12:17:08,043-05 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.SPMClearTaskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] START, SPMClearTaskVDSCommand( SPMTaskGuidBaseVDSCommandParameters:{storagePoolId='31fdd642-6b06-11ea-a4c4-00163e333bd2', ignoreFailoverLimit='false', taskId='835aef5c-ff62-4d14-aa24-4b82321e866d'}), log id: a9fec48 2022-09-23 12:17:08,043-05 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] START, HSMClearTaskVDSCommand(HostName = hprvsr02.locacore.com, HSMTaskGuidBaseVDSCommandParameters:{hostId='ecad78a5-58e3-4fcd-8b84-e30e3e1993cf', taskId='835aef5c-ff62-4d14-aa24-4b82321e866d'}), log id: 6712f5cc 2022-09-23 12:17:08,076-05 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] FINISH, HSMClearTaskVDSCommand, return: , log id: 6712f5cc 2022-09-23 12:17:08,076-05 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.SPMClearTaskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] FINISH, SPMClearTaskVDSCommand, return: , log id: a9fec48 2022-09-23 12:17:08,087-05 INFO [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (EE-ManagedThreadFactory-engine-Thread-73809) [dacd81ee-2d8c-4f8e-a590-181c0082bcea] BaseAsyncTask::removeTaskFromDB: Removed task '835aef5c-ff62-4d14-aa24-4b82321e866d' from DataBase ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/TNFJK5BRYPCK6LBTJ2GB3BSDJQKXZ5BH/
[ovirt-users] Re: Manually Remove Snapshots
Hi, There is another way to make a clone. Can you create a new snapshot, and make a new VM based on this snapshot? > On 23 Sep 2022, at 17:23, Clint Boggio wrote: > > I just tried that clone method per your suggestion and I got "VDSM command > CopyImageVDS failed: Image is not a legal chain: > (u'6af66318-e6f8-45d7-8b4e-2183faf0a917',)" > ___ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-le...@ovirt.org > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/users@ovirt.org/message/GFV3BWAL3YP24GKDZNWOJT6L6PX2SWUJ/ ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/JANIWAKABSHVHKEWVQJXNHTWXILP7JPP/
[ovirt-users] Re: Manually Remove Snapshots
I just tried that clone method per your suggestion and I got "VDSM command CopyImageVDS failed: Image is not a legal chain: (u'6af66318-e6f8-45d7-8b4e-2183faf0a917',)" ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/GFV3BWAL3YP24GKDZNWOJT6L6PX2SWUJ/
[ovirt-users] Re: Manually Remove Snapshots
Hi, I think the only way is to clone VM and then destroy old copy, someone from oVirt dev team please comment. > On 23 Sep 2022, at 17:07, Clint Boggio wrote: > > I've got a VM with a pair of snapshots that won't delete and I'm needing a > procedure to manually remove the snapshots. I don't need the VM and so while > i'd prefer not to destroy it, it wouldn't be critical if I did damage the VM > in the process. When I try to delete the snapshots that procedure fails, and > when I try to delete the disk that procedure fails. Any pointers would be > greatly appreciated. > ___ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-le...@ovirt.org > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/users@ovirt.org/message/CTTS2LLU57LLHR6NM7YQVU622CC2YWAQ/ ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/W3AAAZ66WG3IVUZUEMTMNEBN27VCIOGX/