disk snapshot status is Illegal

Hi Team, I am trying to delete a old snapshot of a virtual machine and getting below error :- failed to delete snapshot 'snapshot-ind-co-ora-02' for VM índ-co-ora-ee-02' [image: image.png] Thanks

Hey Guys, Any help on it ? Thanks On Tue, Feb 4, 2020 at 4:04 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hi Team,
I am trying to delete a old snapshot of a virtual machine and getting below error :-
failed to delete snapshot 'snapshot-ind-co-ora-02' for VM índ-co-ora-ee-02'
[image: image.png]
Thanks

What version of oVirt are you running? We've had a variety of snapshot issues (corrected in later releases) and snapshot problems similar to this since (RHV) 4.2.x until some of the later minor releases of 4.3. Some of the illegal states I overcame by powering the VM off and then attempting to delete the snapshot. Have you tried that? -Bernadette On Tue, Feb 4, 2020 at 8:09 AM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hey Guys,
Any help on it ?
Thanks
On Tue, Feb 4, 2020 at 4:04 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hi Team,
I am trying to delete a old snapshot of a virtual machine and getting below error :-
failed to delete snapshot 'snapshot-ind-co-ora-02' for VM índ-co-ora-ee-02'
[image: image.png]
Thanks
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/C7OR4HQEKNJURW...
-- Bunny Pfau Ace Info Solutions, Inc. (AceInfo) Supporting NOAA ESRL / Global Systems Division / ITS Bernadette.Pfau@noaa.gov (303) 497-4706 / DSRC 2B159

Hi, Do you think it will resolve the issue. I am scared if i shutdown the VM and it dost't came up ? ovirt engine :- 4.3.8 Any help please ? On Tue, Feb 4, 2020 at 8:46 PM Bernadette Pfau - NOAA Affiliate < bernadette.pfau@noaa.gov> wrote:
What version of oVirt are you running? We've had a variety of snapshot issues (corrected in later releases) and snapshot problems similar to this since (RHV) 4.2.x until some of the later minor releases of 4.3. Some of the illegal states I overcame by powering the VM off and then attempting to delete the snapshot. Have you tried that? -Bernadette
On Tue, Feb 4, 2020 at 8:09 AM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hey Guys,
Any help on it ?
Thanks
On Tue, Feb 4, 2020 at 4:04 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hi Team,
I am trying to delete a old snapshot of a virtual machine and getting below error :-
failed to delete snapshot 'snapshot-ind-co-ora-02' for VM índ-co-ora-ee-02'
[image: image.png]
Thanks
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/C7OR4HQEKNJURW...
-- Bunny Pfau Ace Info Solutions, Inc. (AceInfo) Supporting NOAA ESRL / Global Systems Division / ITS Bernadette.Pfau@noaa.gov (303) 497-4706 / DSRC 2B159

Hello, I believe you should be able to fix this issue using the "unlock_entity.sh" tool on the hosted engine VM in "/usr/share/ovirt-engine/setup/dbutils" -- unfortunately there is not much documentation on it but I IIRC I've used it to fix this very issue in the past. Someone else may be able to chime in on its proper use. On Tue, Feb 4, 2020 at 11:07 AM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hey Guys,
Any help on it ?
Thanks
On Tue, Feb 4, 2020 at 4:04 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hi Team,
I am trying to delete a old snapshot of a virtual machine and getting below error :-
failed to delete snapshot 'snapshot-ind-co-ora-02' for VM índ-co-ora-ee-02'
[image: image.png]
Thanks
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/C7OR4HQEKNJURW...

Is the VM running? Can you remove it when the VM is down? Can you find the reason for illegal status in the logs? On Tue, Feb 4, 2020 at 5:06 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hey Guys,
Any help on it ?
Thanks
On Tue, Feb 4, 2020 at 4:04 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hi Team,
I am trying to delete a old snapshot of a virtual machine and getting below error :-
failed to delete snapshot 'snapshot-ind-co-ora-02' for VM índ-co-ora-ee-02'
[image: image.png]
Thanks
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/C7OR4HQEKNJURW...

Hi, Yes VM is running but i scared if i shutdown the VM and it not came back. I have also upgraded engine from 4.3.6.6 to 4.3.8. but still the issue persists. I am also unable to take snapshot of the the same VM as the new snapshot failing. Please help. Thanks Shashank On Tue, Feb 4, 2020 at 8:54 PM Benny Zlotnik <bzlotnik@redhat.com> wrote:
Is the VM running? Can you remove it when the VM is down? Can you find the reason for illegal status in the logs?
On Tue, Feb 4, 2020 at 5:06 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hey Guys,
Any help on it ?
Thanks
On Tue, Feb 4, 2020 at 4:04 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hi Team,
I am trying to delete a old snapshot of a virtual machine and getting below error :-
failed to delete snapshot 'snapshot-ind-co-ora-02' for VM índ-co-ora-ee-02'
[image: image.png]
Thanks
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/C7OR4HQEKNJURW...

back to my question then, can you check what made the snapshot illegal? and attach the vdsm and engine logs from the occurrence so we can assess the damage also run `dump-volume-chains <sd_id>` where the image resides so we can see what's the status of the image on vdsm On Tue, Feb 4, 2020 at 6:46 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hi,
Yes VM is running but i scared if i shutdown the VM and it not came back. I have also upgraded engine from 4.3.6.6 to 4.3.8. but still the issue persists. I am also unable to take snapshot of the the same VM as the new snapshot failing. Please help.
Thanks Shashank
On Tue, Feb 4, 2020 at 8:54 PM Benny Zlotnik <bzlotnik@redhat.com> wrote:
Is the VM running? Can you remove it when the VM is down? Can you find the reason for illegal status in the logs?
On Tue, Feb 4, 2020 at 5:06 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hey Guys,
Any help on it ?
Thanks
On Tue, Feb 4, 2020 at 4:04 PM Crazy Ayansh < shashank123rastogi@gmail.com> wrote:
Hi Team,
I am trying to delete a old snapshot of a virtual machine and getting below error :-
failed to delete snapshot 'snapshot-ind-co-ora-02' for VM índ-co-ora-ee-02'
[image: image.png]
Thanks
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/C7OR4HQEKNJURW...

Last time I had such issue - I had to poke in the Postgres DB of the engine. I wouldn't recommend that for prod. Try to find any of the previous topics about illegal snapshot and try the steps yourself. I think that there is a script for that purpose :/usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh For details, check HelperUtilities | | | | HelperUtilities oVirt is a free open-source virtualization solution for your entire enterprise | | | Best Regards,Strahil Nikolov В вторник, 4 февруари 2020 г., 17:07:22 ч. Гринуич+2, Crazy Ayansh <shashank123rastogi@gmail.com> написа: Hey Guys, Any help on it ? Thanks On Tue, Feb 4, 2020 at 4:04 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote: Hi Team, I am trying to delete a old snapshot of a virtual machine and getting below error :- failed to delete snapshot 'snapshot-ind-co-ora-02' for VM índ-co-ora-ee-02' Thanks _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/C7OR4HQEKNJURW...

Unfortunately it is on production. Can't we get any safe fix for it. On Wed, Feb 5, 2020, 12:15 AM Strahil Nikolov <hunter86_bg@yahoo.com> wrote:
Last time I had such issue - I had to poke in the Postgres DB of the engine. I wouldn't recommend that for prod.
Try to find any of the previous topics about illegal snapshot and try the steps yourself. I think that there is a script for that purpose : /usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh
For details, check HelperUtilities <https://www.ovirt.org/develop/developer-guide/db-issues/helperutilities.html>
HelperUtilities
oVirt is a free open-source virtualization solution for your entire enterprise
<https://www.ovirt.org/develop/developer-guide/db-issues/helperutilities.html>
Best Regards, Strahil Nikolov
В вторник, 4 февруари 2020 г., 17:07:22 ч. Гринуич+2, Crazy Ayansh < shashank123rastogi@gmail.com> написа:
Hey Guys,
Any help on it ?
Thanks
On Tue, Feb 4, 2020 at 4:04 PM Crazy Ayansh <shashank123rastogi@gmail.com> wrote:
Hi Team,
I am trying to delete a old snapshot of a virtual machine and getting below error :-
failed to delete snapshot 'snapshot-ind-co-ora-02' for VM índ-co-ora-ee-02'
[image: image.png]
Thanks
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/C7OR4HQEKNJURW...
participants (5)
-
Benny Zlotnik
-
Bernadette Pfau - NOAA Affiliate
-
Crazy Ayansh
-
Jayme
-
Strahil Nikolov