Bug 1221327 - --router:external=True syntax is invalid - not backward compatibility
Summary: --router:external=True syntax is invalid - not backward compatibility
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-neutronclient
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z1
: 7.0 (Kilo)
Assignee: Nir Magnezi
QA Contact: Ofer Blaut
URL:
Whiteboard:
Depends On: 1221063
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-13 17:58 UTC by Lon Hohberger
Modified: 2019-09-10 14:09 UTC (History)
8 users (show)

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.
Clone Of: 1221063
Environment:
Last Closed: 2015-09-03 17:57:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1451391 0 None None None Never
OpenStack gerrit 182313 0 None None None Never
Red Hat Product Errata RHBA-2015:1722 0 normal SHIPPED_LIVE openstack-neutron and python-neutronclient bug fix and enhancement advisory 2015-09-03 21:56:45 UTC

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


Note You need to log in before you can comment on or make changes to this bug.