Description of problem: `apb remove --all -l` couldn't remove all images permanently from internal OpenShift registry Version-Release number of selected component (if applicable): openshift v3.10.0-0.29.0 Version: apb-1.2.4 How reproducible: Always Steps to Reproduce: 1. set ASB registry is local-registry then push images 2. run `apb list` # apb list ID NAME DESCRIPTION 36077d69b057756261f2c43e6542a34b local-hello-world-apb deploys hello-world web application 21ab83fa67177b000aecdbc42474404d local-my-local1-apb This is a sample application generated by apb init 3. run `apb remove --all -l` # apb remove --all -l Successfully relisted the Service Catalog Successfully deleted APB # apb list No APBs found 4. Run `apb bootstrap` # apb bootstrap Successfully bootstrapped Ansible Service Broker Successfully relisted the Service Catalog 5. run `apb list` Actual results: `apb remove --all -l` couldn't remove image permanently from internal OpenShift registry. # apb list ID NAME DESCRIPTION 36077d69b057756261f2c43e6542a34b local-hello-world-apb deploys hello-world web application 21ab83fa67177b000aecdbc42474404d local-my-local1-apb This is a sample application generated by apb init Expected results: apb remove with `--all -l` option could remove all image permanently from internal OpenShift registry. We should support that usage, if not, please add some warnnings. Additional info:
This should be under the 'Service Broker' component since it's a function of the ansible broker.
`apb remove --all` was not meant to be used with the `-l` flag but the tooling did not spit out a warning. I am going to instead make this a valid option and the tooling will simply delete all images in the registry that end in `*-apb`.
https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/pull/276
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=15985399
verified apb version Version: apb-1.2.8 # apb list ID NAME DESCRIPTION 0cd794ef27f565cc0e755585dbbcdcdc local-my-01-apb This is a sample application generated by apb init 02461192cf28f69c1fb792f32cb58a74 local-my-02-apb This is a sample application generated by apb init # apb remove --all -l Attempting to remove all registry images ending in: *-apb Found image: docker-registry.default.svc:5000/openshift/my-02-apb Successfully deleted sha256:8cbfc3dd7a7390e29bebb05d3bb65035ccc6a825633e9a6bcbde0f8788be0d5e Found image: docker-registry.default.svc:5000/openshift/my-01-apb Successfully deleted sha256:db11f7a0027110dd5b18155f69649b8f75cbc348fec8dfcbba2309e6c708de64 Contacting the ansible-service-broker at: https://asb-1338-openshift-ansible-service-broker.apps.0514-x3n.qe.rhcloud.com/ansible-service-broker/v2/bootstrap Successfully bootstrapped Ansible Service Broker # apb list No APBs found # apb bootstrap Successfully bootstrapped Ansible Service Broker Successfully relisted the Service Catalog # apb list No APBs found
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