error injecting data into image when launching from volume

Bug #1155713 reported by Wenhao Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Triaged
Undecided
Unassigned

Bug Description

branch: master
commit: ae251b99a3fb6aa99ec8898152d79dfa2c026a92

I launch the instance from a sheepdog volume without specifying an image when launching.

The following error occurred:

2013-03-16 01:20:52,245.245 WARNING nova.virt.disk.mount.api [req-851e9cfb-dd90-467c-ba6d-bc12fab96cd5 a41f168874b747249e32e4913e548a27 3433737bbc8b40d385c9cb5d29891804] Device allocation failed after repeated retries.
2013-03-16 01:20:52,245.245 WARNING nova.virt.disk.mount.api [req-851e9cfb-dd90-467c-ba6d-bc12fab96cd5 a41f168874b747249e32e4913e548a27 3433737bbc8b40d385c9cb5d29891804] Device allocation failed after repeated retries.
2013-03-16 01:20:52,246.246 WARNING nova.virt.disk.api [req-851e9cfb-dd90-467c-ba6d-bc12fab96cd5 a41f168874b747249e32e4913e548a27 3433737bbc8b40d385c9cb5d29891804] Ignoring error injecting data into image (Could not attach image to loopback: Unexpected error while running command.
Command: losetup --find --show /var/lib/nova/instances/552cc662-2d98-421d-9f59-50e92915f960/disk
Exit code: 1
Stdout: ''
Stderr: '/var/lib/nova/instances/552cc662-2d98-421d-9f59-50e92915f960/disk: No such file or directory\n')
2013-03-16 01:20:52,246.246 WARNING nova.virt.disk.api [req-851e9cfb-dd90-467c-ba6d-bc12fab96cd5 a41f168874b747249e32e4913e548a27 3433737bbc8b40d385c9cb5d29891804] Ignoring error injecting data into image (Could not attach image to loopback: Unexpected error while running command.
Command: losetup --find --show /var/lib/nova/instances/552cc662-2d98-421d-9f59-50e92915f960/disk
Exit code: 1
Stdout: ''
Stderr: '/var/lib/nova/instances/552cc662-2d98-421d-9f59-50e92915f960/disk: No such file or directory\n')

Clearly, nova tries to inject to an image file that doesn't exist on disk. We may need to skip injecting the data when launching from a volume.

Wenhao Xu (wenhao-x)
description: updated
Revision history for this message
Wenhao Xu (wenhao-x) wrote :

Does this mean the keypair cannot be injected?

Revision history for this message
Chuck Short (zulcss) wrote :

Which version of sheep dog and which os?

Changed in nova:
status: New → Incomplete
Revision history for this message
Wenhao Xu (wenhao-x) wrote :

sheepdog 0.5.x branch
os: ubuntu 12.04

Changed in nova:
status: Incomplete → New
Revision history for this message
Chuck Short (zulcss) wrote :

can you explain how to reproduce this?

thanks
chuck

Changed in nova:
status: New → Incomplete
Revision history for this message
Wenhao Xu (wenhao-x) wrote :

Here are steps to reproduce the bug:

1. install sheepdog from sheepdog's git 0.5.x branch

2. configure cinder to use sheepdog driver
volume_driver=cinder.volume.drivers.sheepdog.SheepdogDriver

3. create a bootable volume in cinder

4. boot from volume
 nova boot --block-device-mapping vda=<volume id> --flavor 1 my-test-instance

Changed in nova:
status: Incomplete → New
Chuck Short (zulcss)
Changed in nova:
status: New → Triaged
Revision history for this message
Ray Chen (chenrano2002) wrote :

I can't see this issue on following version. look like it has been fixed.

cinder: 2014.2.dev139.g52b6401,
nova: 2014.2.dev448.g399166b,
sheepdog: 0.8.0_179_g3711bcb

Revision history for this message
Ray Chen (chenrano2002) wrote :
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.