ports duplication in the VM XML when using heat and multiple networks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
David Edery | ||
Liberty |
Fix Released
|
Medium
|
David Edery |
Bug Description
On latest devstack with the following (part of) local.conf:
REGION_
Q_PLUGIN=ml2
ENABLE_
ML2_VLAN_
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
enable_service h-eng h-api h-api-cfn h-api-cw
After a successful stack.sh, run:
neutron quota-update --network 100 --subnet 100 --port 100
Run the following script to create networks:
#!/bin/bash
NET_NUM=20
while [ $NET_NUM -gt 0 ]; do
neutron net-create NET_${NET_NUM}
neutron subnet-create --name 10.21.$
NET_
done
Create an instance with 20 ports using the following HEAT template:
heat_template_
description: >
HOT template that just defines a single compute instance.
Contains just base features.
resources:
ovs_port_1:
type: OS::Neutron::Port
properties:
ovs_port_2:
type: OS::Neutron::Port
properties:
ovs_port_3:
type: OS::Neutron::Port
properties:
ovs_port_4:
type: OS::Neutron::Port
properties:
ovs_port_5:
type: OS::Neutron::Port
properties:
ovs_port_6:
type: OS::Neutron::Port
properties:
ovs_port_7:
type: OS::Neutron::Port
properties:
ovs_port_8:
type: OS::Neutron::Port
properties:
ovs_port_9:
type: OS::Neutron::Port
properties:
ovs_port_10:
type: OS::Neutron::Port
properties:
ovs_port_11:
type: OS::Neutron::Port
properties:
ovs_port_12:
type: OS::Neutron::Port
properties:
ovs_port_13:
type: OS::Neutron::Port
properties:
ovs_port_14:
type: OS::Neutron::Port
properties:
ovs_port_15:
type: OS::Neutron::Port
properties:
ovs_port_16:
type: OS::Neutron::Port
properties:
ovs_port_17:
type: OS::Neutron::Port
properties:
ovs_port_18:
type: OS::Neutron::Port
properties:
ovs_port_19:
type: OS::Neutron::Port
properties:
ovs_port_20:
type: OS::Neutron::Port
properties:
ovs_instance:
type: OS::Nova::Server
properties:
image: cirros-
flavor: m1.nano
- port: { get_resource: ovs_port_1 }
- port: { get_resource: ovs_port_2 }
- port: { get_resource: ovs_port_3 }
- port: { get_resource: ovs_port_4 }
- port: { get_resource: ovs_port_5 }
- port: { get_resource: ovs_port_6 }
- port: { get_resource: ovs_port_7 }
- port: { get_resource: ovs_port_8 }
- port: { get_resource: ovs_port_9 }
- port: { get_resource: ovs_port_10 }
- port: { get_resource: ovs_port_11 }
- port: { get_resource: ovs_port_12 }
- port: { get_resource: ovs_port_13 }
- port: { get_resource: ovs_port_14 }
- port: { get_resource: ovs_port_15 }
- port: { get_resource: ovs_port_16 }
- port: { get_resource: ovs_port_17 }
- port: { get_resource: ovs_port_18 }
- port: { get_resource: ovs_port_19 }
- port: { get_resource: ovs_port_20 }
The stack creation fails and nova conductor (n-cond) shows:
2015-12-02 20:07:26.944 ERROR nova.scheduler.
Looking at the generated VM XML file there are duplications of (some of) the ports which causes the above.
Changed in neutron: | |
assignee: | nobody → David Edery (david-edery) |
affects: | neutron → nova-project |
no longer affects: | neutron |
affects: | nova-project → nova |
description: | updated |
Changed in nova: | |
importance: | Undecided → Medium |
This happens also in RH's distro (validated on Juno & Kilo)