Deploying hosted engine on second host with different CPU model

--=_0515c7a8a719b93ba66db7175d4e8503 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Hello, I am deploying hosted engine (HA) on hosts with different CPU models on one of my oVirt labs. Host have different CPU's or there is also the problem: virtualization platform cannot detect CPU at all, "The following CPU types are supported by this host:" is empty: 2014-07-17 16:51:42 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vdsmd.cpu cpu._customization:124 Compatible CPU models are: [] Is there any way to override this setting and use CPU of old machine for both hosts? ex. host1: cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz stepping : 11 host2: cpu family : 6 model : 42 model name : Intel(R) Xeon(R) CPU E31220 @ 3.10GHz stepping : 7 [root@ovirt2 ~]# hosted-engine --deploy [ INFO ] Stage: Initializing Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards. Are you sure you want to continue? (Yes, No)[Yes]: [ INFO ] Generating a temporary VNC password. [ INFO ] Stage: Environment setup Configuration files: [] Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20140717165111-7tg2g7.log Version: otopi-1.2.1 (otopi-1.2.1-1.el6) [ INFO ] Hardware supports virtualization [ INFO ] Stage: Environment packages setup [ INFO ] Stage: Programs detection [ INFO ] Stage: Environment setup [ INFO ] Stage: Environment customization --== STORAGE CONFIGURATION ==-- During customization use CTRL-D to abort. Please specify the storage you would like to use (nfs3, nfs4)[nfs3]: Please specify the full shared storage connection path to use (example: host:/path): ovirt-hosted:/engine The specified storage location already contains a data domain. Is this an additional host setup (Yes, No)[Yes]? [ INFO ] Installing on additional host Please specify the Host ID [Must be integer, default: 2]: --== SYSTEM CONFIGURATION ==-- [WARNING] A configuration file must be supplied to deploy Hosted Engine on an additional host. The answer file may be fetched from the first host using scp. If you do not want to download it automatically you can abort the setup answering no to the following question. Do you want to scp the answer file from the first host? (Yes, No)[Yes]: Please provide the FQDN or IP of the first host: ovirt1.test.ge Enter 'root' user password for host ovirt1.test.ge: [ INFO ] Answer file successfully downloaded --== NETWORK CONFIGURATION ==-- THE FOLLOWING CPU TYPES ARE SUPPORTED BY THIS HOST: [ ERROR ] FAILED TO EXECUTE STAGE 'ENVIRONMENT CUSTOMIZATION': INVALID CPU TYPE SPECIFIED: MODEL_CONROE [ INFO ] Stage: Clean up [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination -- BR GEORGE MACHITIDZE --=_0515c7a8a719b93ba66db7175d4e8503 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 <p>Hello,</p> <p>I am deploying hosted engine (HA) on hosts with different CPU <span styl= e=3D"text-decoration: underline;">models</span> on one of my oVirt labs.</p=
Please specify the = full shared storage connection path to use (example: host:/path): ovirt-hos= ted:/engine<br /> The= specified storage location already contains a data domain. Is this an addi= tional host setup (Yes, No)[Yes]? <br />[ INFO ] Installing on additi= onal host<br /> Pleas= e specify the Host ID [Must be integer, default: 2]: <br /> &nbs=
<p><span style=3D"color: #000000;">Host have different CPU's or there is al= so the problem: virtualization platform cannot detect CPU at all, "</span><= span style=3D"font-family: courier new,courier;"><span style=3D"color: #00f= f00;"><span style=3D"color: #0000ff;"><span style=3D"color: #000000;">The f= ollowing CPU types are supported by this host:" is empty:</span></span></sp= an></span></p> <p><br />2014-07-17 16:51:42 DEBUG otopi.plugins.ovirt_hosted_engine_setup= =2Evdsmd.cpu cpu._customization:124 Compatible CPU models are: []</p> <p>Is there any way to override this setting and use CPU of old machine for= both hosts?</p> <p>ex. <br />host1:</p> <p style=3D"padding-left: 30px;">cpu family := 6<br />model := 15<br />model name : Intel(R) Xeon(R) CPU&nb= sp; 5160 = @ 3.00GHz<br />stepping : 11</p> <p>host2:</p> <p style=3D"padding-left: 30px;">cpu family := 6<br />model := 42<br />model name : Intel(R) Xeon(R) CPU E3= 1220 @ 3.10GHz<br />stepping : 7<= br /><br /></p> <p> </p> <p><span style=3D"font-family: courier new,courier;">[root@ovirt2 ~]# hoste= d-engine --deploy<br />[ INFO ] Stage: Initializing<br /> = Continuing will configure this h= ost for serving as hypervisor and create a VM where you have to install oVi= rt Engine afterwards.<br /> = Are you sure you want to continue? (Yes, No)[Yes]: <br />[ INFO = ; ] Generating a temporary VNC password.<br />[ INFO ] Stage: Environ= ment setup<br /> Conf= iguration files: []<br /> &n= bsp; Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup= -20140717165111-7tg2g7.log<br /> &= nbsp; Version: otopi-1.2.1 (otopi-1.2.1-1.el6)<br />[ INFO ] Ha= rdware supports virtualization<br />[ INFO ] Stage: Environment packa= ges setup<br />[ INFO ] Stage: Programs detection<br />[ INFO ]= Stage: Environment setup<br />[ INFO ] Stage: Environment customizat= ion<br /> <br />  = ; --=3D=3D STORAGE CONFIGURATION = =3D=3D--<br /> <br /> = During customization use C= TRL-D to abort.<br /> = Please specify the storage you would like to use (nfs3, nfs4)[nfs3]: <br /= p; <br /> = --=3D=3D SYSTEM CONFIGURATION =3D=3D--<br /> = <br />[WARNING] A configuration file m= ust be supplied to deploy Hosted Engine on an additional host.<br /> &= nbsp; The answer file may be fetc= hed from the first host using scp.<br />  = ; If you do not want to download it automatically you can= abort the setup answering no to the following question.<br /> &= nbsp; Do you want to scp the answer fil= e from the first host? (Yes, No)[Yes]: <br /> = Please provide the FQDN or IP of the first host: o= virt1.test.ge<br /> E= nter 'root' user password for host ovirt1.test.ge: <br />[ INFO ] Ans= wer file successfully downloaded<br /> &= nbsp; <br /> --= =3D=3D NETWORK CONFIGURATION =3D=3D--<br /> &n= bsp; <br /> <spa= n style=3D"color: #00ff00;"> <span style=3D"color: #0000ff;"><strong>= The following CPU types are supported by this host:</strong></span></span><= br /><strong><span style=3D"color: #ff0000;">[ ERROR ] Failed to execute st= age 'Environment customization': Invalid CPU type specified: <span style=3D= "color: #ff0000;">model_Conroe</span></span></strong><br />[ INFO ] S= tage: Clean up<br />[ INFO ] Stage: Pre-termination<br />[ INFO = ] Stage: Termination<br /></span></p> <div> <p>-- <br />BR</p> <pre><span style=3D"font-family: 'Calibri Cyr', sans-serif; white-space: no= rmal; font-size: small;"><div style=3D"margin-top: 5pt; margin-bottom: 5pt;= "><span style=3D"font-family: Verdana, sans-serif; color: #3399ff; font-siz= e: small;"><strong><span style=3D"color: #007500;"><span style=3D"color: #0= 07eff;">George Machitidze</span></span></strong><span style=3D"color: #8080= 80; font-size: x-small;"><strong></strong></span></span></div></span></pre> </div> --=_0515c7a8a719b93ba66db7175d4e8503--

I think you should be able specify this within the ovirt-engine, just modify the cluster's cpu compatibility. I hit this too, but i think I just ended up provisioning the older machine first then the newer ones joined with the older model On Thu, Jul 17, 2014 at 11:05 PM, George Machitidze <gmachitidze@greennet.ge> wrote:
Hello,
I am deploying hosted engine (HA) on hosts with different CPU models on one of my oVirt labs.
Host have different CPU's or there is also the problem: virtualization platform cannot detect CPU at all, "The following CPU types are supported by this host:" is empty:
2014-07-17 16:51:42 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vdsmd.cpu cpu._customization:124 Compatible CPU models are: []
Is there any way to override this setting and use CPU of old machine for both hosts?
ex. host1:
cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz stepping : 11
host2:
cpu family : 6 model : 42 model name : Intel(R) Xeon(R) CPU E31220 @ 3.10GHz stepping : 7
[root@ovirt2 ~]# hosted-engine --deploy [ INFO ] Stage: Initializing Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards. Are you sure you want to continue? (Yes, No)[Yes]: [ INFO ] Generating a temporary VNC password. [ INFO ] Stage: Environment setup Configuration files: [] Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20140717165111-7tg2g7.log Version: otopi-1.2.1 (otopi-1.2.1-1.el6) [ INFO ] Hardware supports virtualization [ INFO ] Stage: Environment packages setup [ INFO ] Stage: Programs detection [ INFO ] Stage: Environment setup [ INFO ] Stage: Environment customization
--== STORAGE CONFIGURATION ==--
During customization use CTRL-D to abort. Please specify the storage you would like to use (nfs3, nfs4)[nfs3]: Please specify the full shared storage connection path to use (example: host:/path): ovirt-hosted:/engine The specified storage location already contains a data domain. Is this an additional host setup (Yes, No)[Yes]? [ INFO ] Installing on additional host Please specify the Host ID [Must be integer, default: 2]:
--== SYSTEM CONFIGURATION ==--
[WARNING] A configuration file must be supplied to deploy Hosted Engine on an additional host. The answer file may be fetched from the first host using scp. If you do not want to download it automatically you can abort the setup answering no to the following question. Do you want to scp the answer file from the first host? (Yes, No)[Yes]: Please provide the FQDN or IP of the first host: ovirt1.test.ge Enter 'root' user password for host ovirt1.test.ge: [ INFO ] Answer file successfully downloaded
--== NETWORK CONFIGURATION ==--
The following CPU types are supported by this host: [ ERROR ] Failed to execute stage 'Environment customization': Invalid CPU type specified: model_Conroe [ INFO ] Stage: Clean up [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination
-- BR
George Machitidze
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 07/18/2014 02:05 AM, Andrew Lau wrote:
I think you should be able specify this within the ovirt-engine, just modify the cluster's cpu compatibility. I hit this too, but i think I just ended up provisioning the older machine first then the newer ones joined with the older model
1. first the host needs to have a compatible cpu model. what does 'vdsClient -s 0 getVdsCaps | grep -i flag' returns 2. cluster cpu level is easy, but hosted engine vm config resides on the disk, and needs to be manually edited in this case iirc.
On Thu, Jul 17, 2014 at 11:05 PM, George Machitidze <gmachitidze@greennet.ge> wrote:
Hello,
I am deploying hosted engine (HA) on hosts with different CPU models on one of my oVirt labs.
Host have different CPU's or there is also the problem: virtualization platform cannot detect CPU at all, "The following CPU types are supported by this host:" is empty:
2014-07-17 16:51:42 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vdsmd.cpu cpu._customization:124 Compatible CPU models are: []
Is there any way to override this setting and use CPU of old machine for both hosts?
ex. host1:
cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz stepping : 11
host2:
cpu family : 6 model : 42 model name : Intel(R) Xeon(R) CPU E31220 @ 3.10GHz stepping : 7
[root@ovirt2 ~]# hosted-engine --deploy [ INFO ] Stage: Initializing Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards. Are you sure you want to continue? (Yes, No)[Yes]: [ INFO ] Generating a temporary VNC password. [ INFO ] Stage: Environment setup Configuration files: [] Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20140717165111-7tg2g7.log Version: otopi-1.2.1 (otopi-1.2.1-1.el6) [ INFO ] Hardware supports virtualization [ INFO ] Stage: Environment packages setup [ INFO ] Stage: Programs detection [ INFO ] Stage: Environment setup [ INFO ] Stage: Environment customization
--== STORAGE CONFIGURATION ==--
During customization use CTRL-D to abort. Please specify the storage you would like to use (nfs3, nfs4)[nfs3]: Please specify the full shared storage connection path to use (example: host:/path): ovirt-hosted:/engine The specified storage location already contains a data domain. Is this an additional host setup (Yes, No)[Yes]? [ INFO ] Installing on additional host Please specify the Host ID [Must be integer, default: 2]:
--== SYSTEM CONFIGURATION ==--
[WARNING] A configuration file must be supplied to deploy Hosted Engine on an additional host. The answer file may be fetched from the first host using scp. If you do not want to download it automatically you can abort the setup answering no to the following question. Do you want to scp the answer file from the first host? (Yes, No)[Yes]: Please provide the FQDN or IP of the first host: ovirt1.test.ge Enter 'root' user password for host ovirt1.test.ge: [ INFO ] Answer file successfully downloaded
--== NETWORK CONFIGURATION ==--
The following CPU types are supported by this host: [ ERROR ] Failed to execute stage 'Environment customization': Invalid CPU type specified: model_Conroe [ INFO ] Stage: Clean up [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination
-- BR
George Machitidze
_______________________________________________ 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 -----
From: "Itamar Heim" <iheim@redhat.com> To: "Andrew Lau" <andrew@andrewklau.com>, "George Machitidze" <gmachitidze@greennet.ge> Cc: "users" <Users@ovirt.org> Sent: Tuesday, July 22, 2014 12:09:54 AM Subject: Re: [ovirt-users] Deploying hosted engine on second host with different CPU model
On 07/18/2014 02:05 AM, Andrew Lau wrote:
I think you should be able specify this within the ovirt-engine, just modify the cluster's cpu compatibility. I hit this too, but i think I just ended up provisioning the older machine first then the newer ones joined with the older model
1. first the host needs to have a compatible cpu model. what does 'vdsClient -s 0 getVdsCaps | grep -i flag' returns
Than can you also check the presence of vmx and nx flags in /proc/cpuinfo ? Recently we solved a bug regarding that: https://bugzilla.redhat.com/show_bug.cgi?id=1119145 Hosted engine deploy didn't checked the status of nx flag but some CPU requires also to enable NX to properly support virtualization.
2. cluster cpu level is easy, but hosted engine vm config resides on the disk, and needs to be manually edited in this case iirc.
On Thu, Jul 17, 2014 at 11:05 PM, George Machitidze <gmachitidze@greennet.ge> wrote:
Hello,
I am deploying hosted engine (HA) on hosts with different CPU models on one of my oVirt labs.
Host have different CPU's or there is also the problem: virtualization platform cannot detect CPU at all, "The following CPU types are supported by this host:" is empty:
2014-07-17 16:51:42 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vdsmd.cpu cpu._customization:124 Compatible CPU models are: []
Is there any way to override this setting and use CPU of old machine for both hosts?
ex. host1:
cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz stepping : 11
host2:
cpu family : 6 model : 42 model name : Intel(R) Xeon(R) CPU E31220 @ 3.10GHz stepping : 7
[root@ovirt2 ~]# hosted-engine --deploy [ INFO ] Stage: Initializing Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards. Are you sure you want to continue? (Yes, No)[Yes]: [ INFO ] Generating a temporary VNC password. [ INFO ] Stage: Environment setup Configuration files: [] Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20140717165111-7tg2g7.log Version: otopi-1.2.1 (otopi-1.2.1-1.el6) [ INFO ] Hardware supports virtualization [ INFO ] Stage: Environment packages setup [ INFO ] Stage: Programs detection [ INFO ] Stage: Environment setup [ INFO ] Stage: Environment customization
--== STORAGE CONFIGURATION ==--
During customization use CTRL-D to abort. Please specify the storage you would like to use (nfs3, nfs4)[nfs3]: Please specify the full shared storage connection path to use (example: host:/path): ovirt-hosted:/engine The specified storage location already contains a data domain. Is this an additional host setup (Yes, No)[Yes]? [ INFO ] Installing on additional host Please specify the Host ID [Must be integer, default: 2]:
--== SYSTEM CONFIGURATION ==--
[WARNING] A configuration file must be supplied to deploy Hosted Engine on an additional host. The answer file may be fetched from the first host using scp. If you do not want to download it automatically you can abort the setup answering no to the following question. Do you want to scp the answer file from the first host? (Yes, No)[Yes]: Please provide the FQDN or IP of the first host: ovirt1.test.ge Enter 'root' user password for host ovirt1.test.ge: [ INFO ] Answer file successfully downloaded
--== NETWORK CONFIGURATION ==--
The following CPU types are supported by this host: [ ERROR ] Failed to execute stage 'Environment customization': Invalid CPU type specified: model_Conroe [ INFO ] Stage: Clean up [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination
-- BR
George Machitidze
_______________________________________________ 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

On 07/22/2014 12:31 PM, Simone Tiraboschi wrote:
Than can you also check the presence of vmx and nx flags in /proc/cpuinfo ?
Recently we solved a bug regarding that:https://bugzilla.redhat.com/show_bug.cgi?id=1119145 Hosted engine deploy didn't checked the status of nx flag but some CPU requires also to enable NX to properly support virtualization.
just a note, to avoid live migration issues we always require the nx flag to be turned on in ovirt.

Simone, Itamar thanks for reply nx flag doesn't exist on second host. should it throw this partucular error and not detect cpu type? What is target release for patch? I will build one more test lab for ovirt. I've already faced about 10 bugs in 3.4.2, but all are already solved in 3.4.3 :) *George Machitidze* 2014-07-22 13:37 GMT+04:00 Itamar Heim <iheim@redhat.com>:
On 07/22/2014 12:31 PM, Simone Tiraboschi wrote:
Than can you also check the presence of vmx and nx flags in /proc/cpuinfo ?
Recently we solved a bug regarding that:https://bugzilla.redhat. com/show_bug.cgi?id=1119145 Hosted engine deploy didn't checked the status of nx flag but some CPU requires also to enable NX to properly support virtualization.
just a note, to avoid live migration issues we always require the nx flag to be turned on in ovirt.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

----- Original Message -----
From: "George Machitidze" <giomac@gmail.com> To: "Itamar Heim" <iheim@redhat.com> Cc: "Simone Tiraboschi" <stirabos@redhat.com>, "George Machitidze" <gmachitidze@greennet.ge>, "users" <Users@ovirt.org> Sent: Tuesday, July 22, 2014 11:58:35 AM Subject: Re: [ovirt-users] Deploying hosted engine on second host with different CPU model
Simone, Itamar
thanks for reply
nx flag doesn't exist on second host. should it throw this partucular error and not detect cpu type?
Yes, on some CPUs if the NX flag is not active host-deploy cannot detect the CPU type due to hardware constraints getting that error.
What is target release for patch?
3.5.0 beta2, but the patch is of course not able to enable nx flag by itself: it simply inform the user about that asking him to enable NX support in the bios. https://bugzilla.redhat.com/show_bug.cgi?id=1103672
I will build one more test lab for ovirt. I've already faced about 10 bugs in 3.4.2, but all are already solved in 3.4.3 :)
*George Machitidze*
2014-07-22 13:37 GMT+04:00 Itamar Heim <iheim@redhat.com>:
On 07/22/2014 12:31 PM, Simone Tiraboschi wrote:
Than can you also check the presence of vmx and nx flags in /proc/cpuinfo ?
Recently we solved a bug regarding that:https://bugzilla.redhat. com/show_bug.cgi?id=1119145 Hosted engine deploy didn't checked the status of nx flag but some CPU requires also to enable NX to properly support virtualization.
just a note, to avoid live migration issues we always require the nx flag to be turned on in ovirt.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (5)
-
Andrew Lau
-
George Machitidze
-
George Machitidze
-
Itamar Heim
-
Simone Tiraboschi