
Hi all, I added a new nic on all my vms, but the MAC address pool was too small. So I extended it from 00:1a:4a:22:1f:00 to 00:1a:4a:22:1f:ff => 00:1a:4a:22:1e:00 to 00:1a:4a:22:1f:ff. It was okay but when rebooting some vms, nics are interverted and I couldn't join my vm on ip! I noticed nics were ordered now from the smallest MAC address to the greatest one, so the last plugged nic from the new pool was now the first in the vm, and all nics were moved at the bottom. Is it an expected behaviour? -- Nathanaël Blanchet Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr

On Wed, May 31, 2017 at 8:23 PM, Nathanaël Blanchet <blanchet@abes.fr> wrote:
Hi all,
I added a new nic on all my vms, but the MAC address pool was too small. So I extended it from 00:1a:4a:22:1f:00 to 00:1a:4a:22:1f:ff => 00:1a:4a:22:1e:00 to 00:1a:4a:22:1f:ff.
It was okay but when rebooting some vms, nics are interverted and I couldn't join my vm on ip!
I noticed nics were ordered now from the smallest MAC address to the greatest one, so the last plugged nic from the new pool was now the first in the vm, and all nics were moved at the bottom.
Is it an expected behaviour?
No. As far as I recall, and Yevgeny can add more details, reordering of vNICs happens only when allocating multiple nics in the initial definition of a VM; but not on plugging of a nic to an existing VM. Which version of ovirt-engine do you use?

On Wed, May 31, 2017 at 8:23 PM, Nathana=C3=ABl Blanchet <blanchet@abes= .fr> wrote:
Hi all,
I added a new nic on all my vms, but the MAC address pool was too smal= l. So I extended it from 00:1a:4a:22:1f:00 to 00:1a:4a:22:1f:ff =3D> 00:1a:4a:22:1e:00 to 00:1a:4a:22:1f:ff.
It was okay but when rebooting some vms, nics are interverted and I co=
This is a multi-part message in MIME format. --------------246ED9579475309CDBA30CB6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Le 01/06/2017 =C3=A0 12:39, Dan Kenigsberg a =C3=A9crit : uldn't
join my vm on ip!
I noticed nics were ordered now from the smallest MAC address to the greatest one, so the last plugged nic from the new pool was now the fi= rst in the vm, and all nics were moved at the bottom.
Is it an expected behaviour? No. As far as I recall, and Yevgeny can add more details, reordering of vNICs happens only when allocating multiple nics in the initial definition of a VM; but not on plugging of a nic to an existing VM.
Which version of ovirt-engine do you use? oVirt Engine Version: 4.1.2.2-1.el7.centos
--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr --------------246ED9579475309CDBA30CB6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Ty= pe"> </head> <body bgcolor=3D"#FFFFFF" text=3D"#000000"> <p><br> </p> <br> <div class=3D"moz-cite-prefix">Le 01/06/2017 =C3=A0 12:39, Dan Kenigs= berg a =C3=A9crit=C2=A0:<br> </div> <blockquote cite=3D"mid:CAHOEP56NYcYHT4_ST_bfo2xDcF5eDzwDdi2Otm0g4FgMHYcwkw@mail.gmai= l.com" type=3D"cite"> <pre wrap=3D"">On Wed, May 31, 2017 at 8:23 PM, Nathana=C3=ABl Blan= chet <a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:blanchet@abes.fr">= <blanchet@abes.fr></a> wrote: </pre> <blockquote type=3D"cite"> <pre wrap=3D"">Hi all, I added a new nic on all my vms, but the MAC address pool was too small. = So I extended it from 00:1a:4a:22:1f:00 to 00:1a:4a:22:1f:ff =3D> 00:1a:4a:22:1e:00 to 00:1a:4a:22:1f:ff. It was okay but when rebooting some vms, nics are interverted and I could= n't join my vm on ip! I noticed nics were ordered now from the smallest MAC address to the greatest one, so the last plugged nic from the new pool was now the first= in the vm, and all nics were moved at the bottom. Is it an expected behaviour? </pre> </blockquote> <pre wrap=3D""> No. As far as I recall, and Yevgeny can add more details, reordering of vNICs happens only when allocating multiple nics in the initial definition of a VM; but not on plugging of a nic to an existing VM. Which version of ovirt-engine do you use?</pre> </blockquote> <span class=3D"gwt-InlineLabel">oVirt Engine Version: 4.1.2.2-1.el7.centos</span> <blockquote cite=3D"mid:CAHOEP56NYcYHT4_ST_bfo2xDcF5eDzwDdi2Otm0g4FgMHYcwkw@mail.gmai= l.com" type=3D"cite"> <pre wrap=3D""> </pre> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr">bl= anchet@abes.fr</a> </pre> </body> </html> --------------246ED9579475309CDBA30CB6--

You can activate reordering by using oVirt REST API. Sending POST request to http://${engine_address}/vms/${vm_id}/reordermacaddresses URL should do the job. Please note that it would reorder all vnics of the VM that PCI address wasn't assigned to them, in other words the VM wasn't run since the vnic was added to it. On Thu, Jun 1, 2017 at 2:57 PM, Nathanaël Blanchet <blanchet@abes.fr> wrote:
Le 01/06/2017 à 12:39, Dan Kenigsberg a écrit :
On Wed, May 31, 2017 at 8:23 PM, Nathanaël Blanchet <blanchet@abes.fr> <blanchet@abes.fr> wrote:
Hi all,
I added a new nic on all my vms, but the MAC address pool was too small. So I extended it from 00:1a:4a:22:1f:00 to 00:1a:4a:22:1f:ff => 00:1a:4a:22:1e:00 to 00:1a:4a:22:1f:ff.
It was okay but when rebooting some vms, nics are interverted and I couldn't join my vm on ip!
I noticed nics were ordered now from the smallest MAC address to the greatest one, so the last plugged nic from the new pool was now the first in the vm, and all nics were moved at the bottom.
Is it an expected behaviour?
No. As far as I recall, and Yevgeny can add more details, reordering of vNICs happens only when allocating multiple nics in the initial definition of a VM; but not on plugging of a nic to an existing VM.
Which version of ovirt-engine do you use?
oVirt Engine Version: 4.1.2.2-1.el7.centos
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr

Sorry, please ignore my suggestion. Now I realize that you actually want to avoid re-ordering. On Wed, Jun 7, 2017 at 2:05 PM, Yevgeny Zaspitsky <yzaspits@redhat.com> wrote:
You can activate reordering by using oVirt REST API. Sending POST request to http://${engine_address}/vms/${vm_id}/reordermacaddresses URL should do the job. Please note that it would reorder all vnics of the VM that PCI address wasn't assigned to them, in other words the VM wasn't run since the vnic was added to it.
On Thu, Jun 1, 2017 at 2:57 PM, Nathanaël Blanchet <blanchet@abes.fr> wrote:
Le 01/06/2017 à 12:39, Dan Kenigsberg a écrit :
On Wed, May 31, 2017 at 8:23 PM, Nathanaël Blanchet <blanchet@abes.fr> <blanchet@abes.fr> wrote:
Hi all,
I added a new nic on all my vms, but the MAC address pool was too small. So I extended it from 00:1a:4a:22:1f:00 to 00:1a:4a:22:1f:ff => 00:1a:4a:22:1e:00 to 00:1a:4a:22:1f:ff.
It was okay but when rebooting some vms, nics are interverted and I couldn't join my vm on ip!
I noticed nics were ordered now from the smallest MAC address to the greatest one, so the last plugged nic from the new pool was now the first in the vm, and all nics were moved at the bottom.
Is it an expected behaviour?
No. As far as I recall, and Yevgeny can add more details, reordering of vNICs happens only when allocating multiple nics in the initial definition of a VM; but not on plugging of a nic to an existing VM.
Which version of ovirt-engine do you use?
oVirt Engine Version: 4.1.2.2-1.el7.centos
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
participants (3)
-
Dan Kenigsberg
-
Nathanaël Blanchet
-
Yevgeny Zaspitsky