vs_port not added when using bridge_uplinks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-neutron |
Triaged
|
Medium
|
Unassigned |
Bug Description
Given a hiera config like this:
bridge_mappings:
- 'physnet1:brex'
- 'physnet2:br-eth4'
bridge_uplinks:
- 'brex:eth3'
- 'br-eth4:eth4'
Steps to reproduce:
<email address hidden> /etc/neutron master; # We have two external networks brex and br-eth4
<email address hidden> /etc/neutron master; /usr/bin/ovs-vsctl list-ports brex
eth3
phy-brex
qg-4daea3ae-3a
<email address hidden> /etc/neutron master; /usr/bin/ovs-vsctl list-ports br-eth4
eth4
phy-br-eth4
<email address hidden> /etc/neutron master; # Now I will delete a port from brex and puppet will fix it
<email address hidden> /etc/neutron master; /usr/bin/ovs-vsctl del-port eth3
<email address hidden> /etc/neutron master; puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for network.
Info: Applying configuration version '1480595075'
Notice: /Stage[
Notice: Finished catalog run in 6.92 seconds
<email address hidden> /etc/neutron master; # Now I will delete a port from br-eth4 and puppet will fail
<email address hidden> /etc/neutron master; puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for network.
Info: Applying configuration version '1480595159'
Error: Execution of '/usr/bin/ovs-vsctl -- --id=@1 create Interface name=eth4 -- set Port eth4 interfaces=@1' returned 1: ovs-vsctl: no row "eth4" in table Port
Error: /Stage[
Notice: /Stage[
Notice: /Stage[
Warning: /Stage[
Notice: Finished catalog run in 6.95 seconds
<email address hidden> /etc/neutron master; # To fix it I have to manually readd the port
<email address hidden> /etc/neutron master; /usr/bin/ovs-vsctl add-port br-eth4 eth4
<email address hidden> /etc/neutron master; puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for network.
Info: Applying configuration version '1480595199'
Notice: /Stage[
Notice: Finished catalog run in 6.20 seconds
<email address hidden> /etc/neutron master;
Changed in puppet-neutron: | |
status: | New → Triaged |
importance: | Undecided → Medium |