Bug 1096510

Summary: Packstack failed to install openstack with neutron ML2
Product: Red Hat OpenStack Reporter: Nir Magnezi <nmagnezi>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED ERRATA QA Contact: Ofer Blaut <oblaut>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: acathrow, aortega, apevec, derekh, fvollero, ichavero, lhh, mmagr, oblaut, yeylon
Target Milestone: rcKeywords: Regression, TestBlocker
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-packstack-2014.1.1-0.14.dev1068.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:38:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1056605, 1056612, 1056614    

Description Nir Magnezi 2014-05-11 12:35:58 UTC
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.

Comment 4 Nir Magnezi 2014-05-12 12:36:12 UTC
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

Comment 5 Martin Magr 2014-05-13 15:15:47 UTC
We will need to also update puppet-neutron module: https://github.com/redhat-openstack/openstack-puppet-modules/pull/41

Comment 6 Martin Magr 2014-05-14 12:36:37 UTC
Issue should be fixed with openstack-packstack-2014.1.1-0.14.dev1068.el7ost and openstack-puppet-modules-2014.1-11.el7ost.

Comment 7 Ofer Blaut 2014-05-25 09:54:18 UTC
Latest build include the fix

Comment 8 Ofer Blaut 2014-05-25 09:55:37 UTC
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

Comment 10 errata-xmlrpc 2014-07-08 15:38:22 UTC
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