Cause: During namespace deletion, Ansible Service Broker (ASB) is attempting to execute deprovision playbook actions using a namespace in a "terminating" state.
Consequence: The APB actions are rejected because the namespace is terminating. As a result deprovision fails, and both the APB deprovision sandbox and target namespace are not deleted.
Fix: Instead of executing APB actions on namespace deletion, clean up all records of the services to be deprovisioned, return success, and allow kubernetes to delete the resources normally.
Result: During namespace deletion:
- APB sandbox is not created
- APB deprovision actions are not executed
- ASB persisted data is cleaned up
- Target namespace is properly deleted by kubernetes