Nova mess up interfaces when restart the instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
High
|
MOS Nova | ||
6.1.x |
Fix Released
|
High
|
Alex Ermolov | ||
7.0.x |
Invalid
|
High
|
MOS Maintenance | ||
8.0.x |
Invalid
|
High
|
MOS Nova |
Bug Description
Fuel 6.1 Ubuntu
Same problem as described here:
https:/
Here’s the initial XML file… (notice the timestamp)…
root@compute5:
-rw-r--r-- 1 nova nova 3489 Sep 18 12:22 libvirt.xml
Here’s my initial XML config for the 3 interfaces…
<interface type="bridge">
<mac address=
<model type="virtio"/>
<source bridge=
<target dev="tapfcddbc8
</interface>
<interface type="bridge">
<mac address=
<model type="virtio"/>
<source bridge=
<target dev="tap541af05
</interface>
<interface type="bridge">
<mac address=
<model type="virtio"/>
<source bridge=
<target dev="tap0e5b1db
</interface>
Here’s are the interfaces seen on the VM (notice how the MACs line up with the XML file)…
{here is the output of "ifconfig" - eth0, eth1 and eth2 have the same order of mac adsresses}
Here’s the XML file after a power-cycle of the VM via Horizon… (notice the timestamp)…
root@compute5:
-rw-r--r-- 1 nova nova 3489 Sep 18 12:48 libvirt.xml
Here’s my XML config for the 3 interfaces after a power-cycle from Horizon (notice that the MAC order has changed)….
<interface type="bridge">
<mac address=
<model type="virtio"/>
<source bridge=
<target dev="tap0e5b1db
</interface>
<interface type="bridge">
<mac address=
<model type="virtio"/>
<source bridge=
<target dev="tap541af05
</interface>
<interface type="bridge">
<mac address=
<model type="virtio"/>
<source bridge=
<target dev="tapfcddbc8
</interface>
Here’s are the interfaces seen on the VM (notice how the MACs line up with the XML file and the IP addresses are now assigned to the worn interfaces)…
{here is the output of "ifconfig" - eth0, eth1 and eth2 have the same order of mac addsresses which differs from the original one}
-------
Step 2:
The patch from Kilo has been backported and applied. Now the situation is a bit different:
Originally the instance is created with the interface order according "nova boot" command. After hard reboot it sorts the ports alphabetically.
Changed in mos: | |
assignee: | nobody → MOS Nova (mos-nova) |
Changed in mos: | |
importance: | Undecided → High |
milestone: | none → 7.0-mu-1 |
status: | New → Confirmed |
Changed in mos: | |
milestone: | 7.0-mu-1 → 6.1-updates |
no longer affects: | mos/7.0.x |
tags: | added: support |
tags: | added: on-verification |
Fix proposed to branch: openstack- ci/fuel- 6.1/2014. 2 /review. fuel-infra. org/12391
Change author: Vishvananda Ishaya <email address hidden>
Review: https:/