upload-swift-artifacts fails due to unexpected endpoint list formatting

Bug #1613865 reported by John Eckersberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Undecided
Unassigned

Bug Description

(Quite possibly this is some sort of component version mismatch, but...)

upload-swift-artifacts errors out on the line:

SWIFT_INTERNAL_URL=$(openstack endpoint list | grep swift | grep internal | sed -e "s|.*\(http.*\)://\([^/]*\)/.*|\1://\2|")

because formatting seems to have changed on the endpoint list:

[stack@undercloud ~]$ openstack endpoint list
+----------------------------------+-----------+------------------+-------------------------+
| ID | Region | Service Name | Service Type |
+----------------------------------+-----------+------------------+-------------------------+
| 9fa899446d3a4ce39d9cb9a8fe1583ca | regionOne | aodh | alarming |
| 426a534b9ae64e75ad113fa50f5f017e | regionOne | novav3 | computev3 |
| c7785e0f69a748fca749504e1ab46e78 | regionOne | neutron | network |
| 6ab6bee845b64c189ab679b9600402d3 | regionOne | Image Service | image |
| 9319c45186484feea8da32bc1d81cc6d | regionOne | ceilometer | metering |
| 0372f439cb8045079046ebb45c143d9b | regionOne | nova | compute |
| 9b7e6ced5ca040528aee750f1a2f6c36 | regionOne | heat | orchestration |
| 7f626cf128774f25abb8ce5d3e27ccb7 | regionOne | ironic-inspector | baremetal-introspection |
| 6740bd43791741d9b96ba33b680f77d9 | regionOne | swift | object-store |
| 186f795b8e864a8d9a59515e01564f68 | regionOne | keystone | identity |
| 69d9d4b458cf4bb7aed5279b08182e56 | regionOne | ironic | baremetal |
+----------------------------------+-----------+------------------+-------------------------+

If instead I do...

SWIFT_INTERNAL_URL=$(openstack endpoint list --long -c 'Service Name' -c InternalURL | grep swift | sed -e "s|.*\(http.*\)://\([^/]*\)/.*|\1://\2|")

Then that seems to work fine, because:

[stack@undercloud tripleo-common]$ openstack endpoint list --long -c 'Service Name' -c InternalURL
+------------------+---------------------------------------------+
| Service Name | InternalURL |
+------------------+---------------------------------------------+
| aodh | http://192.0.2.1:8042 |
| novav3 | http://192.0.2.1:8774/v3 |
| neutron | http://192.0.2.1:9696 |
| Image Service | http://192.0.2.1:9292 |
| ceilometer | http://192.0.2.1:8777 |
| nova | http://192.0.2.1:8774/v2/%(tenant_id)s |
| heat | http://192.0.2.1:8004/v1/%(tenant_id)s |
| ironic-inspector | http://192.0.2.1:5050 |
| swift | http://192.0.2.1:8080/v1/AUTH_%(tenant_id)s |
| keystone | http://192.0.2.1:5000/v2.0 |
| ironic | http://192.0.2.1:6385 |
+------------------+---------------------------------------------+

returns URL ok.

This is with:
- tripleo-common on master (5be0dd82feb28e563523eb54a4b5a9d049830075)
- python-openstackclient-2.3.1-0.20160616184253.2c076ec.el7.centos.noarch

See related: https://review.openstack.org/#/c/300139/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-common (master)

Change abandoned by John Eckersberg (<email address hidden>) on branch: master
Review: https://review.openstack.org/356118
Reason: Fixed by https://review.openstack.org/#/c/357147/1

Changed in tripleo-common:
status: New → Fix Committed
affects: tripleo-common → tripleo
Changed in tripleo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.