What Deleting the ansible-service-broker namespace does not remove other related resources (e.g. cluster role bindings, cluster roles and cluster service brokers). This is a problem as running the installer playbook when the ansible-service-broker namespace is removed will fail because of left resources like "asb" and "asb-auth-bind" etc. Reproduce Delete the ansible-service-broker namespace (This can take some time to terminate so wait a few minutes):
oc delete namespace ansible-service-broker
|
Run the installer playbook :
ansible-playbook ./installer/playbook.yml -e "dockerhub_username=$DOCKERHUB_USERNAME" -e "dockerhub_password=$DOCKERHUB_PASSWORD" -e "dockerhub_org=$DOCKERHUB_ORG" --ask-become-pass
|
Notice the leftover resources in the output causing the asb provision to fail:
"Error from server (AlreadyExists): clusterrolebindings.rbac.authorization.k8s.io \"asb\" already exists", "Error from server (AlreadyExists): clusterroles.rbac.authorization.k8s.io \"asb-auth\" already exists", "Error from server (AlreadyExists): clusterrolebindings.rbac.authorization.k8s.io \"asb-auth-bind\" already exists", "Error from server (AlreadyExists): clusterroles.rbac.authorization.k8s.io \"access-asb-role\" already exists", "Error from server (AlreadyExists): clusterrolebindings.rbac.authorization.k8s.io \"ansibleservicebroker-client\" already exists", "Error from server (AlreadyExists): clusterservicebrokers.servicecatalog.k8s.io \"ansible-service-broker\" already exists"]
|
How Implement a deprovision role that removes all related resources to the ansible service broker (see output above for related resources that need to be deleted) This should remove the need for the clean script (I think) |