You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Ugo Vasi <ug...@procne.it.INVALID> on 2019/02/19 11:26:58 UTC

CPU live migration question

Hi all,
I would like to know if it is possible to add to an existing cluster a 
host that has the cpu different from that of the pre-existing hosts or 
which features must be the same.

I have read around that there may be problems at the libvirt level but 
it is not clear to me which parameters must match.

Thanks
-- 

*Ugo Vasi* / System Administrator
ugo.vasi@procne.it <ma...@procne.it>




*Procne S.r.l.*
+39 0432 486 523
via Cotonificio, 45
33010 Tavagnacco (UD)
www.procne.it <http://www.procne.it/>


Le informazioni contenute nella presente comunicazione ed i relativi 
allegati possono essere riservate e sono, comunque, destinate 
esclusivamente alle persone od alla Società sopraindicati. La 
diffusione, distribuzione e/o copiatura del documento trasmesso da parte 
di qualsiasi soggetto diverso dal destinatario è proibita sia ai sensi 
dell'art. 616 c.p., che ai sensi del Decreto Legislativo n. 196/2003 
"Codice in materia di protezione dei dati personali". Se avete ricevuto 
questo messaggio per errore, vi preghiamo di distruggerlo e di informare 
immediatamente Procne S.r.l. scrivendo all' indirizzo e-mail 
info@procne.it <ma...@procne.it>.


Re: CPU live migration question

Posted by Andrija Panic <an...@gmail.com>.
Not on the fly - but yes, change model of cpu, and restart agent. Affects
only VMs started after that change.

On Tue, Feb 19, 2019, 14:40 Ugo Vasi <ugo.vasi@procne.it wrote:

> Hi Andrija,
> is it possible to change agent.properties "on fly"?
>
> Il 19/02/19 12:59, Andrija Panic ha scritto:
> > Ugo,
> >
> > as long as the CPU flags are same or newer than the existing hosts in
> > cluster, it's 100% safe operation in regards to live migrations.
> >
> > But as Piotr said, if you are using some level of emulation of CPU model
> > (versus hos-passthrough), then you might be good even with slighly older
> > CPU on this new hosts that you want to add to a cluster.
> >
> > Do some reading around libvirt CPU model and simply just add one host and
> > test live migration - as simple as that.
> >
> > Kind regards,
> >
> > Andrija
> >
> > On Tue, 19 Feb 2019 at 12:39, Piotr Pisz <pi...@piszki.pl> wrote:
> >
> >> Hi Ugo,
> >>
> >> [root@cstack-1 ~]# cat /etc/cloudstack/agent/agent.properties  |grep
> passt
> >> guest.cpu.mode=host-passthrough
> >>
> >> The CPU model determines everything, if you have a passthrough it will
> be
> >> difficult or not possible.
> >> But if you have emulated it is no problem (eg you set up SandyBridge
> >> everywhere).
> >>
> >> Regards,
> >> Piotr
> >>
> >>
> >> -----Original Message-----
> >> From: Ugo Vasi <ug...@procne.it.INVALID>
> >> Sent: Tuesday, February 19, 2019 12:27 PM
> >> To: users@cloudstack.apache.org
> >> Subject: CPU live migration question
> >>
> >> Hi all,
> >> I would like to know if it is possible to add to an existing cluster a
> host
> >> that has the cpu different from that of the pre-existing hosts or which
> >> features must be the same.
> >>
> >> I have read around that there may be problems at the libvirt level but
> it
> >> is
> >> not clear to me which parameters must match.
> >>
> >> Thanks
> >> --
> >>
> >> *Ugo Vasi* / System Administrator
> >> ugo.vasi@procne.it <ma...@procne.it>
> >>
> >>
> >>
> >>
> >> *Procne S.r.l.*
> >> +39 0432 486 523
> >> via Cotonificio, 45
> >> 33010 Tavagnacco (UD)
> >> www.procne.it <http://www.procne.it/>
> >>
> >>
> >> Le informazioni contenute nella presente comunicazione ed i relativi
> >> allegati possono essere riservate e sono, comunque, destinate
> >> esclusivamente
> >> alle persone od alla Società sopraindicati. La diffusione, distribuzione
> >> e/o
> >> copiatura del documento trasmesso da parte di qualsiasi soggetto diverso
> >> dal
> >> destinatario è proibita sia ai sensi dell'art. 616 c.p., che ai sensi
> del
> >> Decreto Legislativo n. 196/2003 "Codice in materia di protezione dei
> dati
> >> personali". Se avete ricevuto questo messaggio per errore, vi preghiamo
> di
> >> distruggerlo e di informare immediatamente Procne S.r.l. scrivendo all'
> >> indirizzo e-mail info@procne.it <ma...@procne.it>.
> >>
> >>
> >>
>
>
> --
>
> *Ugo Vasi* / System Administrator
> ugo.vasi@procne.it <ma...@procne.it>
>
>
>
>
> *Procne S.r.l.*
> +39 0432 486 523
> via Cotonificio, 45
> 33010 Tavagnacco (UD)
> www.procne.it <http://www.procne.it/>
>
>
> Le informazioni contenute nella presente comunicazione ed i relativi
> allegati possono essere riservate e sono, comunque, destinate
> esclusivamente alle persone od alla Società sopraindicati. La
> diffusione, distribuzione e/o copiatura del documento trasmesso da parte
> di qualsiasi soggetto diverso dal destinatario è proibita sia ai sensi
> dell'art. 616 c.p., che ai sensi del Decreto Legislativo n. 196/2003
> "Codice in materia di protezione dei dati personali". Se avete ricevuto
> questo messaggio per errore, vi preghiamo di distruggerlo e di informare
> immediatamente Procne S.r.l. scrivendo all' indirizzo e-mail
> info@procne.it <ma...@procne.it>.
>
>

Re: CPU live migration question

Posted by Andrija Panic <an...@gmail.com>.
Protip: don't restart via ACS Restart VM button (since identical XML will
be used as before) - do full stop /start cycle.

On Tue, Feb 19, 2019, 15:24 Ivan Kudryavtsev <kudryavtsev_ia@bw-sw.com
wrote:

> The only problem is with live migration and when cpu frequency is set to
> the highest rate possible, while new cpu has lower rate.
>
> Other problem is when passthrough is set and cpus belong to various
> families like x5600 and E5-2600 V4. Then you should avoid passthrough and
> set in agent config lowest possible cpu among all cluster hosts. Next,
> restart agents and restart every VM to get new cpu model.
>
> вт, 19 февр. 2019 г., 8:40 Ugo Vasi ugo.vasi@procne.it.invalid:
>
>> Hi Andrija,
>> is it possible to change agent.properties "on fly"?
>>
>> Il 19/02/19 12:59, Andrija Panic ha scritto:
>> > Ugo,
>> >
>> > as long as the CPU flags are same or newer than the existing hosts in
>> > cluster, it's 100% safe operation in regards to live migrations.
>> >
>> > But as Piotr said, if you are using some level of emulation of CPU model
>> > (versus hos-passthrough), then you might be good even with slighly older
>> > CPU on this new hosts that you want to add to a cluster.
>> >
>> > Do some reading around libvirt CPU model and simply just add one host
>> and
>> > test live migration - as simple as that.
>> >
>> > Kind regards,
>> >
>> > Andrija
>> >
>> > On Tue, 19 Feb 2019 at 12:39, Piotr Pisz <pi...@piszki.pl> wrote:
>> >
>> >> Hi Ugo,
>> >>
>> >> [root@cstack-1 ~]# cat /etc/cloudstack/agent/agent.properties  |grep
>> passt
>> >> guest.cpu.mode=host-passthrough
>> >>
>> >> The CPU model determines everything, if you have a passthrough it will
>> be
>> >> difficult or not possible.
>> >> But if you have emulated it is no problem (eg you set up SandyBridge
>> >> everywhere).
>> >>
>> >> Regards,
>> >> Piotr
>> >>
>> >>
>> >> -----Original Message-----
>> >> From: Ugo Vasi <ug...@procne.it.INVALID>
>> >> Sent: Tuesday, February 19, 2019 12:27 PM
>> >> To: users@cloudstack.apache.org
>> >> Subject: CPU live migration question
>> >>
>> >> Hi all,
>> >> I would like to know if it is possible to add to an existing cluster a
>> host
>> >> that has the cpu different from that of the pre-existing hosts or which
>> >> features must be the same.
>> >>
>> >> I have read around that there may be problems at the libvirt level but
>> it
>> >> is
>> >> not clear to me which parameters must match.
>> >>
>> >> Thanks
>> >> --
>> >>
>> >> *Ugo Vasi* / System Administrator
>> >> ugo.vasi@procne.it <ma...@procne.it>
>> >>
>> >>
>> >>
>> >>
>> >> *Procne S.r.l.*
>> >> +39 0432 486 523
>> >> via Cotonificio, 45
>> >> 33010 Tavagnacco (UD)
>> >> www.procne.it <http://www.procne.it/>
>> >>
>> >>
>> >> Le informazioni contenute nella presente comunicazione ed i relativi
>> >> allegati possono essere riservate e sono, comunque, destinate
>> >> esclusivamente
>> >> alle persone od alla Società sopraindicati. La diffusione,
>> distribuzione
>> >> e/o
>> >> copiatura del documento trasmesso da parte di qualsiasi soggetto
>> diverso
>> >> dal
>> >> destinatario è proibita sia ai sensi dell'art. 616 c.p., che ai sensi
>> del
>> >> Decreto Legislativo n. 196/2003 "Codice in materia di protezione dei
>> dati
>> >> personali". Se avete ricevuto questo messaggio per errore, vi
>> preghiamo di
>> >> distruggerlo e di informare immediatamente Procne S.r.l. scrivendo all'
>> >> indirizzo e-mail info@procne.it <ma...@procne.it>.
>> >>
>> >>
>> >>
>>
>>
>> --
>>
>> *Ugo Vasi* / System Administrator
>> ugo.vasi@procne.it <ma...@procne.it>
>>
>>
>>
>>
>> *Procne S.r.l.*
>> +39 0432 486 523
>> via Cotonificio, 45
>> 33010 Tavagnacco (UD)
>> www.procne.it <http://www.procne.it/>
>>
>>
>> Le informazioni contenute nella presente comunicazione ed i relativi
>> allegati possono essere riservate e sono, comunque, destinate
>> esclusivamente alle persone od alla Società sopraindicati. La
>> diffusione, distribuzione e/o copiatura del documento trasmesso da parte
>> di qualsiasi soggetto diverso dal destinatario è proibita sia ai sensi
>> dell'art. 616 c.p., che ai sensi del Decreto Legislativo n. 196/2003
>> "Codice in materia di protezione dei dati personali". Se avete ricevuto
>> questo messaggio per errore, vi preghiamo di distruggerlo e di informare
>> immediatamente Procne S.r.l. scrivendo all' indirizzo e-mail
>> info@procne.it <ma...@procne.it>.
>>
>>

Re: CPU live migration question

Posted by Ivan Kudryavtsev <ku...@bw-sw.com>.
The only problem is with live migration and when cpu frequency is set to
the highest rate possible, while new cpu has lower rate.

Other problem is when passthrough is set and cpus belong to various
families like x5600 and E5-2600 V4. Then you should avoid passthrough and
set in agent config lowest possible cpu among all cluster hosts. Next,
restart agents and restart every VM to get new cpu model.

вт, 19 февр. 2019 г., 8:40 Ugo Vasi ugo.vasi@procne.it.invalid:

> Hi Andrija,
> is it possible to change agent.properties "on fly"?
>
> Il 19/02/19 12:59, Andrija Panic ha scritto:
> > Ugo,
> >
> > as long as the CPU flags are same or newer than the existing hosts in
> > cluster, it's 100% safe operation in regards to live migrations.
> >
> > But as Piotr said, if you are using some level of emulation of CPU model
> > (versus hos-passthrough), then you might be good even with slighly older
> > CPU on this new hosts that you want to add to a cluster.
> >
> > Do some reading around libvirt CPU model and simply just add one host and
> > test live migration - as simple as that.
> >
> > Kind regards,
> >
> > Andrija
> >
> > On Tue, 19 Feb 2019 at 12:39, Piotr Pisz <pi...@piszki.pl> wrote:
> >
> >> Hi Ugo,
> >>
> >> [root@cstack-1 ~]# cat /etc/cloudstack/agent/agent.properties  |grep
> passt
> >> guest.cpu.mode=host-passthrough
> >>
> >> The CPU model determines everything, if you have a passthrough it will
> be
> >> difficult or not possible.
> >> But if you have emulated it is no problem (eg you set up SandyBridge
> >> everywhere).
> >>
> >> Regards,
> >> Piotr
> >>
> >>
> >> -----Original Message-----
> >> From: Ugo Vasi <ug...@procne.it.INVALID>
> >> Sent: Tuesday, February 19, 2019 12:27 PM
> >> To: users@cloudstack.apache.org
> >> Subject: CPU live migration question
> >>
> >> Hi all,
> >> I would like to know if it is possible to add to an existing cluster a
> host
> >> that has the cpu different from that of the pre-existing hosts or which
> >> features must be the same.
> >>
> >> I have read around that there may be problems at the libvirt level but
> it
> >> is
> >> not clear to me which parameters must match.
> >>
> >> Thanks
> >> --
> >>
> >> *Ugo Vasi* / System Administrator
> >> ugo.vasi@procne.it <ma...@procne.it>
> >>
> >>
> >>
> >>
> >> *Procne S.r.l.*
> >> +39 0432 486 523
> >> via Cotonificio, 45
> >> 33010 Tavagnacco (UD)
> >> www.procne.it <http://www.procne.it/>
> >>
> >>
> >> Le informazioni contenute nella presente comunicazione ed i relativi
> >> allegati possono essere riservate e sono, comunque, destinate
> >> esclusivamente
> >> alle persone od alla Società sopraindicati. La diffusione, distribuzione
> >> e/o
> >> copiatura del documento trasmesso da parte di qualsiasi soggetto diverso
> >> dal
> >> destinatario è proibita sia ai sensi dell'art. 616 c.p., che ai sensi
> del
> >> Decreto Legislativo n. 196/2003 "Codice in materia di protezione dei
> dati
> >> personali". Se avete ricevuto questo messaggio per errore, vi preghiamo
> di
> >> distruggerlo e di informare immediatamente Procne S.r.l. scrivendo all'
> >> indirizzo e-mail info@procne.it <ma...@procne.it>.
> >>
> >>
> >>
>
>
> --
>
> *Ugo Vasi* / System Administrator
> ugo.vasi@procne.it <ma...@procne.it>
>
>
>
>
> *Procne S.r.l.*
> +39 0432 486 523
> via Cotonificio, 45
> 33010 Tavagnacco (UD)
> www.procne.it <http://www.procne.it/>
>
>
> Le informazioni contenute nella presente comunicazione ed i relativi
> allegati possono essere riservate e sono, comunque, destinate
> esclusivamente alle persone od alla Società sopraindicati. La
> diffusione, distribuzione e/o copiatura del documento trasmesso da parte
> di qualsiasi soggetto diverso dal destinatario è proibita sia ai sensi
> dell'art. 616 c.p., che ai sensi del Decreto Legislativo n. 196/2003
> "Codice in materia di protezione dei dati personali". Se avete ricevuto
> questo messaggio per errore, vi preghiamo di distruggerlo e di informare
> immediatamente Procne S.r.l. scrivendo all' indirizzo e-mail
> info@procne.it <ma...@procne.it>.
>
>

Re: CPU live migration question

Posted by Ugo Vasi <ug...@procne.it.INVALID>.
Hi Andrija,
is it possible to change agent.properties "on fly"?

Il 19/02/19 12:59, Andrija Panic ha scritto:
> Ugo,
>
> as long as the CPU flags are same or newer than the existing hosts in
> cluster, it's 100% safe operation in regards to live migrations.
>
> But as Piotr said, if you are using some level of emulation of CPU model
> (versus hos-passthrough), then you might be good even with slighly older
> CPU on this new hosts that you want to add to a cluster.
>
> Do some reading around libvirt CPU model and simply just add one host and
> test live migration - as simple as that.
>
> Kind regards,
>
> Andrija
>
> On Tue, 19 Feb 2019 at 12:39, Piotr Pisz <pi...@piszki.pl> wrote:
>
>> Hi Ugo,
>>
>> [root@cstack-1 ~]# cat /etc/cloudstack/agent/agent.properties  |grep passt
>> guest.cpu.mode=host-passthrough
>>
>> The CPU model determines everything, if you have a passthrough it will be
>> difficult or not possible.
>> But if you have emulated it is no problem (eg you set up SandyBridge
>> everywhere).
>>
>> Regards,
>> Piotr
>>
>>
>> -----Original Message-----
>> From: Ugo Vasi <ug...@procne.it.INVALID>
>> Sent: Tuesday, February 19, 2019 12:27 PM
>> To: users@cloudstack.apache.org
>> Subject: CPU live migration question
>>
>> Hi all,
>> I would like to know if it is possible to add to an existing cluster a host
>> that has the cpu different from that of the pre-existing hosts or which
>> features must be the same.
>>
>> I have read around that there may be problems at the libvirt level but it
>> is
>> not clear to me which parameters must match.
>>
>> Thanks
>> --
>>
>> *Ugo Vasi* / System Administrator
>> ugo.vasi@procne.it <ma...@procne.it>
>>
>>
>>
>>
>> *Procne S.r.l.*
>> +39 0432 486 523
>> via Cotonificio, 45
>> 33010 Tavagnacco (UD)
>> www.procne.it <http://www.procne.it/>
>>
>>
>> Le informazioni contenute nella presente comunicazione ed i relativi
>> allegati possono essere riservate e sono, comunque, destinate
>> esclusivamente
>> alle persone od alla Società sopraindicati. La diffusione, distribuzione
>> e/o
>> copiatura del documento trasmesso da parte di qualsiasi soggetto diverso
>> dal
>> destinatario è proibita sia ai sensi dell'art. 616 c.p., che ai sensi del
>> Decreto Legislativo n. 196/2003 "Codice in materia di protezione dei dati
>> personali". Se avete ricevuto questo messaggio per errore, vi preghiamo di
>> distruggerlo e di informare immediatamente Procne S.r.l. scrivendo all'
>> indirizzo e-mail info@procne.it <ma...@procne.it>.
>>
>>
>>


-- 

*Ugo Vasi* / System Administrator
ugo.vasi@procne.it <ma...@procne.it>




*Procne S.r.l.*
+39 0432 486 523
via Cotonificio, 45
33010 Tavagnacco (UD)
www.procne.it <http://www.procne.it/>


Le informazioni contenute nella presente comunicazione ed i relativi 
allegati possono essere riservate e sono, comunque, destinate 
esclusivamente alle persone od alla Società sopraindicati. La 
diffusione, distribuzione e/o copiatura del documento trasmesso da parte 
di qualsiasi soggetto diverso dal destinatario è proibita sia ai sensi 
dell'art. 616 c.p., che ai sensi del Decreto Legislativo n. 196/2003 
"Codice in materia di protezione dei dati personali". Se avete ricevuto 
questo messaggio per errore, vi preghiamo di distruggerlo e di informare 
immediatamente Procne S.r.l. scrivendo all' indirizzo e-mail 
info@procne.it <ma...@procne.it>.


Re: CPU live migration question

Posted by Andrija Panic <an...@gmail.com>.
Ugo,

as long as the CPU flags are same or newer than the existing hosts in
cluster, it's 100% safe operation in regards to live migrations.

But as Piotr said, if you are using some level of emulation of CPU model
(versus hos-passthrough), then you might be good even with slighly older
CPU on this new hosts that you want to add to a cluster.

Do some reading around libvirt CPU model and simply just add one host and
test live migration - as simple as that.

Kind regards,

Andrija

On Tue, 19 Feb 2019 at 12:39, Piotr Pisz <pi...@piszki.pl> wrote:

> Hi Ugo,
>
> [root@cstack-1 ~]# cat /etc/cloudstack/agent/agent.properties  |grep passt
> guest.cpu.mode=host-passthrough
>
> The CPU model determines everything, if you have a passthrough it will be
> difficult or not possible.
> But if you have emulated it is no problem (eg you set up SandyBridge
> everywhere).
>
> Regards,
> Piotr
>
>
> -----Original Message-----
> From: Ugo Vasi <ug...@procne.it.INVALID>
> Sent: Tuesday, February 19, 2019 12:27 PM
> To: users@cloudstack.apache.org
> Subject: CPU live migration question
>
> Hi all,
> I would like to know if it is possible to add to an existing cluster a host
> that has the cpu different from that of the pre-existing hosts or which
> features must be the same.
>
> I have read around that there may be problems at the libvirt level but it
> is
> not clear to me which parameters must match.
>
> Thanks
> --
>
> *Ugo Vasi* / System Administrator
> ugo.vasi@procne.it <ma...@procne.it>
>
>
>
>
> *Procne S.r.l.*
> +39 0432 486 523
> via Cotonificio, 45
> 33010 Tavagnacco (UD)
> www.procne.it <http://www.procne.it/>
>
>
> Le informazioni contenute nella presente comunicazione ed i relativi
> allegati possono essere riservate e sono, comunque, destinate
> esclusivamente
> alle persone od alla Società sopraindicati. La diffusione, distribuzione
> e/o
> copiatura del documento trasmesso da parte di qualsiasi soggetto diverso
> dal
> destinatario è proibita sia ai sensi dell'art. 616 c.p., che ai sensi del
> Decreto Legislativo n. 196/2003 "Codice in materia di protezione dei dati
> personali". Se avete ricevuto questo messaggio per errore, vi preghiamo di
> distruggerlo e di informare immediatamente Procne S.r.l. scrivendo all'
> indirizzo e-mail info@procne.it <ma...@procne.it>.
>
>
>

-- 

Andrija Panić

RE: CPU live migration question

Posted by Piotr Pisz <pi...@piszki.pl>.
Hi Ugo,

[root@cstack-1 ~]# cat /etc/cloudstack/agent/agent.properties  |grep passt
guest.cpu.mode=host-passthrough

The CPU model determines everything, if you have a passthrough it will be
difficult or not possible. 
But if you have emulated it is no problem (eg you set up SandyBridge
everywhere).

Regards,
Piotr


-----Original Message-----
From: Ugo Vasi <ug...@procne.it.INVALID> 
Sent: Tuesday, February 19, 2019 12:27 PM
To: users@cloudstack.apache.org
Subject: CPU live migration question

Hi all,
I would like to know if it is possible to add to an existing cluster a host
that has the cpu different from that of the pre-existing hosts or which
features must be the same.

I have read around that there may be problems at the libvirt level but it is
not clear to me which parameters must match.

Thanks
-- 

*Ugo Vasi* / System Administrator
ugo.vasi@procne.it <ma...@procne.it>




*Procne S.r.l.*
+39 0432 486 523
via Cotonificio, 45
33010 Tavagnacco (UD)
www.procne.it <http://www.procne.it/>


Le informazioni contenute nella presente comunicazione ed i relativi
allegati possono essere riservate e sono, comunque, destinate esclusivamente
alle persone od alla Società sopraindicati. La diffusione, distribuzione e/o
copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal
destinatario è proibita sia ai sensi dell'art. 616 c.p., che ai sensi del
Decreto Legislativo n. 196/2003 "Codice in materia di protezione dei dati
personali". Se avete ricevuto questo messaggio per errore, vi preghiamo di
distruggerlo e di informare immediatamente Procne S.r.l. scrivendo all'
indirizzo e-mail info@procne.it <ma...@procne.it>.