Description of problem: Setting ansible_service_broker_remove=true fails an installation if the service broker does not exist. Version-Release number of selected component (if applicable): oc 3.7.9 ansible 2.4.1.0 How reproducible: Run the ansible config playbook with setting ansible_service_broker_remove=true successfully uninstalls the service broker if it is installed, but will fail subsequent ansible runs if the option is not removed Steps to Reproduce: 1. Ensure ansible_service_broker_remove=false is set 2. Ensure the service broker is not currently installed 3. Run the config playbook Actual results: TASK [ansible_service_broker : remove ansible-service-broker service] ******************************************************************************************************************************** fatal: [master2.b365.internal]: FAILED! => {"changed": false, "failed": true, "msg": {"cmd": "/bin/oc get service asb -o json -n openshift-ansible-service-broker", "results": [{}], "returncode": 1, "stderr": "Error from server (NotFound): namespaces \"openshift-ansible-service-broker\" not found\n", "stdout": ""}} to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/config.retry Expected results: Potentially display warning flag to remove flag rather than fail the update Additional info:
https://github.com/openshift/openshift-ansible/pull/7193
@Fabian, Could you help to add "Target Release"? Thanks.
workaround, unset ansible_service_broker_remove and set ansible_service_broker_install=false after uninstalling and this should ensure that subsequent playbook runs do not re-install ASB which I believe is the ultimate intent here.