[ovirt-users] unlock_entity.sh oVirt 4.2
Hi, i have a VM on oVirt 4.2 which is locked after a snapshot revert. i unlocked the disk/snapshot and vm with unlock_entity.sh it now shows no locks /usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh -t all -q Locked VMs: Locked templates: Locked disks: Locked snapshots: But the VM still shows "Image Locked" How can I unlock them? Thx Christian ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] unlock_entity.sh
On Tue, Oct 24, 2017 at 1:47 PM, Johan Vermeulen wrote: > Nicolas, > > thank you very much for the very swift reply. > I was able to remove the locked vm's with that command. > > Greetings, J. > > 2017-10-24 12:29 GMT+02:00 : >> >> Hi, >> >> Not sure if this is the only one way, but this works for us (run as root): >> >> PGPASSWORD=... /usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh -t >> all -u engine >> >> Note that unlock_entity.sh has many flags and this is just an example. >> >> You can find the PGPASSWORD value in the >> /etc/ovirt-engine/engine.conf.d/10-setup-database.conf file. >> >> As to where can you find the disk ID, I usually use either the Python-SDK >> or from within the admin UI, you can go to the Disks tab and find the disk >> you're looking for. Simply click on it and you'll see the ID string easily. Also you might want to note that in 4.2 you'll not need to pass the credentials anymore: https://gerrit.ovirt.org/82615 >> >> Regards, >> >> Nicolás >> >> El 2017-10-24 11:18, Johan Vermeulen escribió: >>> >>> Hello All, >>> >>> first of all, I hope this question is not too trivial or hasn't been >>> asked lately >>> ( but i scrolled down the mailing list and didn't find anything >>> similar, so...) >>> >>> I have a lot of trouble with locked disks when trying to remove vm's. >>> I know there's the unlock_entity script but cannot get it to work. >>> >>> Where can I find a copy-paste-able uuid nr of the disk? >>> It prompts me for a database password. Is this something I should have >>> created when setting up Ovirt? >>> >>> Can anyone give me an example of a complete unlock entity command? >>> >>> Many thanks for any help. >>> >>> greetings, J. >>> >>> >>> ___ >>> Users mailing list >>> Users@ovirt.org >>> http://lists.ovirt.org/mailman/listinfo/users >> >> ___ >> Users mailing list >> Users@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/users > > > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > -- Didi ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] unlock_entity.sh
Nicolas, thank you very much for the very swift reply. I was able to remove the locked vm's with that command. Greetings, J. 2017-10-24 12:29 GMT+02:00 : > Hi, > > Not sure if this is the only one way, but this works for us (run as root): > > PGPASSWORD=... /usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh > -t all -u engine > > Note that unlock_entity.sh has many flags and this is just an example. > > You can find the PGPASSWORD value in the > /etc/ovirt-engine/engine.conf.d/10-setup-database.conf > file. > > As to where can you find the disk ID, I usually use either the Python-SDK > or from within the admin UI, you can go to the Disks tab and find the disk > you're looking for. Simply click on it and you'll see the ID string easily. > > Regards, > > Nicolás > > El 2017-10-24 11:18, Johan Vermeulen escribió: > >> Hello All, >> >> first of all, I hope this question is not too trivial or hasn't been >> asked lately >> ( but i scrolled down the mailing list and didn't find anything >> similar, so...) >> >> I have a lot of trouble with locked disks when trying to remove vm's. >> I know there's the unlock_entity script but cannot get it to work. >> >> Where can I find a copy-paste-able uuid nr of the disk? >> It prompts me for a database password. Is this something I should have >> created when setting up Ovirt? >> >> Can anyone give me an example of a complete unlock entity command? >> >> Many thanks for any help. >> >> greetings, J. >> >> >> ___ >> Users mailing list >> Users@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/users >> > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] unlock_entity.sh
Hi, Not sure if this is the only one way, but this works for us (run as root): PGPASSWORD=... /usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh -t all -u engine Note that unlock_entity.sh has many flags and this is just an example. You can find the PGPASSWORD value in the /etc/ovirt-engine/engine.conf.d/10-setup-database.conf file. As to where can you find the disk ID, I usually use either the Python-SDK or from within the admin UI, you can go to the Disks tab and find the disk you're looking for. Simply click on it and you'll see the ID string easily. Regards, Nicolás El 2017-10-24 11:18, Johan Vermeulen escribió: Hello All, first of all, I hope this question is not too trivial or hasn't been asked lately ( but i scrolled down the mailing list and didn't find anything similar, so...) I have a lot of trouble with locked disks when trying to remove vm's. I know there's the unlock_entity script but cannot get it to work. Where can I find a copy-paste-able uuid nr of the disk? It prompts me for a database password. Is this something I should have created when setting up Ovirt? Can anyone give me an example of a complete unlock entity command? Many thanks for any help. greetings, J. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] unlock_entity.sh
Hello All, first of all, I hope this question is not too trivial or hasn't been asked lately ( but i scrolled down the mailing list and didn't find anything similar, so...) I have a lot of trouble with locked disks when trying to remove vm's. I know there's the unlock_entity script but cannot get it to work. Where can I find a copy-paste-able uuid nr of the disk? It prompts me for a database password. Is this something I should have created when setting up Ovirt? Can anyone give me an example of a complete unlock entity command? Many thanks for any help. greetings, J. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users