Description of problem: ======================= I tried to install openstack all-in-one via packstack. neutron configuration set to ML2 with OVS+GRE, using VLAN network for external connectivity. Neutron related configuration: CONFIG_NEUTRON_INSTALL=y CONFIG_NEUTRON_SERVER_HOST=192.168160.23 CONFIG_NEUTRON_KS_PW=123456 CONFIG_NEUTRON_DB_PW=123456 CONFIG_NEUTRON_L3_HOSTS=192.168160.23 CONFIG_NEUTRON_L3_EXT_BRIDGE=br-ex CONFIG_NEUTRON_DHCP_HOSTS=192.168160.23 CONFIG_NEUTRON_LBAAS_HOSTS= CONFIG_NEUTRON_L2_PLUGIN=ml2 CONFIG_NEUTRON_METADATA_HOSTS=192.168160.23 CONFIG_NEUTRON_METADATA_PW=123456 CONFIG_NEUTRON_ML2_TYPE_DRIVERS=gre,vlan CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=gre CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch CONFIG_NEUTRON_ML2_FLAT_NETWORKS=* CONFIG_NEUTRON_ML2_VLAN_RANGES=ext_net:185:185 CONFIG_NEUTRON_ML2_TUNNEL_ID_RANGES=1:1000 CONFIG_NEUTRON_ML2_VXLAN_GROUP= CONFIG_NEUTRON_ML2_VNI_RANGES= CONFIG_NEUTRON_L2_AGENT=openvswitch CONFIG_NEUTRON_LB_TENANT_NETWORK_TYPE=local CONFIG_NEUTRON_LB_VLAN_RANGES= CONFIG_NEUTRON_LB_INTERFACE_MAPPINGS= CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=gre CONFIG_NEUTRON_OVS_VLAN_RANGES=ext_net:185:185 CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=ext_net:br-ex CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:enp4s0f1.185 CONFIG_NEUTRON_OVS_TUNNEL_RANGES=1:1000 CONFIG_NEUTRON_OVS_TUNNEL_IF=enp4s0f1 CONFIG_NEUTRON_OVS_VXLAN_UDP_PORT=4789 Version-Release number of selected component (if applicable): ============================================================= RHOS Icehouse: openstack-puppet-modules-2014.1-9.el7ost.noarch openstack-packstack-2014.1.1-0.11.1.dev1055.el7ost.noarch openstack-packstack-puppet-2014.1.1-0.11.1.dev1055.el7ost.noarch How reproducible: ================= 1/1 Steps to Reproduce: =================== Use packstack to install openstack with the neutron attributes mentioned above. Actual results: =============== 2014-05-11 14:53:53::DEBUG::sequences::39::root:: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 37, in run self.function(config) File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 190, in applyPuppetManifest waitforpuppet(currently_running) File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 165, in waitforpuppet validate_logfile(log) File "/usr/lib/python2.7/site-packages/packstack/modules/puppet.py", line 91, in validate_logfile raise PuppetError(message) PuppetError: Error appeared during Puppet run: 192.168.160.23_neutron.pp Error: Duplicate declaration: Package[neutron-plugin-ovs] is already declared in file /var/tmp/packstack/f18cb8fa42d243a7b836a8ce56337f2b/manifests/192.168.160.23_neutron.pp:69; cannot redeclare at /var/tmp/packstack/f18cb8fa42d243a7b836a8ce56337f2b/modules/neutron/manifests/plugins/ml2.pp:164 on node <FQDN>^[[0m You will find full trace in log /var/tmp/packstack/20140511-142259-ueEpJH/manifests/192.168.160.23_neutron.pp.log 2014-05-11 14:53:53::ERROR::run_setup::892::root:: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 887, in main _main(confFile) File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 574, in _main runSequences() File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 553, in runSequences controller.runAllSequences() File "/usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py", line 84, in runAllSequences sequence.run(self.CONF) File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 96, in run step.run(config=config) File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 43, in run raise SequenceError(str(ex)) SequenceError: Error appeared during Puppet run: 192.168.160.23_neutron.pp Error: Duplicate declaration: Package[neutron-plugin-ovs] is already declared in file /var/tmp/packstack/f18cb8fa42d243a7b836a8ce56337f2b/manifests/192.168.160.23_neutron.pp:69; cannot redeclare at /var/tmp/packstack/f18cb8fa42d243a7b836a8ce56337f2b/modules/neutron/manifests/plugins/ml2.pp:164 on node <FQDN>^[[0m You will find full trace in log /var/tmp/packstack/20140511-142259-ueEpJH/manifests/192.168.160.23_neutron.pp.log Expected results: ================= Should successfully install.
Reproduced again with: ====================== openstack-packstack-puppet-2014.1.1-0.11.1.dev1055.el7ost.noarch openstack-packstack-2014.1.1-0.11.1.dev1055.el7ost.noarch openstack-puppet-modules-2014.1-9.el7ost.noarch Tested ML2 OVS+VXLAN and ML2 OVS+VLANs , both failed. ML2 OVS+VXLAN packstack answer file (neutron configs): ====================================================== CONFIG_NEUTRON_INSTALL=y CONFIG_NEUTRON_SERVER_HOST=192.168.160.29 CONFIG_NEUTRON_KS_PW=123456 CONFIG_NEUTRON_DB_PW=123456 CONFIG_NEUTRON_L3_HOSTS=192.168.160.29 CONFIG_NEUTRON_L3_EXT_BRIDGE=br-ex CONFIG_NEUTRON_DHCP_HOSTS=192.168.160.29 CONFIG_NEUTRON_LBAAS_HOSTS= CONFIG_NEUTRON_L2_PLUGIN=ml2 CONFIG_NEUTRON_METADATA_HOSTS=192.168.160.29 CONFIG_NEUTRON_METADATA_PW=123456 CONFIG_NEUTRON_ML2_TYPE_DRIVERS=vxlan,vlan CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=vxlan CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch CONFIG_NEUTRON_ML2_FLAT_NETWORKS=* CONFIG_NEUTRON_ML2_VLAN_RANGES=ext_net:185:185 CONFIG_NEUTRON_ML2_TUNNEL_ID_RANGES=1:1000 CONFIG_NEUTRON_ML2_VXLAN_GROUP=224.0.0.1 CONFIG_NEUTRON_ML2_VNI_RANGES=1:1000 CONFIG_NEUTRON_L2_AGENT=openvswitch CONFIG_NEUTRON_LB_TENANT_NETWORK_TYPE=local CONFIG_NEUTRON_LB_VLAN_RANGES= CONFIG_NEUTRON_LB_INTERFACE_MAPPINGS= CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=vxlan CONFIG_NEUTRON_OVS_VLAN_RANGES=ext_net:185:185 CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=ext_net:br-ex CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:enp4s0f1.185 CONFIG_NEUTRON_OVS_TUNNEL_RANGES=1:1000 CONFIG_NEUTRON_OVS_TUNNEL_IF=enp4s0f1 CONFIG_NEUTRON_OVS_VXLAN_UDP_PORT=4789 Resulted the following Traceback: ================================= 2014-05-12 15:10:13::DEBUG::sequences::39::root:: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 37, in run self.function(config) File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 190, in applyPuppetManifest waitforpuppet(currently_running) File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 165, in waitforpuppet validate_logfile(log) File "/usr/lib/python2.7/site-packages/packstack/modules/puppet.py", line 91, in validate_logfile raise PuppetError(message) PuppetError: Error appeared during Puppet run: 192.168.160.29_neutron.pp Error: Duplicate declaration: Package[neutron-plugin-ovs] is already declared in file /var/tmp/packstack/e681987d232f4fea9fc994ad812580c8/manifests/192.168.160.29_neutron.pp:69; cannot redeclare at /var/tmp/packstack/e681987d232f4fea9fc994ad812580c8/modules/neutron/manifests/plugins/ml2.pp:164 on node <FQDN>^[[0m You will find full trace in log /var/tmp/packstack/20140512-145759-l5WsvD/manifests/192.168.160.29_neutron.pp.log 2014-05-12 15:10:13::ERROR::run_setup::892::root:: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 887, in main _main(confFile) File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 574, in _main runSequences() File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 553, in runSequences controller.runAllSequences() File "/usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py", line 84, in runAllSequences sequence.run(self.CONF) File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 96, in run step.run(config=config) File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 43, in run raise SequenceError(str(ex)) SequenceError: Error appeared during Puppet run: 192.168.160.29_neutron.pp Error: Duplicate declaration: Package[neutron-plugin-ovs] is already declared in file /var/tmp/packstack/e681987d232f4fea9fc994ad812580c8/manifests/192.168.160.29_neutron.pp:69; cannot redeclare at /var/tmp/packstack/e681987d232f4fea9fc994ad812580c8/modules/neutron/manifests/plugins/ml2.pp:164 on node <FQDN>^[[0m ML2 OVS+VLANs packstack answer file (neutron configs): ====================================================== CONFIG_NEUTRON_INSTALL=y CONFIG_NEUTRON_SERVER_HOST=192.168.160.27 CONFIG_NEUTRON_KS_PW=123456 CONFIG_NEUTRON_DB_PW=123456 CONFIG_NEUTRON_L3_HOSTS=192.168.160.27 CONFIG_NEUTRON_L3_EXT_BRIDGE=br-ex CONFIG_NEUTRON_DHCP_HOSTS=192.168.160.27 CONFIG_NEUTRON_LBAAS_HOSTS= CONFIG_NEUTRON_L2_PLUGIN=ml2 CONFIG_NEUTRON_METADATA_HOSTS=192.168.160.27 CONFIG_NEUTRON_METADATA_PW=123456 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=int_vlan_range:208:210,ext_net:186:186 CONFIG_NEUTRON_ML2_TUNNEL_ID_RANGES= CONFIG_NEUTRON_ML2_VXLAN_GROUP= CONFIG_NEUTRON_ML2_VNI_RANGES= CONFIG_NEUTRON_L2_AGENT=openvswitch CONFIG_NEUTRON_LB_TENANT_NETWORK_TYPE=local CONFIG_NEUTRON_LB_VLAN_RANGES= CONFIG_NEUTRON_LB_INTERFACE_MAPPINGS= CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=vlan CONFIG_NEUTRON_OVS_VLAN_RANGES=int_vlan_range:208:210,ext_net:186:186 CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=int_vlan_range:br-nodes,ext_net:br-ex CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-nodes:enp4s0f1,br-ex:enp4s0f1.186 CONFIG_NEUTRON_OVS_TUNNEL_RANGES= CONFIG_NEUTRON_OVS_TUNNEL_IF= CONFIG_NEUTRON_OVS_VXLAN_UDP_PORT=4789 Resulted the following Traceback: ================================= 2014-05-12 15:26:34::DEBUG::sequences::39::root:: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 37, in run self.function(config) File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 190, in applyPuppetManifest waitforpuppet(currently_running) File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 165, in waitforpuppet validate_logfile(log) File "/usr/lib/python2.7/site-packages/packstack/modules/puppet.py", line 91, in validate_logfile raise PuppetError(message) PuppetError: Error appeared during Puppet run: 192.168.160.27_neutron.pp Error: Duplicate declaration: Package[neutron-plugin-ovs] is already declared in file /var/tmp/packstack/91e7f59b7f3743e7a93c4a3e4b5feb27/manifests/192.168.160.27_neutron.pp:69; cannot redeclare at /var/tmp/packstack/91e7f59b7f3743e7a93c4a3e4b5feb27/modules/neutron/manifests/plugins/ml2.pp:164 on node <FQDN>^[[0m You will find full trace in log /var/tmp/packstack/20140512-151604-8kSj_f/manifests/192.168.160.27_neutron.pp.log 2014-05-12 15:26:34::ERROR::run_setup::892::root:: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 887, in main _main(confFile) File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 574, in _main runSequences() File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 553, in runSequences controller.runAllSequences() File "/usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py", line 84, in runAllSequences sequence.run(self.CONF) File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 96, in run step.run(config=config) File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 43, in run raise SequenceError(str(ex)) SequenceError: Error appeared during Puppet run: 192.168.160.27_neutron.pp Error: Duplicate declaration: Package[neutron-plugin-ovs] is already declared in file /var/tmp/packstack/91e7f59b7f3743e7a93c4a3e4b5feb27/manifests/192.168.160.27_neutron.pp:69; cannot redeclare at /var/tmp/packstack/91e7f59b7f3743e7a93c4a3e4b5feb27/modules/neutron/manifests/plugins/ml2.pp:164 on node <FQDN>^[[0m
We will need to also update puppet-neutron module: https://github.com/redhat-openstack/openstack-puppet-modules/pull/41
Issue should be fixed with openstack-packstack-2014.1.1-0.14.dev1068.el7ost and openstack-puppet-modules-2014.1-11.el7ost.
Latest build include the fix
Tested ML2 with VLAN and it works openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7ost.noarch openstack-packstack-2014.1.1-0.14.dev1068.el7ost.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-0846.html