Migrating to a Hosted Engine does not work as expected. Cluster name/id problem?

Hi, I've been trying for sometime to migrate from a bare metal to a hosted engine. Failed about 6-7 times now. Facts: - Ovirt Engine version is 3.4 - 6 hosts on a cluster named "MYCLUSTER", Westmere CPU Type - About 50 VM's on "MYCLUSTER" cluster. - NFS Storage domain - Cluster "Default" is empty: no hosts, no VM's, only the "Blank" template (I didn't know I could just rename it when I deployed it) The first times I tried to deploy it, the hosted-engine VM and host ended up in the "Default" cluster. So I renamed the "Default" cluster "Default1" and then "MYCLUSTER" to "Default" using the web gu on the bare metal manager, prior to generating the backup I later restored on the hosted one. This time, the host was correctly added to "Default" together with the other hosts and VM's, but the hosted engine VM was added to the "Default1" cluster. I'm then left with: - a HostedEngine VM which looks down on the engine, even though I'm looking at the web-gui running on it. - a host that shows 1 vm running on it, but have no Vm's listed - trying to do anything with the HostedEngine Vm on the web-gui issues "VM is not managed by this engine" error - trying to move it to the "Default" cluster shows the same error I then decided to take a look at the engine DB and tried to alter tables vm_static and vm_dynamic to reflect the correct cluster (vds_group_id) and host configuration, but that did not work (I didn't have a lot of hope anyway). I'm now back to a working bare metal engine. Is there a way to go around this problem? -- Gustavo Campos

----- Original Message -----
From: "Gustavo Campos" <guhcampos@gmail.com> To: users@ovirt.org Sent: Thursday, April 23, 2015 10:41:52 PM Subject: [ovirt-users] Migrating to a Hosted Engine does not work as expected. Cluster name/id problem?
Hi,
I've been trying for sometime to migrate from a bare metal to a hosted engine. Failed about 6-7 times now.
Facts:
- Ovirt Engine version is 3.4 - 6 hosts on a cluster named "MYCLUSTER", Westmere CPU Type - About 50 VM's on "MYCLUSTER" cluster. - NFS Storage domain - Cluster "Default" is empty: no hosts, no VM's, only the "Blank" template (I didn't know I could just rename it when I deployed it)
The first times I tried to deploy it, the hosted-engine VM and host ended up in the "Default" cluster. So I renamed the "Default" cluster "Default1" and then "MYCLUSTER" to "Default" using the web gu on the bare metal manager, prior to generating the backup I later restored on the hosted one.
Could you please share your hosted-engine setup logs?
This time, the host was correctly added to "Default" together with the other hosts and VM's, but the hosted engine VM was added to the "Default1" cluster.
I'm then left with:
- a HostedEngine VM which looks down on the engine, even though I'm looking at the web-gui running on it. - a host that shows 1 vm running on it, but have no Vm's listed
These two are weird.
- trying to do anything with the HostedEngine Vm on the web-gui issues "VM is not managed by this engine" error
This one is attended, you'll be able to customize engine VM from webadmin interface only since the next oVirt 3.6
- trying to move it to the "Default" cluster shows the same error
The same.
I then decided to take a look at the engine DB and tried to alter tables vm_static and vm_dynamic to reflect the correct cluster (vds_group_id) and host configuration, but that did not work (I didn't have a lot of hope anyway).
I'm now back to a working bare metal engine. Is there a way to go around this problem?
-- Gustavo Campos _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi Simone, thanks for the tips! Neither the ovirt or Red Hat docs mentioned (or quite possibly I missed it) exactly what I should expect from the working hosted engine, so I was a bit confused. Good to know 3.6 will bring those! The last attempt log is attached. I don't have all the logs from previous tries anymore, sorry =( Again about the docs: I believe I will request a wiki editor account if you guys are accepting. I noted a few points of confusion where I had to do a lot of guess work - an example is the storage domain for the hosted engine, it took me quite a bit of guessing to find out it was a separate domain =D -- Gustavo Campos Ferreira Guimarães "Anyone who has the power to make you believe absurdities has the power to make you commit injustices." Voltaire On Fri, Apr 24, 2015 at 6:01 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
----- Original Message -----
From: "Gustavo Campos" <guhcampos@gmail.com> To: users@ovirt.org Sent: Thursday, April 23, 2015 10:41:52 PM Subject: [ovirt-users] Migrating to a Hosted Engine does not work as expected. Cluster name/id problem?
Hi,
I've been trying for sometime to migrate from a bare metal to a hosted engine. Failed about 6-7 times now.
Facts:
- Ovirt Engine version is 3.4 - 6 hosts on a cluster named "MYCLUSTER", Westmere CPU Type - About 50 VM's on "MYCLUSTER" cluster. - NFS Storage domain - Cluster "Default" is empty: no hosts, no VM's, only the "Blank" template (I didn't know I could just rename it when I deployed it)
The first times I tried to deploy it, the hosted-engine VM and host ended up in the "Default" cluster. So I renamed the "Default" cluster "Default1" and then "MYCLUSTER" to "Default" using the web gu on the bare metal manager, prior to generating the backup I later restored on the hosted one.
Could you please share your hosted-engine setup logs?
This time, the host was correctly added to "Default" together with the other hosts and VM's, but the hosted engine VM was added to the "Default1" cluster.
I'm then left with:
- a HostedEngine VM which looks down on the engine, even though I'm looking at the web-gui running on it. - a host that shows 1 vm running on it, but have no Vm's listed
These two are weird.
- trying to do anything with the HostedEngine Vm on the web-gui issues "VM is not managed by this engine" error
This one is attended, you'll be able to customize engine VM from webadmin interface only since the next oVirt 3.6
- trying to move it to the "Default" cluster shows the same error
The same.
I then decided to take a look at the engine DB and tried to alter tables vm_static and vm_dynamic to reflect the correct cluster (vds_group_id) and host configuration, but that did not work (I didn't have a lot of hope anyway).
I'm now back to a working bare metal engine. Is there a way to go around this problem?
-- Gustavo Campos _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

----- Original Message -----
From: "Gustavo Campos" <guhcampos@gmail.com> To: "Simone Tiraboschi" <stirabos@redhat.com> Cc: users@ovirt.org Sent: Friday, April 24, 2015 6:13:53 PM Subject: Re: [ovirt-users] Migrating to a Hosted Engine does not work as expected. Cluster name/id problem?
Hi Simone, thanks for the tips!
Neither the ovirt or Red Hat docs mentioned (or quite possibly I missed it) exactly what I should expect from the working hosted engine, so I was a bit confused. Good to know 3.6 will bring those!
The last attempt log is attached. I don't have all the logs from previous tries anymore, sorry =(
The issue seams to be there: 2015-04-23 15:53:27 ERROR otopi.plugins.ovirt_hosted_engine_setup.engine.add_host add_host._wait_host_ready:239 Timed out while waiting for host to start. Please check the logs. 2015-04-23 15:53:27 ERROR otopi.plugins.ovirt_hosted_engine_setup.engine.add_host add_host._closeup:458 Unable to add srv-rhevbh-no01 to the manager Your engine VM wasn't able to deploy the host. Could you please check host-deploy logs on the engine VM? Was that VM able to resolve and connect to srv-rhevbh-no01?
Again about the docs: I believe I will request a wiki editor account if you guys are accepting. I noted a few points of confusion where I had to do a lot of guess work - an example is the storage domain for the hosted engine, it took me quite a bit of guessing to find out it was a separate domain =D
Yes, any contribution is welcome!
-- Gustavo Campos Ferreira Guimarães
"Anyone who has the power to make you believe absurdities has the power to make you commit injustices." Voltaire
On Fri, Apr 24, 2015 at 6:01 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
----- Original Message -----
From: "Gustavo Campos" <guhcampos@gmail.com> To: users@ovirt.org Sent: Thursday, April 23, 2015 10:41:52 PM Subject: [ovirt-users] Migrating to a Hosted Engine does not work as expected. Cluster name/id problem?
Hi,
I've been trying for sometime to migrate from a bare metal to a hosted engine. Failed about 6-7 times now.
Facts:
- Ovirt Engine version is 3.4 - 6 hosts on a cluster named "MYCLUSTER", Westmere CPU Type - About 50 VM's on "MYCLUSTER" cluster. - NFS Storage domain - Cluster "Default" is empty: no hosts, no VM's, only the "Blank" template (I didn't know I could just rename it when I deployed it)
The first times I tried to deploy it, the hosted-engine VM and host ended up in the "Default" cluster. So I renamed the "Default" cluster "Default1" and then "MYCLUSTER" to "Default" using the web gu on the bare metal manager, prior to generating the backup I later restored on the hosted one.
Could you please share your hosted-engine setup logs?
This time, the host was correctly added to "Default" together with the other hosts and VM's, but the hosted engine VM was added to the "Default1" cluster.
I'm then left with:
- a HostedEngine VM which looks down on the engine, even though I'm looking at the web-gui running on it. - a host that shows 1 vm running on it, but have no Vm's listed
These two are weird.
- trying to do anything with the HostedEngine Vm on the web-gui issues "VM is not managed by this engine" error
This one is attended, you'll be able to customize engine VM from webadmin interface only since the next oVirt 3.6
- trying to move it to the "Default" cluster shows the same error
The same.
I then decided to take a look at the engine DB and tried to alter tables vm_static and vm_dynamic to reflect the correct cluster (vds_group_id) and host configuration, but that did not work (I didn't have a lot of hope anyway).
I'm now back to a working bare metal engine. Is there a way to go around this problem?
-- Gustavo Campos _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------070400070601090003090002 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit On 04/24/2015 07:13 PM, Gustavo Campos wrote:
Hi Simone, thanks for the tips!
Neither the ovirt or Red Hat docs mentioned (or quite possibly I missed it) exactly what I should expect from the working hosted engine, so I was a bit confused. Good to know 3.6 will bring those!
Hi Gustavo, after you'll succeed with the migration to hosted engine (we're here to help) maybe you'd be interested in 3.6 feature page for hosted engine management [1] [1] http://www.ovirt.org/Hosted_engine_VM_management
The last attempt log is attached. I don't have all the logs from previous tries anymore, sorry =(
Again about the docs: I believe I will request a wiki editor account if you guys are accepting. I noted a few points of confusion where I had to do a lot of guess work - an example is the storage domain for the hosted engine, it took me quite a bit of guessing to find out it was a separate domain =D
-- Gustavo Campos Ferreira Guimarães
"Anyone who has the power to make you believe absurdities has the power to make you commit injustices." Voltaire
On Fri, Apr 24, 2015 at 6:01 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
----- Original Message -----
From: "Gustavo Campos" <guhcampos@gmail.com> To: users@ovirt.org Sent: Thursday, April 23, 2015 10:41:52 PM Subject: [ovirt-users] Migrating to a Hosted Engine does not work as expected. Cluster name/id problem?
Hi,
I've been trying for sometime to migrate from a bare metal to a hosted engine. Failed about 6-7 times now.
Facts:
- Ovirt Engine version is 3.4 - 6 hosts on a cluster named "MYCLUSTER", Westmere CPU Type - About 50 VM's on "MYCLUSTER" cluster. - NFS Storage domain - Cluster "Default" is empty: no hosts, no VM's, only the "Blank" template (I didn't know I could just rename it when I deployed it)
The first times I tried to deploy it, the hosted-engine VM and host ended up in the "Default" cluster. So I renamed the "Default" cluster "Default1" and then "MYCLUSTER" to "Default" using the web gu on the bare metal manager, prior to generating the backup I later restored on the hosted one. Could you please share your hosted-engine setup logs?
This time, the host was correctly added to "Default" together with the other hosts and VM's, but the hosted engine VM was added to the "Default1" cluster.
I'm then left with:
- a HostedEngine VM which looks down on the engine, even though I'm looking at the web-gui running on it. - a host that shows 1 vm running on it, but have no Vm's listed
I guess you'll find errors in ovirt-engine log saying it failed adding that vm. grep AddVm from /var/log/ovirt-engine/engine.log
These two are weird.
- trying to do anything with the HostedEngine Vm on the web-gui issues "VM is not managed by this engine" error
that's expected. btw what actions did you try to do? or interested in doing?
This one is attended, you'll be able to customize engine VM from webadmin interface only since the next oVirt 3.6
- trying to move it to the "Default" cluster shows the same error
I think you can try to live-migrate it another cluster (am not sure what version that is supported from though...) configure a hosted-engine capable host on the DEFAULT cluster and try to right click migrate the vm to that host.
The same.
I then decided to take a look at the engine DB and tried to alter tables vm_static and vm_dynamic to reflect the correct cluster (vds_group_id) and host configuration, but that did not work (I didn't have a lot of hope anyway). lets leave the db as last resort for now and hope the logs will reveal more.
I'm now back to a working bare metal engine. Is there a way to go around this problem?
-- Gustavo Campos _______________________________________________ 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
--------------070400070601090003090002 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit <html> <head> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#FFFFFF"> <div class="moz-cite-prefix">On 04/24/2015 07:13 PM, Gustavo Campos wrote:<br> </div> <blockquote cite="mid:CAFOrcoGNJuFdbjZtCRPrPHWvaHreWaZLim6QVBwWaHE7Tik4PQ@mail.gmail.com" type="cite"> <pre wrap="">Hi Simone, thanks for the tips! Neither the ovirt or Red Hat docs mentioned (or quite possibly I missed it) exactly what I should expect from the working hosted engine, so I was a bit confused. Good to know 3.6 will bring those!</pre> </blockquote> <br> Hi Gustavo, after you'll succeed with the migration to hosted engine (we're here to help) maybe you'd be interested in 3.6 feature page for hosted engine management [1]<br> <br> [1] <a class="moz-txt-link-freetext" href="http://www.ovirt.org/Hosted_engine_VM_management">http://www.ovirt.org/Hosted_engine_VM_management</a><br> <br> <blockquote cite="mid:CAFOrcoGNJuFdbjZtCRPrPHWvaHreWaZLim6QVBwWaHE7Tik4PQ@mail.gmail.com" type="cite"> <pre wrap=""> The last attempt log is attached. I don't have all the logs from previous tries anymore, sorry =( Again about the docs: I believe I will request a wiki editor account if you guys are accepting. I noted a few points of confusion where I had to do a lot of guess work - an example is the storage domain for the hosted engine, it took me quite a bit of guessing to find out it was a separate domain =D -- Gustavo Campos Ferreira Guimarães "Anyone who has the power to make you believe absurdities has the power to make you commit injustices." Voltaire On Fri, Apr 24, 2015 at 6:01 AM, Simone Tiraboschi <a class="moz-txt-link-rfc2396E" href="mailto:stirabos@redhat.com"><stirabos@redhat.com></a> wrote: </pre> <blockquote type="cite"> <pre wrap=""> ----- Original Message ----- </pre> <blockquote type="cite"> <pre wrap="">From: "Gustavo Campos" <a class="moz-txt-link-rfc2396E" href="mailto:guhcampos@gmail.com"><guhcampos@gmail.com></a> To: <a class="moz-txt-link-abbreviated" href="mailto:users@ovirt.org">users@ovirt.org</a> Sent: Thursday, April 23, 2015 10:41:52 PM Subject: [ovirt-users] Migrating to a Hosted Engine does not work as expected. Cluster name/id problem? Hi, I've been trying for sometime to migrate from a bare metal to a hosted engine. Failed about 6-7 times now. Facts: - Ovirt Engine version is 3.4 - 6 hosts on a cluster named "MYCLUSTER", Westmere CPU Type - About 50 VM's on "MYCLUSTER" cluster. - NFS Storage domain - Cluster "Default" is empty: no hosts, no VM's, only the "Blank" template (I didn't know I could just rename it when I deployed it) The first times I tried to deploy it, the hosted-engine VM and host ended up in the "Default" cluster. So I renamed the "Default" cluster "Default1" and then "MYCLUSTER" to "Default" using the web gu on the bare metal manager, prior to generating the backup I later restored on the hosted one. </pre> </blockquote> <pre wrap=""> Could you please share your hosted-engine setup logs? </pre> <blockquote type="cite"> <pre wrap="">This time, the host was correctly added to "Default" together with the other hosts and VM's, but the hosted engine VM was added to the "Default1" cluster. I'm then left with: - a HostedEngine VM which looks down on the engine, even though I'm looking at the web-gui running on it. - a host that shows 1 vm running on it, but have no Vm's listed </pre> </blockquote> </blockquote> </blockquote> I guess you'll find errors in ovirt-engine log saying it failed adding that vm. grep AddVm from /var/log/ovirt-engine/engine.log <br> <blockquote cite="mid:CAFOrcoGNJuFdbjZtCRPrPHWvaHreWaZLim6QVBwWaHE7Tik4PQ@mail.gmail.com" type="cite"> <blockquote type="cite"> <pre wrap=""> These two are weird. </pre> <blockquote type="cite"> <pre wrap="">- trying to do anything with the HostedEngine Vm on the web-gui issues "VM is not managed by this engine" error</pre> </blockquote> </blockquote> </blockquote> <br> that's expected. btw what actions did you try to do? or interested in doing?<br> <br> <blockquote cite="mid:CAFOrcoGNJuFdbjZtCRPrPHWvaHreWaZLim6QVBwWaHE7Tik4PQ@mail.gmail.com" type="cite"> <blockquote type="cite"> <blockquote type="cite"> <pre wrap=""> </pre> </blockquote> <pre wrap=""> This one is attended, you'll be able to customize engine VM from webadmin interface only since the next oVirt 3.6 </pre> <blockquote type="cite"> <pre wrap="">- trying to move it to the "Default" cluster shows the same error </pre> </blockquote> </blockquote> </blockquote> <br> I think you can try to live-migrate it another cluster (am not sure what version that is supported from though...) configure a hosted-engine capable host on the DEFAULT cluster and try to right click migrate the vm to that host. <br> <br> <blockquote cite="mid:CAFOrcoGNJuFdbjZtCRPrPHWvaHreWaZLim6QVBwWaHE7Tik4PQ@mail.gmail.com" type="cite"> <blockquote type="cite"> <pre wrap=""> The same. </pre> <blockquote type="cite"> <pre wrap="">I then decided to take a look at the engine DB and tried to alter tables vm_static and vm_dynamic to reflect the correct cluster (vds_group_id) and host configuration, but that did not work (I didn't have a lot of hope anyway). </pre> </blockquote> </blockquote> </blockquote> lets leave the db as last resort for now and hope the logs will reveal more.<br> <br> <br> <blockquote cite="mid:CAFOrcoGNJuFdbjZtCRPrPHWvaHreWaZLim6QVBwWaHE7Tik4PQ@mail.gmail.com" type="cite"> <blockquote type="cite"> <blockquote type="cite"> <pre wrap=""> I'm now back to a working bare metal engine. Is there a way to go around this problem? -- Gustavo Campos _______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> </blockquote> </blockquote> <br> </body> </html> --------------070400070601090003090002--
participants (3)
-
Gustavo Campos
-
Roy Golan
-
Simone Tiraboschi