Expensive Device allocation loop when NBD is absent

Bug #1438260 reported by Davanum Srinivas (DIMS)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Davanum Srinivas (DIMS)

Bug Description

See log stash query:
"Device allocation failed. Will retry in 2 seconds."

Example:
http://logs.openstack.org/10/163910/6/check/gate-rally-dsvm-cinder/46d89ab/logs/screen-n-cpu.txt.gz#_2015-03-30_14_55_56_941

Logs:
2015-03-30 14:55:56.940 ERROR nova.virt.disk.mount.nbd [req-df13155c-0340-4e10-aec4-2fabea382eef None None] nbd module not loaded
2015-03-30 14:55:56.940 DEBUG oslo_concurrency.lockutils [req-df13155c-0340-4e10-aec4-2fabea382eef None None] Lock "nbd-allocation-lock" released by "_inner_get_dev" :: held 0.000s inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:456
2015-03-30 14:55:56.941 INFO nova.virt.disk.mount.api [req-df13155c-0340-4e10-aec4-2fabea382eef None None] Device allocation failed. Will retry in 2 seconds.
2015-03-30 14:55:58.941 DEBUG oslo_concurrency.lockutils [req-df13155c-0340-4e10-aec4-2fabea382eef None None] Lock "nbd-allocation-lock" acquired by "_inner_get_dev" :: waited 0.000s inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:444
2015-03-30 14:55:58.941 ERROR nova.virt.disk.mount.nbd [req-df13155c-0340-4e10-aec4-2fabea382eef None None] nbd module not loaded

We should not even enter the loop when /sys/block/nbd0 is clearly absent.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/168950

Changed in nova:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Revision history for this message
Sean Dague (sdague) wrote :
Revision history for this message
Sean Dague (sdague) wrote :

Nova is being asked to do a thing, which it can't, which is put files in the guest. This retry is actually kind of important.

The bug really is exposing the fact that *no* working file injection mechanism exists in these rally jobs, but they are asking guests to do something.

Changed in nova:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Davanum Srinivas (dims) (<email address hidden>) on branch: master
Review: https://review.openstack.org/168950

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.