Create an Instance Error

When I try and create a new instance in openstack, I get an error. Here is the error:

Error: Failed to perform requested operation on instance "ubuntu", the instance has an error status: Please try again later [Error: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance e9abcfec-5621-44c9-8326-5243c8dc79d6.]. 

Edit the nova.conf file.

cd /etc/nova/
cp nova.conf nova.conf.bak
nano nova.conf

Search for “block_device_allocate_retries=60.” Change from 60 to 300

# The number of times to check for a volume to be "available" before attaching
# it during server create. For more information, refer to the documentation.
# (integer value)
# Minimum value: 0
#block_device_allocate_retries=300

Also, check this variable. 3 seems to work but you may adjust.

# Interval (in seconds) between block device allocation retries on failures. For
# more information, refer to the documentation. (integer value)
# Minimum value: 0
#block_device_allocate_retries_interval=3

Save and exit. Retry creating a new instance.

In a CirrOS image, the login account is cirros. The password is gocubsgo. Since the fixed PW allows anyone to login, you should not run this image with a public IP attached.

Leave a Comment