I tried, with no luck. Giving "disk snapshot id" as a parameter to that
psql procedure nothing happened. Giving the "vm_snapshot_id" as found in
the "images" table made the snapshot disappear from the gui, but not
from the "images" table.

SO I decided to look into DeleteSnapshot procedure, that resolve as:

DELETE FROM snapshots WHERE snapshot_id = v_snapshot_id;

It only acts on the "snapshots" table, and not on the "image" table,
where the parentship between snapshots is still wrong.

How safe is to manually modify "images" table and set correct parentship?





On 20/04/2021 15:56, Shani Leviim wrote:
> Thanks, Ritesh.
> 
> In order to delete that snapshot, run this command on psql:
> SELECT DeleteSnapshot('snapshot-id');
> 
> *Regards,
> *
> *Shani Leviim
> *
> 
> 
> On Tue, Apr 20, 2021 at 3:25 PM Ritesh Chikatwar <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     adding @Shani Leviim <mailto:[email protected]> 
> 
>     On Tue, Apr 20, 2021 at 5:35 PM Thomas Hoberg <[email protected]
>     <mailto:[email protected]>> wrote:
> 
>         I have used these tools to get rid of snapshots that wouldn't go
>         away any other way:
>         
> https://www.ovirt.org/develop/developer-guide/db-issues/helperutilities.html
>         
> <https://www.ovirt.org/develop/developer-guide/db-issues/helperutilities.html>
>         _______________________________________________
>         Users mailing list -- [email protected] <mailto:[email protected]>
>         To unsubscribe send an email to [email protected]
>         <mailto:[email protected]>
>         Privacy Statement: https://www.ovirt.org/privacy-policy.html
>         <https://www.ovirt.org/privacy-policy.html>
>         oVirt Code of Conduct:
>         https://www.ovirt.org/community/about/community-guidelines/
>         <https://www.ovirt.org/community/about/community-guidelines/>
>         List Archives:
>         
> https://lists.ovirt.org/archives/list/[email protected]/message/37K5J2X2OUDQKN5J3J7ISOV26FMTHCTY/
>         
> <https://lists.ovirt.org/archives/list/[email protected]/message/37K5J2X2OUDQKN5J3J7ISOV26FMTHCTY/>
> 
> 
> _______________________________________________
> Users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> 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/[email protected]/message/LS3BUPQIVHQMG7I7C6IL7QTXJTJE7KCE/
> 
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]/message/RAGYLKOM2DMLOCGIDYGZGCNVSQAASBIQ/

Reply via email to