connection to RabbitMQ should be created directly after start of services
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
i tested starting nova-api with wrong credentials for RabbitMQ. service started without problems. the first errors regarding failed connections to the RabbitMQ service came up after trying to start a new instance. other operations, like listing instances, seems to work without RabbitMQ.
i think all necessary connections to external services should be checked during the starting procedure of a service and not initial before the first use of the external service.
for example after scheduling the creation of a new instance i can see the error in the logs, i have to fix nova.conf and afterward i have to restart the nova-api service. but looks like the scheduled instance is stucked after the restart of nova-api (now with working RabbitMQ credentials), the instance is in state "scheduling" forever (maybe that's a second bug, not sure about that).
This could be very frustrating. However, I'm not certain we can check *all* of our connections up front. Additionally, who's to say that if something like glance is down, that we won't start nova-api? Or even if the scheduler is down? Maybe the only connection we should be checking here is the rabbitmq server and nothing else.