Bug 1534895 - apb remove --id * return 404 error
Summary: apb remove --id * return 404 error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.9.0
Assignee: Erik Nelson
QA Contact: Zihan Tang
URL:
Whiteboard:
Depends On: 1538541
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-16 08:54 UTC by Zihan Tang
Modified: 2018-03-28 14:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-03-28 14:19:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 0 None None None 2018-03-28 14:20:16 UTC

Description Zihan Tang 2018-01-16 08:54:30 UTC
Description of problem:
openshift v3.9.0-0.19.0
kubernetes v1.9.0-beta1
asb : 1.14
apb : docker.io/ansibleplaybookbundle/apb-tools  (image id : 7dfacf2bca7a)

When run command 
 apb remove --id 72d0146d3a0afe00dad278cd54f6e4a1  --broker https://asb-1338-openshift-ansible-service-broker.apps.0115-ay7.qe.rhcloud.com 
 Return 404 error. 
 Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0115-ay7.qe.rhcloud.com/ansible-service-broker/v2/apb72d0146d3a0afe00dad278cd54f6e4a1
Error: Attempt to remove an APB from Broker returned status: 404
Unable to remove APB from Ansible Service Broker.

How reproducible:
always

Steps to Reproduce:
1. Set broker-config: 
    broker:
      dev_broker: true
2. push a apb successfully
    [root@dhcp-140-42 my-apb02]# apb push --broker https://asb-1338-openshift-ansible-service-broker.apps.0115-ay7.qe.rhcloud.com 
version: 1.0
name: my-apb02
description: This is a sample application generated by apb init
bindable: True
async: optional
metadata:
  displayName: my-apb02
plans:
  - name: default
    description: This default plan deploys my-apb02
    free: True
    metadata: {}
    parameters: []
Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0115-ay7.qe.rhcloud.com/ansible-service-broker/v2/apb
Successfully added APB to Ansible Service Broker
Successfully relisted the Service Catalog
    
    [root@dhcp-140-42 my-apb02]# apb list --broker https://asb-1338-openshift-ansible-service-broker.apps.0115-ay7.qe.rhcloud.com 
Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0115-ay7.qe.rhcloud.com/ansible-service-broker/v2/catalog
ID                                NAME                   DESCRIPTION                                                                                                                                                                
72d0146d3a0afe00dad278cd54f6e4a1  apb-push-my-apb02      This is a sample application generated by apb init      
3. Remove the apb 

Actual results:
When remove the apb , return 404 error.
  [root@dhcp-140-42 my-apb02]# apb remove --id 72d0146d3a0afe00dad278cd54f6e4a1  --broker https://asb-1338-openshift-ansible-service-broker.apps.0115-ay7.qe.rhcloud.com 

Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0115-ay7.qe.rhcloud.com/ansible-service-broker/v2/apb72d0146d3a0afe00dad278cd54f6e4a1
Error: Attempt to remove an APB from Broker returned status: 404
Unable to remove APB from Ansible Service Broker.

Expected results:
Remove successfully

Additional info:
apb remove --all  , retrun expected response.
[root@dhcp-140-42 my-apb02]# apb remove --all --broker https://asb-1338-openshift-ansible-service-broker.apps.0115-ay7.qe.rhcloud.com 
Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0115-ay7.qe.rhcloud.com/ansible-service-broker/v2/apb
Successfully relisted the Service Catalog
Successfully deleted APB

Comment 1 Erik Nelson 2018-01-16 19:14:45 UTC
Fixed by this PR: https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/pull/187

A new image is being released this afternoon, so a new image should be published by tomorrow for testing.

Comment 3 Zihan Tang 2018-01-23 08:38:50 UTC
Verify this bug depend on bug 1536963. Will wait for 1536963 fixed .

Comment 4 Zihan Tang 2018-01-25 09:11:56 UTC
Depends on bug 1538541 , need to wait for bug 1538541 fixed to verify.

Comment 9 errata-xmlrpc 2018-03-28 14:19:53 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:0489


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