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

Bug 1221327

Summary: --router:external=True syntax is invalid - not backward compatibility
Product: Red Hat OpenStack Reporter: Lon Hohberger <lhh>
Component: python-neutronclientAssignee: Nir Magnezi <nmagnezi>
Status: CLOSED ERRATA QA Contact: Ofer Blaut <oblaut>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0 (Kilo)CC: chrisw, ihrachys, jruzicka, mlopes, nyechiel, oblaut, rbiba, yeylon
Target Milestone: z1Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-neutronclient-2.4.0-2.el7ost Doc Type: Bug Fix
Doc Text:
The syntax for using external routers with python-neutronclient was changed in an earlier update. Consequently, existing scripts used to create/manage networks stopped working with the RHEL OpenStack Platform 7 beta if using the older '--router:external=True' syntax. With this update, the previous syntax is again supported, and as a result, networks can be correctly managed without having to update such scripts.
Story Points: ---
Clone Of: 1221063 Environment:
Last Closed: 2015-09-03 17:57:05 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: 1221063    
Bug Blocks:    

Description Lon Hohberger 2015-05-13 17:58:34 UTC
+++ This bug was initially created as a clone of Bug #1221063 +++

Steps to Reproduce:
1.[root@puma14 ~(keystone_admin)]# neutron net-create public --provider:network_type vlan --provider:physical_network physnet --provider:segmentation_id 193 --router:external=True

Actual results:
usage: neutron net-create [-h] [-f {shell,table,value}] [-c COLUMN]
                          [--max-width <integer>] [--prefix PREFIX]
                          [--request-format {json,xml}]
                          [--tenant-id TENANT_ID] [--admin-state-down]
                          [--shared] [--router:external]
                          [--provider:network_type <network_type>]
                          [--provider:physical_network <physical_network_name>]
                          [--provider:segmentation_id <segmentation_id>]
                          [--vlan-transparent {True,False}]
                          NAME
neutron net-create: error: argument --router:external: ignored explicit argument u'True'


Additional info:
----------------
not backward compatibility.

Current syntax supports:
[root@puma14 ~(keystone_admin)]# neutron net-create public --provider:network_type vlan --provider:physical_network physnet --provider:segmentation_id 193 --router:external
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | df7af5c2-c84b-4991-b370-f8a854c29a80 |
| mtu | 0 |
| name | public |
| provider:network_type | vlan |
| provider:physical_network | physnet |
| provider:segmentation_id | 193 |
| router:external | True |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 7e8736e9aba546e98be4a71a92d67a77 |
+---------------------------+--------------------------------------+

Comment 8 Ofer Blaut 2015-08-31 12:47:02 UTC
tested

[root@controller ~(keystone_admin)]# source keystonerc_admin ; neutron net-create ext_net --provider:network_type flat --provider:physical_network physnet-external  --router:external=true
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | e3553002-4a09-470a-a709-4282e25baf4e |
| mtu                       | 0                                    |
| name                      | ext_net                              |
| provider:network_type     | flat                                 |
| provider:physical_network | physnet-external                     |
| provider:segmentation_id  |                                      |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | 6866f80830564eeb8fe314c0ca66878a     |


python-neutronclient-2.4.0-2.el7ost.noarch

Comment 10 errata-xmlrpc 2015-09-03 17:57:05 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.

https://access.redhat.com/errata/RHBA-2015:1722