Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1172129

Summary: neutron subnet-create error halts packstack installation
Product: Red Hat OpenStack Reporter: Mike Abrams <mabrams>
Component: openstack-packstackAssignee: Gaël Chamoulaud <gchamoul>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: high Docs Contact:
Priority: high    
Version: 5.0 (RHEL 7)CC: aortega, derekh, ichavero, jschluet, nyechiel, oblaut, sclewis, srevivo, yeylon
Target Milestone: gaKeywords: TestBlocker, ZStream
Target Release: 5.0 (RHEL 7)Flags: ichavero: internal-review+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-puppet-modules-2014.1.1-2.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1172265 1174413 (view as bug list) Environment:
Last Closed: 2015-07-28 15:10:28 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: 1172265, 1174413    
Attachments:
Description Flags
openstack setup log from /var/tmp/packstack
none
0001-Fix-the-subnet-dhcp-enable-disable-param.patch gchamoul: review? (ichavero)

Description Mike Abrams 2014-12-09 13:05:46 UTC
Created attachment 966219 [details]
openstack setup log from /var/tmp/packstack

Description of problem:

Upon fresh install according to instructions received, neutron subnet-create error halts packstack installation.


Version-Release number of selected component (if applicable):
5.0-RHEL-7-ADV vs 5.0-RHEL-7-ADV-Beta

How reproducible:
installation steps or packstack --answer-file=

Steps to Reproduce:
1. yum install -y
http://rhos-release.virt.bos.redhat.com/repos/rhos-release/rhos-release-latest.noarch.rpm
2. rhos-release 5a
3. yum install openstack-packstack
4. packstack --allinone

Actual results:
10.35.117.2_provision_demo.pp:                    [ ERROR ]                
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 10.35.117.2_provision_demo.pp
Error: Execution of '/usr/bin/neutron subnet-create --format=shell --name=public_subnet --enable-dhcp=False --tenant_id=6b40f07adb594bda881e89bb079f5ea9 public 172.24.4.224/28' returned 2: usage: neutron subnet-create [-h] [-f {shell,table}] [-c COLUMN]
You will find full trace in log /var/tmp/packstack/20141209-142959-kSCp8r/manifests/10.35.117.2_provision_demo.pp.log
Please check log file /var/tmp/packstack/20141209-142959-kSCp8r/openstack-setup.log for more information



Expected results:
installation should succceed.

Additional info:
attaching the setup log file above.

Comment 2 Lon Hohberger 2014-12-09 15:24:52 UTC
This looks like the new python-neutronclient command line changed vs. 2.3.6 in 5A, breaking packstack.

Comment 3 Gaël Chamoulaud 2014-12-09 17:34:55 UTC
Debug: Executing '/usr/bin/neutron subnet-create --format=shell --name=public_subnet --enable-dhcp=False --tenant_id=e6412d3249b34b469d63876a24af5ebf public 172.24.4.224/28'
Error: Execution of '/usr/bin/neutron subnet-create --format=shell --name=public_subnet --enable-dhcp=False --tenant_id=e6412d3249b34b469d63876a24af5ebf public 172.24.4.224/28' returned 2: usage: neutron subnet-create [-h] [-f 
{shell,table}] [-c COLUMN]
                             [--variable VARIABLE] [--prefix PREFIX]
                             [--request-format {json,xml}]
                             [--tenant-id TENANT_ID] [--name NAME]
                             [--gateway GATEWAY_IP] [--no-gateway]
                             [--allocation-pool start=IP_ADDR,end=IP_ADDR]
                             [--host-route destination=CIDR,nexthop=IP_ADDR]
                             [--dns-nameserver DNS_NAMESERVER]
                             [--disable-dhcp] [--enable-dhcp]
                             [--ipv6-ra-mode {dhcpv6-stateful,dhcpv6-stateless,slaac}]
                             [--ipv6-address-mode {dhcpv6-stateful,dhcpv6-stateless,slaac}]
                             [--ip-version {4,6}]
                             NETWORK CIDR
neutron subnet-create: error: argument --enable-dhcp: ignored explicit argument u'False'
Error: /Stage[main]/Main/Neutron_subnet[public_subnet]/ensure: change from absent to present failed: Execution of '/usr/bin/neutron subnet-create --format=shell --name=public_subnet --enable-dhcp=False --tenant_id=e6412d3249b34
b469d63876a24af5ebf public 172.24.4.224/28' returned 2: usage: neutron subnet-create [-h] [-f {shell,table}] [-c COLUMN]
                             [--variable VARIABLE] [--prefix PREFIX]
                             [--request-format {json,xml}]
                             [--tenant-id TENANT_ID] [--name NAME]
                             [--gateway GATEWAY_IP] [--no-gateway]
                             [--allocation-pool start=IP_ADDR,end=IP_ADDR]
                             [--host-route destination=CIDR,nexthop=IP_ADDR]
                             [--dns-nameserver DNS_NAMESERVER]
                             [--disable-dhcp] [--enable-dhcp]
                             [--ipv6-ra-mode {dhcpv6-stateful,dhcpv6-stateless,slaac}]
                             [--ipv6-address-mode {dhcpv6-stateful,dhcpv6-stateless,slaac}]
                             [--ip-version {4,6}]
                             NETWORK CIDR
neutron subnet-create: error: argument --enable-dhcp: ignored explicit argument u'False'

Comment 4 Gaël Chamoulaud 2014-12-09 17:50:53 UTC
Created attachment 966404 [details]
0001-Fix-the-subnet-dhcp-enable-disable-param.patch

Comment 5 Ivan Chavero 2014-12-10 09:34:34 UTC
patch works in both OSP 5 and OSP 5A, creating package.

Comment 9 Ami Jeain 2014-12-14 12:22:29 UTC
verified using the latest puddle:
# rpm -qa |grep puppet-module
openstack-puppet-modules-2014.1.1-2.el7ost.noarch