Rate This Document
Findability
Accuracy
Completeness
Readability

OpenStack Fails to Connect to the RabbitMQ Service

Symptom

After the OpenStack deployment is complete, the following message is displayed: "ERROR oslo.messaging._drivers.impl_rabbit, Unexpected error occurred serving API: Unable to connect to AMQP server on controller:5672 after inf tries: (0, 0): (541) INTERNAL_ERROR: MessageDeliveryFailure: Unable to connect to AMQP server on controller:5672."

The following information is displayed for Heat:

Key Process and Cause Analysis

The RabbitMQ service is abnormal.

Conclusion and Solution

  1. Disable SELinux.
    setenforce 0
  2. Check the RabbitMQ configuration file of the current service component. If the password or interconnection IP address is incorrect, correct it.
  3. Restart the rabbitmq-server service.
    systemctl restart rabbitmq-server.service
  4. Restart all components that report errors. In this example, restart Heat.
    systemctl restart openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service