Ansible Service Broker in OpenShift 3.11 is broken as it uses the wrong docker tag.
Log in to the OpenShift cluster.
$ oc login https://openshift-example.example.org:8443 --token=x9K7kRbqU-GXi19kuOQqot14wN3PvE9zBEU52xjRWJq -n openshift-ansible-service-broker
Logged into "https://openshift-example.example.org:8443" as "admin" using the token provided. You have access to the following projects and can switch between them with 'oc project <projectname>': default development-milosz kube-public kube-service-catalog kube-system management-infra openshift * openshift-ansible-service-broker openshift-console openshift-descheduler openshift-infra openshift-logging openshift-metrics-server openshift-monitoring openshift-node openshift-sdn openshift-template-service-broker openshift-web-console ops-view Using project "openshift-ansible-service-broker".
You will see Error
status on asb-1-deploy
pod.
$ oc get pods
NAME READY STATUS RESTARTS AGE asb-1-deploy 0/1 Error 0 1h
Deploy status will enter the failed state.
$ oc rollout history dc/asb
deploymentconfigs "asb" REVISION STATUS CAUSE 1 Failed config change
The easiest solution is to change the docker image tag from v3.11.0
to v3.11
.
Fix it ad-hoc.
$ oc get --export dc/asb -o yaml > asb.yaml
$ sed -i -e "/image:/ s/v3.11.0/v3.11/" asb.yaml
$ oc apply -f asb.yaml
Warning: oc apply should be used on resource created by either oc create --save-config or oc apply deploymentconfig.apps.openshift.io/asb configured
$ oc rollout history dc/asb
deploymentconfigs "asb" REVISION STATUS CAUSE 1 Failed config change 2 Complete config change
Use curl to verify that problem was solved.
$ curl https://asb-1338-openshift-ansible-service-broker.openshift-example.example.org/
{ "paths": [ "/apis", "/healthz", "/healthz/ping", "/healthz/poststarthook/generic-apiserver-start-informers", "/metrics", "/osb/" ] }
Update your hosts
file to fix it permanently.
# asb ansible_service_broker_image: docker.io/ansibleplaybookbundle/origin-ansible-service-broker:v3.11