Parted cannot find device when using glance images in xenapi
Bug #705790 reported by
Salvatore Orlando
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Salvatore Orlando |
Bug Description
When spawning an image on a xenapi backend, this operation sometimes fails when attempting to run parted for writing the partition table. Parted cannot find the device where the image is going to be streamed.
Failure does not occur when spawning raw images.
For traceback see http://
The 'offending device' was just been mounted by xapi using VBD.plug on the VM where the compute node is running.
A possible explanation is a race condition between xapi returning success on the VBD.plug operation and the device being actually available in the /dev filesystem.
Executing udevsettle before running parted should fix this.
Related branches
lp:~rconradharris/nova/bug705790
- Jay Pipes (community): Approve
- Ed Leafe (community): Approve
- Devin Carlen (community): Approve
- Josh Kearney (community): Approve
-
Diff: 81 lines (+38/-1)2 files modifiednova/virt/xenapi/vm_utils.py (+30/-1)
nova/virt/xenapi_conn.py (+8/-0)
Changed in nova: | |
assignee: | nobody → Salvatore Orlando (salvatore-orlando) |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → 2011.1 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It appears that Maverick has changed their kernel to use sdX instead of xvdX like lucid did. We can see it being attached in the domU as sdb but it's trying to find xvdb.
[ 227.351327] blkfront device/vbd/51728 num-ring-pages 1 nr_ents 32.
[ 227.355281] blkfront: sdb: barriers enabled
[ 227.355481] sdb: unknown partition table
[57361.504505] blkfront device/vbd/51728 num-ring-pages 1 nr_ents 32.
[57361.507225] blkfront: sdb: barriers enabled
[57361.507437] sdb: unknown partition table