Boot From Volume Instance Fails to Spawn: "Block Device Mapping is Invalid
Problem
- A volume-backed instance creation fails with the following error: " Block Device Mapping is Invalid ".
- The same error is observed in /var/log/pf9/ostackhost.log on the destination host.
Environment
- Platform9 Managed OpenStack - v3.6.0 and Higher
- Glance
- Nova
Cause
The image specified for the volume is taking too long to be downloaded from the Image Library (Glance) host(s) to the destination hypervisor and subsequently uploaded to the Block Storage (Cinder) backend. The time it takes for the image to be downloaded depends on many factors including the raw image size and network latency amongst the hosts.
Resolution
- SSH to the host.
- Edit the nova_override.conf file. (Create the file if it does not already exist.)
- Identify the following parameters:
If the above options are not present, the default values would be used which are:
block_device_allocate_retries = 60
block_device_allocate_retries_interval = 3
- You can double the values to ensure that Nova makes 120 attempts and waits for 6 seconds between each attempt.
- Restart the pf9-ostackhost service
Additional Information
Was this page helpful?