questions about migrating to self-hosted engine from bare-metal

Hi, I want to migrate from a bare-metal engine to a self-hosted one. I'm following the guide at: http://www.ovirt.org/documentation/self-hosted/chap-Migrating_from_Bare_Meta... I've created a new VM with el 7.3 on the existing cluster, and used an NFS share as storage on another VM, (which does not fill up). It gets most of the way through and then mentions failing to execute 'closing_ip', and fails to start the VM: [ INFO ] Creating Image for 'hosted-engine.lockspace' ... [ INFO ] Image for 'hosted-engine.lockspace' created successfully [ INFO ] Creating Image for 'hosted-engine.metadata' ... [ INFO ] Image for 'hosted-engine.metadata' created successfully [ INFO ] Creating VM Image [ INFO ] Extracting disk image from OVF archive (could take a few minutes depending on archive size) [ INFO ] Validating pre-allocated volume size [ INFO ] Uploading volume to data domain (could take a few minutes depending on archive size) [ INFO ] Image successfully imported from OVF [ INFO ] Destroying Storage Pool [ INFO ] Start monitoring domain [ INFO ] Configuring VM [ INFO ] Updating hosted-engine configuration [ INFO ] Stage: Transaction commit [ INFO ] Stage: Closing up The following network ports should be opened: tcp:5900 tcp:5901 tcp:9090 udp:5900 udp:5901 An example of the required configuration for iptables can be found at: /etc/ovirt-hosted-engine/iptables.example In order to configure firewalld, copy the files from /etc/ovirt-hosted-engine/firewalld to /etc/firewalld/services and execute the following commands: firewall-cmd -service hosted-cockpit firewall-cmd -service hosted-console [ INFO ] Creating VM [ ERROR ] Failed to execute stage 'Closing up': The VM is not powering up: please check VDSM logs [ INFO ] Stage: Clean up [ INFO ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20170213142939.conf' [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ ERROR ] Hosted Engine deployment failed: this system is not reliable, please check the issue,fix and redeploy Log file is located at /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20170213141937-0wgc31.log In the vdsm log, it appears to be complaining about the volume not existing, but I can see it (it is on NFS) I've attached the vdsm.log and answers.conf Any help appreciated. Thanks, Cam

Hi Yaniv, Log attached. There's a bit in there where I'd tried setting the host record to point to the new host as an experiment, but I changed it back, and it still fails with the same error every time. Thanks, Cam On Mon, Feb 13, 2017 at 6:22 PM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Mon, Feb 13, 2017 at 6:26 PM, cmc <iucounu@gmail.com> wrote:
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20170213141937-0wgc31.log
Anything in the above log? Y.

On Mon, Feb 13, 2017 at 7:41 PM, cmc <iucounu@gmail.com> wrote:
Hi Yaniv,
Log attached. There's a bit in there where I'd tried setting the host record to point to the new host as an experiment, but I changed it back, and it still fails with the same error every time.
It fails due to this one: 2017-02-13 13:07:45,812 ERROR (vm/642a0b9a) [virt.vm] (vmId='642a0b9a-49fc-4ccc-8976-f6685953d0e8') The vm start process failed (vm:616) Traceback (most recent call last): File "/usr/share/vdsm/virt/vm.py", line 552, in _startUnderlyingVm self._run() File "/usr/share/vdsm/virt/vm.py", line 1994, in _run self._connection.createXML(domxml, flags), File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 123, in wrapper ret = f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 941, in wrapper return func(inst, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3782, in createXML if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm 2017-02-13 13:07:45,852 INFO (vm/642a0b9a) [virt.vm] (vmId='642a0b9a-49fc-4ccc-8976-f6685953d0e8') Changed state to Down: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm (code=1) (vm:1199) Is your CPU properly configured for virtualization? Are you running on a nested env?
Thanks,
Cam
On Mon, Feb 13, 2017 at 6:22 PM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Mon, Feb 13, 2017 at 6:26 PM, cmc <iucounu@gmail.com> wrote:
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-
setup-20170213141937-0wgc31.log
Anything in the above log? Y.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi Simone,
It fails due to this one: 2017-02-13 13:07:45,812 ERROR (vm/642a0b9a) [virt.vm] (vmId='642a0b9a-49fc-4ccc-8976-f6685953d0e8') The vm start process failed (vm:616) Traceback (most recent call last): File "/usr/share/vdsm/virt/vm.py", line 552, in _startUnderlyingVm self._run() File "/usr/share/vdsm/virt/vm.py", line 1994, in _run self._connection.createXML(domxml, flags), File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 123, in wrapper ret = f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 941, in wrapper return func(inst, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3782, in createXML if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm 2017-02-13 13:07:45,852 INFO (vm/642a0b9a) [virt.vm] (vmId='642a0b9a-49fc-4ccc-8976-f6685953d0e8') Changed state to Down: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm (code=1) (vm:1199)
Is your CPU properly configured for virtualization? Are you running on a nested env?
Yes, I assume it should be configured for virtualisation, since this VM I'm creating to replace the bare-metal engine is running on one of the two hosts that make up the cluster, and host 30 other running VMs currently. Should it not run on the same cluster perhaps? My steps are: 1. Create a VM on the cluster. Install the ovirt release rpm, install the packages ovirt-hosted-engine-setup and ovirt-engine-appliance 2. run hosted-engine --deploy ...and that is as far as I have gotten so far. Thanks, Cam
Thanks,
Cam
On Mon, Feb 13, 2017 at 6:22 PM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Mon, Feb 13, 2017 at 6:26 PM, cmc <iucounu@gmail.com> wrote:
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20170213141937-0wgc31.log
Anything in the above log? Y.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Tue, Feb 14, 2017 at 2:36 PM, cmc <iucounu@gmail.com> wrote:
Hi Simone,
It fails due to this one: 2017-02-13 13:07:45,812 ERROR (vm/642a0b9a) [virt.vm] (vmId='642a0b9a-49fc-4ccc-8976-f6685953d0e8') The vm start process failed (vm:616) Traceback (most recent call last): File "/usr/share/vdsm/virt/vm.py", line 552, in _startUnderlyingVm self._run() File "/usr/share/vdsm/virt/vm.py", line 1994, in _run self._connection.createXML(domxml, flags), File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 123, in wrapper ret = f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 941, in wrapper return func(inst, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3782, in createXML if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm 2017-02-13 13:07:45,852 INFO (vm/642a0b9a) [virt.vm] (vmId='642a0b9a-49fc-4ccc-8976-f6685953d0e8') Changed state to Down: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm (code=1) (vm:1199)
Is your CPU properly configured for virtualization? Are you running on a nested env?
Yes, I assume it should be configured for virtualisation, since this VM I'm creating to replace the bare-metal engine is running on one of the two hosts that make up the cluster, and host 30 other running VMs currently. Should it not run on the same cluster perhaps?
My steps are:
1. Create a VM on the cluster. Install the ovirt release rpm, install the packages ovirt-hosted-engine-setup and ovirt-engine-appliance 2. run hosted-engine --deploy
...and that is as far as I have gotten so far.
OK, a bit of confusion here: ovirt-hosted-engine-setup is going to create a VM for you based on ovirt-engine-appliance (with the engine). If you manually create a VM (L1) on your physical host (L0) to run hosted-engine-setup there, hosted-engine-setup will create a VM (L2) for the engine running inside the L1 VM and this requires nested virtualization support which I think it's not enabled by default on oVirt hosts. But the point is that you simply have to run ovirt-hosted-engine-setup on your physical host and not on a VM otherwise all the HA mechanism of hosted-engine will make no sense if nothing is bringing up your virtual hosts for you. hosted-engine-setup requires an host with no others running VMs so, if it's already managed my an engine, move it to maintenance and remove it from your cluster.
Thanks,
Cam
Thanks,
Cam
On Mon, Feb 13, 2017 at 6:22 PM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Mon, Feb 13, 2017 at 6:26 PM, cmc <iucounu@gmail.com> wrote:
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-
setup-20170213141937-0wgc31.log
Anything in the above log? Y.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Ok, thanks for clarifying that Simone. I will read the guide more thoroughly. Cheers, Cam On Tue, Feb 14, 2017 at 1:47 PM, Simone Tiraboschi <stirabos@redhat.com> wrote:
On Tue, Feb 14, 2017 at 2:36 PM, cmc <iucounu@gmail.com> wrote:
Hi Simone,
It fails due to this one: 2017-02-13 13:07:45,812 ERROR (vm/642a0b9a) [virt.vm] (vmId='642a0b9a-49fc-4ccc-8976-f6685953d0e8') The vm start process failed (vm:616) Traceback (most recent call last): File "/usr/share/vdsm/virt/vm.py", line 552, in _startUnderlyingVm self._run() File "/usr/share/vdsm/virt/vm.py", line 1994, in _run self._connection.createXML(domxml, flags), File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 123, in wrapper ret = f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 941, in wrapper return func(inst, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3782, in createXML if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm 2017-02-13 13:07:45,852 INFO (vm/642a0b9a) [virt.vm] (vmId='642a0b9a-49fc-4ccc-8976-f6685953d0e8') Changed state to Down: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm (code=1) (vm:1199)
Is your CPU properly configured for virtualization? Are you running on a nested env?
Yes, I assume it should be configured for virtualisation, since this VM I'm creating to replace the bare-metal engine is running on one of the two hosts that make up the cluster, and host 30 other running VMs currently. Should it not run on the same cluster perhaps?
My steps are:
1. Create a VM on the cluster. Install the ovirt release rpm, install the packages ovirt-hosted-engine-setup and ovirt-engine-appliance 2. run hosted-engine --deploy
...and that is as far as I have gotten so far.
OK, a bit of confusion here: ovirt-hosted-engine-setup is going to create a VM for you based on ovirt-engine-appliance (with the engine). If you manually create a VM (L1) on your physical host (L0) to run hosted-engine-setup there, hosted-engine-setup will create a VM (L2) for the engine running inside the L1 VM and this requires nested virtualization support which I think it's not enabled by default on oVirt hosts. But the point is that you simply have to run ovirt-hosted-engine-setup on your physical host and not on a VM otherwise all the HA mechanism of hosted-engine will make no sense if nothing is bringing up your virtual hosts for you.
hosted-engine-setup requires an host with no others running VMs so, if it's already managed my an engine, move it to maintenance and remove it from your cluster.
Thanks,
Cam
Thanks,
Cam
On Mon, Feb 13, 2017 at 6:22 PM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Mon, Feb 13, 2017 at 6:26 PM, cmc <iucounu@gmail.com> wrote:
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20170213141937-0wgc31.log
Anything in the above log? Y.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (3)
-
cmc
-
Simone Tiraboschi
-
Yaniv Kaul