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
- Disable SELinux.
setenforce 0
- Check the RabbitMQ configuration file of the current service component. If the password or interconnection IP address is incorrect, correct it.
- Restart the rabbitmq-server service.
systemctl restart rabbitmq-server.service
- 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
Parent topic: OpenStack