How to remove "Rabbitmq" tile if the bosh deployment has been deleted already.
search cancel

How to remove "Rabbitmq" tile if the bosh deployment has been deleted already.

book

Article ID: 412811

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

  • You have deleted "p-rabbitmq" bosh deployment manually.

  • Post-deletion of deployment , you will observe that "Rabbitmq" tile still exists in opsman but no longer staged. 

 

  • Any apply changes to "Rabbitmq" tile will fail with below error : 
{"type":"step_started","id":"errands.running.p-rabbitmq-XXXXXXXXX.broker-deregistrar","description":"Running errand Deregister and Purge Instances for VMware RabbitMQ for Tanzu Application Service"}
===== 2025-08-25 21:29:39 UTC Running "/usr/local/bin/bosh --no-color --non-interactive --tty --environment=XXXXXXX --deployment=p-rabbitmq-XXXXX run-errand broker-deregistrar"
Using environment 'XXXXXXX' as client 'ops_manager'

Using deployment 'p-rabbitmq-XXXXXXXX'
Running errand 'broker-deregistrar':
  Director responded with non-successful status code '404' response '{"code":70000,"description":"Deployment 'p-rabbitmq-XXXXX' doesn't exist"}'
Exit code 1


===== 2025-08-25 21:29:39 UTC Finished "/usr/local/bin/bosh --no-color --non-interactive --tty --environment=XXXXXX --deployment=p-rabbitmq-XXXXX run-errand broker-deregistrar"; Duration: 0s; Exit Status: 1
 

Environment

Operations Manager

Resolution

You can follow below commands to fix the issue :

  • ssh to opsman VM as root
  • cd  /var/tempest/workspaces/default/metadata/product-template-XXX.yaml 
  • remove  "pre_delete_errands" section for p-rabbitmq deployment

  • re-apply changes using om cli 
  • re-ran "om -k products --deployed " and we can see p-rabbitmq has been deleted.