Re: [ovirt-users] Changing Cluster CPU Type in a single Host with Hosted Engine environment

2016-05-28 Thread Ralf Braendli
Hi

I Tried this change but I can’t find a Table cluster in the postgres Database.

Best Regarfs

Ralf

Am 26.05.2016 um 15:22 schrieb Martin Polednik 
mailto:mpoled...@redhat.com>>:

On 26/05/16 13:01 +, Ralf Braendli wrote:
Hi

Thanks a lot for you help.
Just to be sure.
The Database would be the Datebase on the HostedEngine right ?

Right.

After this operation should it work directly or is a restart required ?

You should most likely restart the machine (to avoid hitting cached
values).

And for the Bug report this should be done here 
https://bugzilla.redhat.com/enter_bug.cgi?classification=oVirt ?

Yes (ovirt-engine, virt team).

Best Regards

Ralf Brändli

Am 26.05.2016 um 14:42 schrieb Martin Polednik 
mailto:mpoled...@redhat.com>>:

On 26/05/16 07:12 +, Ralf Braendli wrote:
Hi

I have the Problem that I selected the wrong CPU Type throw the setup process.
Is it posible to change it without an new installation ?

Hi!

I'm afraid this may not be possible using "regular" approach. You
could do this by directly changing the cpu type in database, but this
is not supported operation.

Just an example what would I do in this case (but proceed carefully
before changing anything in the DB):

$ su - postgres -c "psql -t engine -c \"SELECT
split_part(trim(regexp_split_to_table(option_value, ';')), ':', 2)
FROM vdc_options WHERE option_name = 'ServerCPUList' AND version =
'3.5';\""

gives you a nice list of supported cpu names (the database name must
be exact, so it's better to paste from that list.

Intel Conroe Family
Intel Penryn Family
Intel Nehalem Family
Intel Westmere Family
Intel SandyBridge Family
Intel Haswell-noTSX Family
Intel Haswell Family
Intel Broadwell-noTSX Family
Intel Broadwell Family
AMD Opteron G1
AMD Opteron G2
AMD Opteron G3
AMD Opteron G4
AMD Opteron G5
IBM POWER8

Then you can update the cluster directly:

$ su - postgres -c "psql -t engine -c \"UPDATE cluster SET cpu_name =
'YOUR CPU NAME' WHERE name = 'YOUR CLUSTER NAME';\""

('YOUR CPU NAME' and 'YOUR CLUSTER NAME' must of course correspond to
the cpu name from the list above and the name of the cluster
respectively)

Also, could you open a bug on this? I think we should be able to do
change the CPU type without all this.

Thanks,
mpolednik

We have a single Host with a Hosted Engine installed.
With this installation I can’t put the Host into Maintenance Mode because the 
Hosted Engine will run on this Host.

The Version we us is 3.5.5-1

Best Regards

Ralf Brändli
___
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] Changing Cluster CPU Type in a single Host with Hosted Engine environment

2016-05-27 Thread Simone Tiraboschi
On Fri, May 27, 2016 at 1:10 PM, Sandro Bonazzola  wrote:
>
> Il 26/Mag/2016 09:21, "Ralf Braendli"  ha scritto:
>>
>> Hi
>>
>> I have the Problem that I selected the wrong CPU Type throw the setup
>> process.
>> Is it posible to change it without an new installation ?
>
> In this configuration you can just change the cpu type in vm.conf and
> answerfile in /etc/ovirt-hosted-engine and shutdown the vm. The ha daemon
> will restart the vm with the new cpu type
>
> Simone please confirm.

Unfortunately the CPU type it's not in vm.conf being a cluster property.

>> We have a single Host with a Hosted Engine installed.
>> With this installation I can’t put the Host into Maintenance Mode because
>> the Hosted Engine will run on this Host.
>>
>> The Version we us is 3.5.5-1
>>
>> Best Regards
>>
>> Ralf Brändli
>> ___
>> 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] Changing Cluster CPU Type in a single Host with Hosted Engine environment

2016-05-27 Thread Sandro Bonazzola
Il 26/Mag/2016 09:21, "Ralf Braendli"  ha scritto:
>
> Hi
>
> I have the Problem that I selected the wrong CPU Type throw the setup
process.
> Is it posible to change it without an new installation ?

In this configuration you can just change the cpu type in vm.conf and
answerfile in /etc/ovirt-hosted-engine and shutdown the vm. The ha daemon
will restart the vm with the new cpu type

Simone please confirm.

>
> We have a single Host with a Hosted Engine installed.
> With this installation I can’t put the Host into Maintenance Mode because
the Hosted Engine will run on this Host.
>
> The Version we us is 3.5.5-1
>
> Best Regards
>
> Ralf Brändli
> ___
> 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] Changing Cluster CPU Type in a single Host with Hosted Engine environment

2016-05-26 Thread Martin Polednik

On 26/05/16 13:01 +, Ralf Braendli wrote:

Hi

Thanks a lot for you help.
Just to be sure.
The Database would be the Datebase on the HostedEngine right ?


Right.


After this operation should it work directly or is a restart required ?


You should most likely restart the machine (to avoid hitting cached
values).


And for the Bug report this should be done here 
https://bugzilla.redhat.com/enter_bug.cgi?classification=oVirt ?


Yes (ovirt-engine, virt team).


Best Regards

Ralf Brändli


Am 26.05.2016 um 14:42 schrieb Martin Polednik :

On 26/05/16 07:12 +, Ralf Braendli wrote:

Hi

I have the Problem that I selected the wrong CPU Type throw the setup process.
Is it posible to change it without an new installation ?


Hi!

I'm afraid this may not be possible using "regular" approach. You
could do this by directly changing the cpu type in database, but this
is not supported operation.

Just an example what would I do in this case (but proceed carefully
before changing anything in the DB):

$ su - postgres -c "psql -t engine -c \"SELECT
split_part(trim(regexp_split_to_table(option_value, ';')), ':', 2)
FROM vdc_options WHERE option_name = 'ServerCPUList' AND version =
'3.5';\""

gives you a nice list of supported cpu names (the database name must
be exact, so it's better to paste from that list.

Intel Conroe Family
Intel Penryn Family
Intel Nehalem Family
Intel Westmere Family
Intel SandyBridge Family
Intel Haswell-noTSX Family
Intel Haswell Family
Intel Broadwell-noTSX Family
Intel Broadwell Family
AMD Opteron G1
AMD Opteron G2
AMD Opteron G3
AMD Opteron G4
AMD Opteron G5
IBM POWER8

Then you can update the cluster directly:

$ su - postgres -c "psql -t engine -c \"UPDATE cluster SET cpu_name =
'YOUR CPU NAME' WHERE name = 'YOUR CLUSTER NAME';\""

('YOUR CPU NAME' and 'YOUR CLUSTER NAME' must of course correspond to
the cpu name from the list above and the name of the cluster
respectively)

Also, could you open a bug on this? I think we should be able to do
change the CPU type without all this.

Thanks,
mpolednik


We have a single Host with a Hosted Engine installed.
With this installation I can’t put the Host into Maintenance Mode because the 
Hosted Engine will run on this Host.

The Version we us is 3.5.5-1

Best Regards

Ralf Brändli
___
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] Changing Cluster CPU Type in a single Host with Hosted Engine environment

2016-05-26 Thread Ralf Braendli
Hi

Thanks a lot for you help.
Just to be sure.
The Database would be the Datebase on the HostedEngine right ?
After this operation should it work directly or is a restart required ?

And for the Bug report this should be done here 
https://bugzilla.redhat.com/enter_bug.cgi?classification=oVirt ?

Best Regards

Ralf Brändli

> Am 26.05.2016 um 14:42 schrieb Martin Polednik :
> 
> On 26/05/16 07:12 +, Ralf Braendli wrote:
>> Hi
>> 
>> I have the Problem that I selected the wrong CPU Type throw the setup 
>> process.
>> Is it posible to change it without an new installation ?
> 
> Hi!
> 
> I'm afraid this may not be possible using "regular" approach. You
> could do this by directly changing the cpu type in database, but this
> is not supported operation.
> 
> Just an example what would I do in this case (but proceed carefully
> before changing anything in the DB):
> 
> $ su - postgres -c "psql -t engine -c \"SELECT
> split_part(trim(regexp_split_to_table(option_value, ';')), ':', 2)
> FROM vdc_options WHERE option_name = 'ServerCPUList' AND version =
> '3.5';\""
> 
> gives you a nice list of supported cpu names (the database name must
> be exact, so it's better to paste from that list.
> 
> Intel Conroe Family
> Intel Penryn Family
> Intel Nehalem Family
> Intel Westmere Family
> Intel SandyBridge Family
> Intel Haswell-noTSX Family
> Intel Haswell Family
> Intel Broadwell-noTSX Family
> Intel Broadwell Family
> AMD Opteron G1
> AMD Opteron G2
> AMD Opteron G3
> AMD Opteron G4
> AMD Opteron G5
> IBM POWER8
> 
> Then you can update the cluster directly:
> 
> $ su - postgres -c "psql -t engine -c \"UPDATE cluster SET cpu_name =
> 'YOUR CPU NAME' WHERE name = 'YOUR CLUSTER NAME';\""
> 
> ('YOUR CPU NAME' and 'YOUR CLUSTER NAME' must of course correspond to
> the cpu name from the list above and the name of the cluster
> respectively)
> 
> Also, could you open a bug on this? I think we should be able to do
> change the CPU type without all this.
> 
> Thanks,
> mpolednik
> 
>> We have a single Host with a Hosted Engine installed.
>> With this installation I can’t put the Host into Maintenance Mode because 
>> the Hosted Engine will run on this Host.
>> 
>> The Version we us is 3.5.5-1
>> 
>> Best Regards
>> 
>> Ralf Brändli
>> ___
>> 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] Changing Cluster CPU Type in a single Host with Hosted Engine environment

2016-05-26 Thread Martin Polednik

On 26/05/16 07:12 +, Ralf Braendli wrote:

Hi

I have the Problem that I selected the wrong CPU Type throw the setup process.
Is it posible to change it without an new installation ?


Hi!

I'm afraid this may not be possible using "regular" approach. You
could do this by directly changing the cpu type in database, but this
is not supported operation.

Just an example what would I do in this case (but proceed carefully
before changing anything in the DB):

$ su - postgres -c "psql -t engine -c \"SELECT
split_part(trim(regexp_split_to_table(option_value, ';')), ':', 2)
FROM vdc_options WHERE option_name = 'ServerCPUList' AND version =
'3.5';\""

gives you a nice list of supported cpu names (the database name must
be exact, so it's better to paste from that list.

Intel Conroe Family
Intel Penryn Family
Intel Nehalem Family
Intel Westmere Family
Intel SandyBridge Family
Intel Haswell-noTSX Family
Intel Haswell Family
Intel Broadwell-noTSX Family
Intel Broadwell Family
AMD Opteron G1
AMD Opteron G2
AMD Opteron G3
AMD Opteron G4
AMD Opteron G5
IBM POWER8

Then you can update the cluster directly:

$ su - postgres -c "psql -t engine -c \"UPDATE cluster SET cpu_name =
'YOUR CPU NAME' WHERE name = 'YOUR CLUSTER NAME';\""

('YOUR CPU NAME' and 'YOUR CLUSTER NAME' must of course correspond to
the cpu name from the list above and the name of the cluster
respectively)

Also, could you open a bug on this? I think we should be able to do
change the CPU type without all this.

Thanks,
mpolednik


We have a single Host with a Hosted Engine installed.
With this installation I can’t put the Host into Maintenance Mode because the 
Hosted Engine will run on this Host.

The Version we us is 3.5.5-1

Best Regards

Ralf Brändli
___
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] Changing Cluster CPU Type in a single Host with Hosted Engine environment

2016-05-26 Thread Ralf Braendli
Hi 

I have the Problem that I selected the wrong CPU Type throw the setup process.
Is it posible to change it without an new installation ?

We have a single Host with a Hosted Engine installed.
With this installation I can’t put the Host into Maintenance Mode because the 
Hosted Engine will run on this Host.

The Version we us is 3.5.5-1

Best Regards 

Ralf Brändli
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users