Bug 1585926

Summary: [APB] Regression - In apb-1.2.12 version, `apb list` `apb bootstrap` return 404 Error
Product: OpenShift Container Platform Reporter: sunzhaohua <zhsun>
Component: Service BrokerAssignee: Dylan Murray <dymurray>
Status: CLOSED ERRATA QA Contact: sunzhaohua <zhsun>
Severity: high Docs Contact:
Priority: high    
Version: 3.10.0CC: aos-bugs, chezhang, jiazha, jmatthew, zitang
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: 3.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-30 19:16:54 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: 1581629    

Description sunzhaohua 2018-06-05 06:35:12 UTC
Description of problem:
In apb-1.2.12 version, `apb list` `apb bootstrap` return 404 Error.

Version-Release number of selected component (if applicable):
$ apb version
Version: apb-1.2.12
$ asbd --version
1.2.16

How reproducible:
Always

Steps to Reproduce:
1. apb list
2. apb bootstrap
3.

Actual results:
 apb-1.2.12, `apb list` return 404 error. Re-install apb verion 1.2.10, `apb list` work normally.
 
$ apb version
Version: apb-1.2.12

$ apb list
Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0605-h1o.qe.rhcloud.com/openshift-automation-service-broker/v2/catalog
Error: Attempt to list APBs in the broker returned status: 404
Unable to list APBs in Ansible Service Broker.

$ apb bootstrap
Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0605-h1o.qe.rhcloud.com/openshift-automation-service-broker/v2/bootstrap
Error: Attempt to bootstrap Broker returned status: 404
Unable to bootstrap Ansible Service Broker.

$ apb version
Version: apb-1.2.10

$ apb list
Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0605-h1o.qe.rhcloud.com/ansible-service-broker/v2/catalog
ID                                NAME               DESCRIPTION                        
2c259ddd8059b9bc65081e07bf20058f  rh-mariadb-apb     Mariadb apb implementation         
03b69500305d9859bb9440d9f9023784  rh-mediawiki-apb   Mediawiki apb implementation       
73ead67495322cc462794387fa9884f5  rh-mysql-apb       Software Collections MySQL APB     
d5915e05b253df421efe6e41fb6a66ba  rh-postgresql-apb  SCL PostgreSQL apb implementation 

$ apb bootstrap
Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0605-h1o.qe.rhcloud.com/ansible-service-broker/v2/bootstrap
Successfully bootstrapped Ansible Service Broker


Expected results:
In version apb-1.2.12, `apb list` `apb bootstrap` work normally.

Additional info:
Contacting the ansible-service-broker url change from "ansible-service-broker" in 1.2.10  to "openshift-automation-service-broker" in 1.2.12.

Comment 1 Zhang Cheng 2018-06-05 06:42:48 UTC
Adding keywords "Regression, TestBlocker", and setting "target release" to 3.10

That because:
1. No problem in last release.
2. The problem is blocking all testing of apb-tools relate with broker (except apb prepare/build/version etc.)

Comment 3 Dylan Murray 2018-06-05 13:01:09 UTC
https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/pull/306

The suffix changed upstream with the new broker deployment methods and the improper suffix was pulled into the release branch.

Comment 5 sunzhaohua 2018-06-06 02:25:14 UTC
verified successful.

$ apb version
Version: apb-1.2.13

$ apb bootstrap
Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0605-va3.qe.rhcloud.com/ansible-service-broker/v2/bootstrap
Successfully bootstrapped Ansible Service Broker
Successfully relisted the Service Catalog

$ apb list
Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0605-va3.qe.rhcloud.com/ansible-service-broker/v2/catalog
ID                                NAME               DESCRIPTION                        
2c259ddd8059b9bc65081e07bf20058f  rh-mariadb-apb     Mariadb apb implementation         
03b69500305d9859bb9440d9f9023784  rh-mediawiki-apb   Mediawiki apb implementation       
73ead67495322cc462794387fa9884f5  rh-mysql-apb       Software Collections MySQL APB     
d5915e05b253df421efe6e41fb6a66ba  rh-postgresql-apb  SCL PostgreSQL apb implementation

Comment 7 errata-xmlrpc 2018-07-30 19:16:54 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-2018:1816