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

Bug 1402772

Summary: Endpoint type is ignored for network commands
Product: Red Hat OpenStack Reporter: Simon Reber <sreber>
Component: python-openstackclientAssignee: Julie Pichon <jpichon>
Status: CLOSED ERRATA QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: high    
Version: 9.0 (Mitaka)CC: aguetta, apevec, jpichon, jrist, jruzicka, jschluet, lhh, lruzicka, opavlenk, pablo.iranzo, srevivo
Target Milestone: Upstream M3Keywords: Triaged
Target Release: 11.0 (Ocata)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-openstackclient-3.8.1-1.el7ost Doc Type: Bug Fix
Doc Text:
The '--os-interface' switch was ignored by 'openstack network' commands. Consequently, all such commands used the 'public' endpoint, although other interfaces were specified. The support for the switch has been added. Now the 'openstack network' commands correctly use the endpoint specified in '--os-interface' switch.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-17 19:50:35 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:

Description Simon Reber 2016-12-08 10:17:13 UTC
Description of problem:

If there are several network endpoint types defined:

$ openstack endpoint list |grep neutron
| 097fb40857b64fdcaf609dbc8c85663b | region1 | neutron | network | True | admin | https://192.168.245.5:9696/ |
| 25ed4d64a9d44cb59f2f280038b722d9 | region1 | neutron | network | True | internal | https://192.168.245.5:9696/ |
| 42142cf6067248ab90c4771cb8a39bb0 | region1 | neutron | network | True | public | https://foobar.test:9696/ |

All "openstack network xxx" commands hit the public endpoint, even if OS_ENDPOINT_TYPE or --os-interface are specified.

Version-Release number of selected component (if applicable):

Red Hat OpenStack Platform 9

How reproducible:

always

Steps to Reproduce:
1. See https://bugs.launchpad.net/python-openstackclient/+bug/1592368

Actual results:

Public endpoint is always hit

Expected results:

Specified endpoint should be hit (if defined)

Additional info:

https://bugs.launchpad.net/python-openstackclient/+bug/1592368
https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=7c603e4a67c3d44367afbf2f2f6811d2436295e0

Comment 1 Ola Pavlenko 2017-01-11 15:52:27 UTC
The upstream fix was merged
Moving to post

Comment 5 Julie Pichon 2017-01-26 10:16:33 UTC
There is a Mitaka (9.0) backport slowly making its way upstream.

Comment 8 Julie Pichon 2017-04-10 12:32:44 UTC
The Mitaka patch merged upstream. Once upstream tags a new release we can rebase the new version into OSP9. I'll add a link to the rebase bug once it is open.

Comment 11 errata-xmlrpc 2017-05-17 19:50:35 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/RHEA-2017:1245