Orphaned record in the engine DB prevents host removal

Hello People: I am trying to remove a host from ovirt-engine but I have found that a orphaned record in the engine DB prevents the removal of the host. The host is in maintenance mode, it doesn't have vm's running on it. The engine logs says that there is a reference to the id of the host (vds_id in the table vds_static) in the field "migrating_to_vds" in the table "dynamic_vds". Obviously this is a orphaned record, but a constraint in the table "dynamic_vds" prevents the removal of the host. How can I solve this? Someone that knows the internals of engine's DB that can confirm if I can remove the problematic registry in order to remove the host?? Another solution? I really need to remove this host. Please help and Thanks!

Is there a migration of this VM in progress? Did it migrate recently? I suggest to attach the engine log here as well, if possible, for examination. Cc-ing some guys that might help but bare in mind that for some of them it is already weekend. Oved On Jul 4, 2014 6:07 PM, Federico Alberto Sayd <fsayd@uncu.edu.ar> wrote:
Hello People:
I am trying to remove a host from ovirt-engine but I have fouHello People:
I am trying to remove a host from ovirt-engine but I have found that a orphaned record in the engine DB prevents the removal of the host. The host is in maintenance mode, it doesn't have vm's running on it. The engine logs says that there is a reference to the id of the host (vds_id in the table vds_static) in the field "migrating_to_vds" in the table "dynamic_vds". Obviously this is a orphaned record, but a constraint in the table "dynamic_vds" prevents the removal of the host. How can I solve this? Someone that knows the internals of engine's DB that can confirm if I can remove the problematic registry in order to remove the host?? Another solution? I really need to remove this host. Please help and Thanks! _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 04/07/14 14:45, Oved Ourfali wrote:
Is there a migration of this VM in progress? Did it migrate recently? Thank you Oved, I have already solved the problem, I have posted the solution to the list.
However I don't understand how the data is recorded in the table "vm_dyanmic". I guess that in this table the engine records the current status data of the vm's in the datacenter. In my engine DB almost all the registries in the "vm_dynamic" table have a vm id in the "migrating_to_vds" field, this id is the same in the "run_on_vds" field. Is it right that the "migrating_to_vds" field have a value after the vm has been migrated?? My setup: oVirt Engine Version: 3.4.0-1.el6 Nodes (vds's, hosts, etc.): Centos 6.5 ovirt-node 3.4, vdsm-4.14.6-0.el6 Thank you, and happy weekend! Federico
I suggest to attach the engine log here as well, if possible, for examination. Cc-ing some guys that might help but bare in mind that for some of them it is already weekend.
Oved
Hello People:
I am trying to remove a host from ovirt-engine but I have fouHello People: I am trying to remove a host from ovirt-engine but I have found that a orphaned record in the engine DB prevents the removal of the host. The host is in maintenance mode, it doesn't have vm's running on it. The engine logs says that there is a reference to the id of the host (vds_id in the table vds_static) in the field "migrating_to_vds" in the
On Jul 4, 2014 6:07 PM, Federico Alberto Sayd <fsayd@uncu.edu.ar> wrote: table "dynamic_vds". Obviously this is a orphaned record, but a constraint in the table "dynamic_vds" prevents the removal of the host. How can I solve this? Someone that knows the internals of engine's DB that can confirm if I can remove the problematic registry in order to remove the host?? Another solution?
I really need to remove this host. Please help and
Thanks! _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi Federico, If we are to debug this issue engine.log should be helpful, as Oved suggested. Please attach it if you still have it. Vered ----- Original Message -----
From: "Federico Alberto Sayd" <fsayd@uncu.edu.ar> To: "Oved Ourfali" <oourfali@redhat.com> Cc: "Arik Hadas" <ahadas@redhat.com>, "users" <users@ovirt.org>, "Michal Skrivanek" <mskrivan@redhat.com> Sent: Friday, July 4, 2014 11:56:18 PM Subject: Re: [ovirt-users] Orphaned record in the engine DB prevents host removal
On 04/07/14 14:45, Oved Ourfali wrote:
Is there a migration of this VM in progress? Did it migrate recently? Thank you Oved, I have already solved the problem, I have posted the solution to the list.
However I don't understand how the data is recorded in the table "vm_dyanmic".
I guess that in this table the engine records the current status data of the vm's in the datacenter. In my engine DB almost all the registries in the "vm_dynamic" table have a vm id in the "migrating_to_vds" field, this id is the same in the "run_on_vds" field.
Is it right that the "migrating_to_vds" field have a value after the vm has been migrated??
My setup:
oVirt Engine Version: 3.4.0-1.el6 Nodes (vds's, hosts, etc.): Centos 6.5 ovirt-node 3.4, vdsm-4.14.6-0.el6
Thank you, and happy weekend!
Federico
I suggest to attach the engine log here as well, if possible, for examination. Cc-ing some guys that might help but bare in mind that for some of them it is already weekend.
Oved
Hello People:
I am trying to remove a host from ovirt-engine but I have fouHello People: I am trying to remove a host from ovirt-engine but I have found that a orphaned record in the engine DB prevents the removal of the host. The host is in maintenance mode, it doesn't have vm's running on it. The engine logs says that there is a reference to the id of the host (vds_id in the table vds_static) in the field "migrating_to_vds" in the
On Jul 4, 2014 6:07 PM, Federico Alberto Sayd <fsayd@uncu.edu.ar> wrote: table "dynamic_vds". Obviously this is a orphaned record, but a constraint in the table "dynamic_vds" prevents the removal of the host. How can I solve this? Someone that knows the internals of engine's DB that can confirm if I can remove the problematic registry in order to remove the host?? Another solution?
I really need to remove this host. Please help and
Thanks! _______________________________________________ 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

----- Original Message -----
On 04/07/14 14:45, Oved Ourfali wrote:
Is there a migration of this VM in progress? Did it migrate recently? Thank you Oved, I have already solved the problem, I have posted the solution to the list.
However I don't understand how the data is recorded in the table "vm_dyanmic".
I guess that in this table the engine records the current status data of the vm's in the datacenter. In my engine DB almost all the registries in the "vm_dynamic" table have a vm id in the "migrating_to_vds" field, this id is the same in the "run_on_vds" field.
Is it right that the "migrating_to_vds" field have a value after the vm has been migrated??
Yes, we're about to fix it. Note that there is an open bug for this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1112359 If you will be able to provide the info I've asked for there, it could help us to solve it faster :) Arik
My setup:
oVirt Engine Version: 3.4.0-1.el6 Nodes (vds's, hosts, etc.): Centos 6.5 ovirt-node 3.4, vdsm-4.14.6-0.el6
Thank you, and happy weekend!
Federico
I suggest to attach the engine log here as well, if possible, for examination. Cc-ing some guys that might help but bare in mind that for some of them it is already weekend.
Oved
Hello People:
I am trying to remove a host from ovirt-engine but I have fouHello People: I am trying to remove a host from ovirt-engine but I have found that a orphaned record in the engine DB prevents the removal of the host. The host is in maintenance mode, it doesn't have vm's running on it. The engine logs says that there is a reference to the id of the host (vds_id in the table vds_static) in the field "migrating_to_vds" in the
On Jul 4, 2014 6:07 PM, Federico Alberto Sayd <fsayd@uncu.edu.ar> wrote: table "dynamic_vds". Obviously this is a orphaned record, but a constraint in the table "dynamic_vds" prevents the removal of the host. How can I solve this? Someone that knows the internals of engine's DB that can confirm if I can remove the problematic registry in order to remove the host?? Another solution?
I really need to remove this host. Please help and
Thanks! _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

------=_=-_OpenGroupware_org_NGMime-3187-1404830461.613421-22------ content-type: text/html; charset=utf-8 content-length: 3748 content-transfer-encoding: 7bit <br /><br />El Domingo, 6 de Julio de 2014 07.06 CLT, Arik Hadas <ahadas@redhat.com> Ha escrito:<br /> <blockquote><br /><br />----- Original Message -----<br />> On 04/07/14 14:45, Oved Ourfali wrote:<br />> > Is there a migration of this VM in progress? Did it migrate recently?<br />> Thank you Oved, I have already solved the problem, I have posted the<br />> solution to the list.<br />><br />> However I don't understand how the data is recorded in the table<br />> "vm_dyanmic".<br />><br />> I guess that in this table the engine records the current status data of<br />> the vm's in the datacenter. In my engine DB almost all the registries in<br />> the "vm_dynamic" table have a vm id in the "migrating_to_vds" field,<br />> this id is the same in the "run_on_vds" field.<br />><br />> Is it right that the "migrating_to_vds" field have a value after the vm<br />&g t; has been migrated??<br /><br />Yes, we're about to fix it.<br /><br />Note that there is an open bug for this issue:<br />https://bugzilla.redhat.com/show_bug.cgi?id=1112359<br />If you will be able to provide the info I've asked for there,<br />it could help us to solve it faster :)<br /><br />Arik<br /><br />><br />> My setup:<br />><br />> oVirt Engine Version: 3.4.0-1.el6<br />> Nodes (vds's, hosts, etc.): Centos 6.5 ovirt-node 3.4, vdsm-4.14.6-0.el6<br />><br />> Thank you, and happy weekend!<br />><br />> Federico<br />> > I suggest to attach the engine log here as well, if possible, for<br />> > examination. Cc-ing some guys that might help but bare in mind that for<br />> > some of them it is already weekend.<br />> ><br />> > Oved<br />> ><br />> > On Jul 4, 2014 6:07 PM, Federico Alberto Sayd wrote:<br />> >> Hello People:<br />> >><br />> >> I am trying t o remove a host from ovirt-engine but I have fouHello People:<br />> > I am trying to remove a host from ovirt-engine but I have found that a<br />> > orphaned record in the engine DB prevents the removal of the host.<br />> > The host is in maintenance mode, it doesn't have vm's running on it.<br />> > The engine logs says that there is a reference to the id of the host<br />> > (vds_id in the table vds_static) in the field "migrating_to_vds" in the<br />> > table "dynamic_vds". Obviously this is a orphaned record, but a<br />> > constraint in the table "dynamic_vds" prevents the removal of the host.<br />> > How can I solve this?<br />> > Someone that knows the internals of engine's DB that can confirm if I<br />> > can remove the problematic registry in order to remove the host??<br />> > Another solution?<br />> ><br />> > I really need to remove this h ost. Please help and<br />> ><br />> > Thanks!<br />> > _______________________________________________<br />> > Users mailing list<br />> > Users@ovirt.org<br />> > http://lists.ovirt.org/mailman/listinfo/user</blockquote><br />Indeed, you are right, is the same bug. I didn't find this bug when googled the problem. I have attached an extract of the logs when I tried to remove the host, it looks identical to the logs reported in the bug except that postgres transactions are logged in Spanish.<br />I will try to find the log entry when the vm was migrated and the value was not correctly updated in the "migrating_to_vds" field. I think that that is the more critical bug.<br /><br />Thank you<br /><br />Federico<br /> ------=_=-_OpenGroupware_org_NGMime-3187-1404830461.613421-22------ content-type: text/x-log content-transfer-encoding: base64 content-length: 13736 content-disposition: attachment; filename="engine.log" OiBmYWxzZS4gRW50aXRpZXMgYWZmZWN0ZWQgOiAgSUQ6IGMyMTJjMGE5LWE3ODQtNDk1OC1i YWQxLWViM2E5NWI4YzlkYSBUeXBlOiBWRFMKMjAxNC0wNy0wMyAxNjoxNDo1OSw3NjggSU5G TyAgW29yZy5vdmlydC5lbmdpbmUuY29yZS52ZHNicm9rZXIuU2V0VmRzU3RhdHVzVkRTQ29t bWFuZF0gKG9yZy5vdmlydC50aHJlYWQucG9vbC02LXRocmVhZC0xOCkgWzQ4ZWM4MDdiXSBT VEFSVCwgU2V0VmRzU3RhdHVzVkRTQ29tbWFuZChIb3N0TmFtZSA9IG92LW5vZG8yLCBIb3N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hdGlvbiBJRDogN2YzMTM5YzcsIENh bGwgU3RhY2s6IG51bGwsIEN1c3RvbSBFdmVudCBJRDogLTEsIE1lc3NhZ2U6IEZhaWxlZCB0 byByZW1vdmUgSG9zdCBvdi1ub2RvMiAoVXNlcjogZnNheWQpLgoyMDE0LTA3LTAzIDE2OjE1 OjA1LDUxNCBJTkZPICBbb3JnLm92aXJ0LmVuZ2luZS5jb3JlLmJsbC5SZW1vdmVWZHNDb21t YW5kXSAob3JnLm92aXJ0LnRocmVhZC5wb29sLTYtdGhyZWFkLTIxKSBbN2YzMTM5YzddIExv Y2sgZnJlZWQgdG8gb2JqZWN0IEVuZ2luZUxvY2sgW2V4Y2x1c2l2ZUxvY2tzPSBrZXk6IGMy MTJjMGE5LWE3ODQtNDk1OC1iYWQxLWViM2E5NWI4YzlkYSB2YWx1ZTogVkRTCiwgc2hhcmVk TG9ja3M9IF0= ------=_=-_OpenGroupware_org_NGMime-3187-1404830461.613421-22--------

----- Original Message -----
El Domingo, 6 de Julio de 2014 07.06 CLT, Arik Hadas <ahadas@redhat.com> Ha escrito:
----- Original Message -----
On 04/07/14 14:45, Oved Ourfali wrote:
Is there a migration of this VM in progress? Did it migrate recently? Thank you Oved, I have already solved the problem, I have posted the solution to the list.
However I don't understand how the data is recorded in the table "vm_dyanmic".
I guess that in this table the engine records the current status data of the vm's in the datacenter. In my engine DB almost all the registries in the "vm_dynamic" table have a vm id in the "migrating_to_vds" field, this id is the same in the "run_on_vds" field.
Is it right that the "migrating_to_vds" field have a value after the vm &g t; has been migrated??
Yes, we're about to fix it.
Note that there is an open bug for this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1112359 If you will be able to provide the info I've asked for there, it could help us to solve it faster :)
Arik
My setup:
oVirt Engine Version: 3.4.0-1.el6 Nodes (vds's, hosts, etc.): Centos 6.5 ovirt-node 3.4, vdsm-4.14.6-0.el6
Thank you, and happy weekend!
Federico
I suggest to attach the engine log here as well, if possible, for examination. Cc-ing some guys that might help but bare in mind that for some of them it is already weekend.
Oved
Hello People:
I am trying t o remove a host from ovirt-engine but I have fouHello People: I am trying to remove a host from ovirt-engine but I have found that a orphaned record in the engine DB prevents the removal of the host. The host is in maintenance mode, it doesn't have vm's running on it. The engine logs says that there is a reference to the id of the host (vds_id in the table vds_static) in the field "migrating_to_vds" in the
On Jul 4, 2014 6:07 PM, Federico Alberto Sayd wrote: table "dynamic_vds". Obviously this is a orphaned record, but a constraint in the table "dynamic_vds" prevents the removal of the host. How can I solve this? Someone that knows the internals of engine's DB that can confirm if I can remove the problematic registry in order to remove the host?? Another solution?
I really need to remove this h ost. Please help and
Thanks! _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/user
Indeed, you are right, is the same bug. I didn't find this bug when googled the problem. I have attached an extract of the logs when I tried to remove the host, it looks identical to the logs reported in the bug except that postgres transactions are logged in Spanish.
Thanks
I will try to find the log entry when the vm was migrated and the value was not correctly updated in the "migrating_to_vds" field. I think that that is the more critical bug.
I was able to reproduce it on 3.4 branch and to understand the problem. On master it was fixed by: http://gerrit.ovirt.org/#/c/24799/ I'll backport this patch and it will solve it on 3.4 as well.
Thank you
Federico

On 04/07/14 12:07, Federico Alberto Sayd wrote:
Hello People:
I am trying to remove a host from ovirt-engine but I have found that a orphaned record in the engine DB prevents the removal of the host. The host is in maintenance mode, it doesn't have vm's running on it. The engine logs says that there is a reference to the id of the host (vds_id in the table vds_static) in the field "migrating_to_vds" in the table "dynamic_vds". Obviously this is a orphaned record, but a constraint in the table "dynamic_vds" prevents the removal of the host. How can I solve this? Someone that knows the internals of engine's DB that can confirm if I can remove the problematic registry in order to remove the host?? Another solution?
I really need to remove this host. Please help and
Thanks! _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Well, I solved the problem of host removal, some of reverse engineering over the DB structure and I can solve the problem. For any reason that I don't know, I migrated a vm from a host to other host in the cluster, but in the table vm_dynamic that apparently contains the dynamic values of vm's, the field "migrating_to_vds" was not updated and still held the id of the vds (node, hypervisor, host, etc.) which was migrated from. Same host that I had put in maintenance in order to remove it. I guess that the right behaviour is update the "migrating_to_vds" field with the vm_guid of the vds (node, hypervisor) to which the vm is being migrated. But, I don't know what was wrong when the vm was migrated and therefore the value was not updated. Simply I took the vds id from the error in engine.log, searched in the vd_dynamic table a row with this value in the field "migrating_to_vds" then I retrieved from the same row the value of the vm id from the field "vm_guid", then I searched in the table "vd_static" the name of the vm with such vm_guid. Then from the engine interface I migrated again this vm and the value in the field "migrating_to_vds" was correctly updated with the guid of the destination host. Then, the engine doesn't complaint anymore and I could remove the host. The question is, why did not the migration update the value of "migrating_to_vds" field in the table vm_dynamic or did incorrectly update it?? Sorry if you don't understand all above, I don't write very well in English, and it is a bit painful to try to explain this situation in other language..! Regards Federico
participants (5)
-
Arik Hadas
-
Federico Alberto Sayd
-
Federico Sayd
-
Oved Ourfali
-
Vered Volansky