RDO provision with VLAN and physical network ERROR : Error appeared during Puppet run: 10.45.12.105_neutron.pp

asked 2014-12-10 16:49:25 -0500

mjs gravatar image

updated 2014-12-10 23:24:48 -0500

dbaxps gravatar image

ERROR : Error appeared during Puppet run: 10.45.12.105_neutron.pp Error: Duplicate declaration: Vs_bridge[br-enp2s0f1] is already declared in file /var/tmp/packstack/bb24938f61c144eeada47a560211a48d/manifests/10.45.12.105_neutron.pp:99; cannot redeclare at /var/tmp/packstack/bb24938f61c144eeada47a560211a48d/modules/neutron/manifests/plugins/ovs/bridge.pp:9 on node host105

emp2s0f1 is my physical NIC name. Part of the answer file about neutron:

CONFIG_NEUTRON_METERING_AGENT_INSTALL=n
CONFIG_NEUTRON_FWAAS=n
CONFIG_NEUTRON_ML2_TYPE_DRIVERS=vlan
CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=vlan
CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch
CONFIG_NEUTRON_ML2_FLAT_NETWORKS=*
CONFIG_NEUTRON_ML2_VLAN_RANGES=
CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=vlan
CONFIG_NEUTRON_OVS_VLAN_RANGES=physnet1:513:620
CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=physnet1:br-enp2s0f1
CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-enp2s0f1:enp2s0f1

Many thanks if any hint on the problem? thanks! it happens many times

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
2

answered 2015-02-25 05:27:39 -0500

Simhon Doctori gravatar image

Hi, I had the same problem on Centos7 and Junos. It was solved for me after removing the setting on CONFIG_NEUTRON_OVS_BRIDGE_IFACES.

I don't know if it is related but I had to run packstack as root because it failed to excute /usr/bin/systemctl start neutron-openvswitch-agent' :

Error: Could not start Service[neutron-ovs-agent-service]: Execution of '/usr/bin/systemctl start neutron-openvswitch-agent' returned 6: Failed to issue method call: Unit neutron-openvswitch-agent.service failed to load: No such file or directory. Wrapped exception: Execution of '/usr/bin/systemctl start neutron-openvswitch-agent' returned 6: Failed to issue method call: Unit neutron-openvswitch-agent.service failed to load: No such file or directory. Error: /Stage[main]/Neutron::Agents::Ml2::Ovs/Service[neutron-ovs-agent-service]/ensure: change from stopped to running failed: Could not start Service[neutron-ovs-agent-service]: Execution of '/usr/bin/systemctl start neutron-openvswitch-agent' returned 6: Failed to issue method call: Unit neutron-openvswitch-agent.service failed to load: No such file or directory.

But eventually, all worked out well.

Please note that I had to fix the ovs bridge setting manually to make the VM work properly. Which means I had to connect br-int to br-ext using the patch interface.

Good luck. Simhon Doctori.

edit flag offensive delete link more

Comments

I followed Simhon's advise and it worked fine. Basically comment out CONFIG_NEUTRON_OVS_BRIDGE_IFACES in answer file.

Now make sure you manually add the relevant interface into the relevant bridge (if its not already added). I guess this is what CONFIG_NEUTRON_OVS_BRIDGE_IFACES is all about.

osdiaj gravatar imageosdiaj ( 2015-03-12 02:01:05 -0500 )edit
0

answered 2014-12-10 23:45:27 -0500

dbaxps gravatar image

Please, view:
1. RDO Setup Two Real Node (Controller+Compute) IceHouse Neutron ML2&OVS&VLAN Cluster on CentOS 7
2. RDO Setup Two Real Node (Controller+Compute) IceHouse Neutron ML2&OVS&VLAN Cluster on Fedora 20
Working samples of answer files inside.

[root@icehouse1 neutron]# cat plugin.ini
[ml2]
type_drivers = vlan
tenant_network_types = vlan
mechanism_drivers = openvswitch
[ml2_type_vlan]
network_vlan_ranges = physnet1:100:200
[ovs]
network_vlan_ranges = physnet1:100:200
tenant_network_type = vlan
enable_tunneling = False
integration_bridge = br-int
bridge_mappings = physnet1:br-enp5s1
local_ip = 192.168.1.127
[AGENT]
polling_interval = 2
[SECURITYGROUP]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
edit flag offensive delete link more

Comments

HI All, is there a way to get past this issue? I am hitting the same issue during packstack run on CentOS with Juno.

Chandra gravatar imageChandra ( 2015-01-10 20:32:43 -0500 )edit
0

answered 2014-12-15 16:51:52 -0500

mjs gravatar image

Thanks for the response! I tried but still didn't work.

But the problem is conflict between 10.45.12.105_neutron.pp and bridge.pp, both of them declared the same bridge br-enp2s0f1, the pupet is not working.

Then it is not sure how to configure the file! configuration problem happened with: CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=physnet1:br-enp5s1 CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-enp5s1:enp5s1

Error: Duplicate declaration: Vs_bridge[br-enp2s0f1] is already declared in file /var/tmp/packstack/bb24938f61c144eeada47a560211a48d/manifests/10.45.12.105_neutron.pp:99; cannot redeclare at /var/tmp/packstack/bb24938f61c144eeada47a560211a48d/modules/neutron/manifests/plugins/ovs/bridge.pp:9

Thanks!

edit flag offensive delete link more

Comments

There is a bug on this https://bugzilla.redhat.com/show_bug....

Not sure how to workaround it...I'm exploring too

osdiaj gravatar imageosdiaj ( 2015-03-12 01:32:28 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-10 16:49:25 -0500

Seen: 1,837 times

Last updated: Dec 15 '14