This article helps to verify service instance for PCF RabbitMQ has a correctly configured unique virtual host on the underlying RabbitMQ server.
Each pre-provisioned service instance for PCF RabbitMQ has a vhost defined to logically separate the service transactions. The service instance GUID matches the RabbitMQ vhost. If the vhost information is missing or does not match in RabbitMQ cluster, the service instance will NOT function.
Access the dashboard URL from service instance properties:
cf service <SERVICE_INSTANCE_NAME>$ cf service rmq-1 Service instance: rmq-1 Service: p-rabbitmq Bound apps: Tags: Plan: standard Description: RabbitMQ service to provide shared instances of this high-performance multi-protocol messaging broker. Documentation url: http://docs.pivotal.io Dashboard: https://pivotal-rabbitmq.example.pivotal.io/#/login/mu-<userdid>/<password> Last Operation Status: create succeeded Message: Started: 2018-02-07T13:30:47Z Updated: 2018-02-07T13:30:47Z
cf service <SERVICE_INSTANCE_NAME> --guidvhost exist in the Virtual host dropdown.vhost exists, it confirms the correct configuration of service instance.cf unbind-service <app-name> <service-instance-name> cf delete-service <service-instance-name>cf create-service p-rabbitmq <plan> <service-instance-name>cf bind-service <app-name> <service-instance-name>
The vhost of the service instance can also be found in the VCAP_SERVICES of the app it is bound to. See RabbitMQ Environment Variables docs for details.
RabbitMQ for Pivotal Cloud Foundry (PCF)