Ask Your Question
1

Failure prepping block device

asked 2015-02-23 11:34:00 -0500

Rainer Sokoll gravatar image

Hi,

I'm fairly new to openstack, so please forgive any dumb questions :-)

My environment: latest packstack installed with "--allinone". The Host: CentOS 7, running as a KVM VM - and this Hypervisor runs in an ESX VM. I'm using horizon. Only for testing purposes. No, when I create instances from the cirros image using m1.tiny, everything runs fine. But wehen I try to make an instance from a CentOS-ISO with a small volume size of 5 GB, I get "Failure prepping block device"

/var/log/nova/nova-compute.log tells:

2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a] Traceback (most recent call last):
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2030, in _do_build_and_run_instance
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]     filter_properties)
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2129, in _build_and_run_instance
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]     'create.error', fault=e)
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]   File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]     six.reraise(self.type_, self.value, self.tb)
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2102, in _build_and_run_instance
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]     block_device_mapping) as resources:
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]   File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]     return self.gen.next()
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2240, in _build_resources
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a]     reason=msg)
2015-02-23 18:19:43.203 3754 TRACE nova.compute.manager [instance: 9c10e58f-644e-4790-ba1f-50b65176476a] BuildAbortException: Build of instance 9c10e58f-644e-4790-ba1f-50b65176476a aborted: Failure prepping block device.

I can see in the volumes tab that the volume is still in status "Downloading". Increasing block_device_creation_timeout in nova.conf did not help.

Any hint is appreciated - and yes; I've googled :-)

edit retag flag offensive close merge delete

Comments

Have you checked the cinder and glance logs? Edit the question if you find more details

smaffulli gravatar imagesmaffulli ( 2015-02-23 13:32:49 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-09-07 04:44:06 -0500

gurupi gravatar image

I let the "Downloading" process in the volume section to complete & launched the instance after it became "Available". Working fine for me.

edit flag offensive delete link more
0

answered 2015-04-04 22:26:16 -0500

ethode gravatar image

updated 2015-04-04 22:28:13 -0500

Cinder version is not correct. More than likely because on your controller or storage node you didn't add the cloud packages repo and update your OS on one or more machines. This process MUST be done on ALL machines in the cluster.

# apt-get install ubuntu-cloud-keyring

# echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu" \
  "trusty-updates/juno main" > /etc/apt/sources.list.d/cloudarchive-juno.list

# apt-get update && apt-get dist-upgrade
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-23 11:34:00 -0500

Seen: 3,824 times

Last updated: Sep 07 '15