Attaching a volume to a "pending" instance claims success, but never attaches.
Bug #676819 reported by
Kiall Mac Innes
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eucalyptus |
Fix Committed
|
Medium
|
Dmitrii Zagorodnov | ||
eucalyptus (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Attaching a volume to a "pending" instance claims success (via euca2ools, and the API) but never attaches to the instance. This may be a KVM only issue.
As its pretty easy to reproduce, I haven't attached much in the way of detail - let me know if you need any specific info.
Command Line usage, assuming i-307905AD is in the "pending" state:
$ euca-attach-volume -d /dev/vda -i i-307905AD vol-59820625
VOLUME vol-59820625
Also, this possibly only occurs very early (first 5 seconds) of the pending state. The same command succeeds if you wait for the instance to arrive at the "running" status.
Eucalyptus: Version: 2.0+bzr1241-
Euca2ools: Version: 1.2-0ubuntu11
Related branches
lp://staging/~invernizzi/eucalyptus/fix-676819
- graziano obertelli: Approve
-
Diff: 35 lines (+6/-6)1 file modifiednode/handlers_kvm.c (+6/-6)
description: | updated |
description: | updated |
description: | updated |
Changed in eucalyptus: | |
assignee: | nobody → Dmitrii Zagorodnov (dmitrii) |
Changed in eucalyptus (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in eucalyptus: | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
This seems to be due to a incompatibility between eucalyptus-nc and libvirt
When attaching a disk (/dev/sdX or /dev/vdX), this is the output on the node controller:
[Thu Nov 24 23:33:56 2011][000571] [EUCAINFO ] doAttachVolume() invoked (id=i-416607C2 vol=vol-5A24063B remote= //,192. 35.222. 25,iqn. 2009-06. com.eucalyptus. secluster: store3, djsFVOsygc3D8GA 6SAYtxMQRPLFlzd kXXPakJKalNo3lE 8i9GKasvANekX4f ETg3RSAv7zQgoRy QFOjc/vfnb8tqjd b9jJsInIzHuYHcD kihfXrYiSGmGxXz h2ijjpPb1BYAQZI 2OwSM2Pux+ 0lwNJwGxl7zW2pV eSpFT9pulZahLH7 eX/RcXaHWl/ glKqMtxz/ L3g06OlM/ bneoFofCGZiPxBk lDTiC2uz/ HN3Ew+JF5u/ PePv5qAFVlv61jJ k4f80G7ZMM7+ LZfjSmi4TVm/ xAlRLzqiQbkmvab pXVY9utCBQS2qm4 6bFeZMFXaxf14iI IsDX3K0XD9SkOUA A5KQ== local=/dev/vda) [EUCAINFO ] connect_ iscsi_target invoked (dev_string= //,192. 35.222. 25,iqn. 2009-06. com.eucalyptus. secluster: store3, djsFVOsygc3D8GA 6SAYtxMQRPLFlzd kXXPakJKalNo3lE 8i9GKasvANekX4f ETg3RSAv7zQgoRy QFOjc/vfnb8tqjd b9jJsInIzHuYHcD kihfXrYiSGmGxXz h2ijjpPb1BYAQZI 2OwSM2Pux+ 0lwNJwGxl7zW2pV eSpFT9pulZahLH7 eX/RcXaHWl/ glKqMtxz/ L3g06OlM/ bneoFofCGZiPxBk lDTiC2uz/ HN3Ew+JF5u/ PePv5qAFVlv61jJ k4f80G7ZMM7+ LZfjSmi4TVm/ xAlRLzqiQbkmvab pXVY9utCBQS2qm4 6bFeZMFXaxf14iI IsDX3K0XD9SkOUA A5KQ==) [EUCADEBUG ] system_output(): [//usr/ lib/eucalyptus/ euca_rootwrap //usr/share/ eucalyptus/ connect_ iscsitarget. pl //,192. 35.222. 25,iqn. 2009-06. com.eucalyptus. secluster: store3, djsFVOsygc3D8GA 6SAYtxMQRPLFlzd kXXPakJKalNo3lE 8i9GKasvANekX4f ETg3RSAv7zQgoRy QFOjc/vfnb8tqjd b9jJsInIzHuYHcD kihfXrYiSGmGxXz h2ijjpPb1BYAQZI 2OwSM2Pux+ 0lwNJwGxl7zW2pV eSpFT9pulZahLH7 eX/RcXaHWl/ glKqMtxz/ L3g06OlM/ bneoFofCGZiPxBk lDTiC2uz/ HN3Ew+JF5u/ PePv5qAFVlv61jJ k4f80G7ZMM7+ LZfjSmi4TVm/ xAlRLzqiQbkmvab pXVY9utCBQS2qm4 6bFeZMFXaxf14iI IsDX3K0XD9SkOUA A5KQ==] [EUCAINFO ] Attached device: /dev/sdc [EUCAERROR ] libvirt: internal error unsupported driver name 'phy' for disk '/dev/sdc' (code=1) [EUCAERROR ] virDomainAttach Device( ) failed (err=-1) XML=<disk type='block' ><driver name='phy'/><source dev='/dev/ sdc'/>< target dev='vda'/></disk> [EUCAERROR ] ERROR: doAttachVolume() failed error=1
[Thu Nov 24 23:33:56 2011][000571]
[Thu Nov 24 23:33:56 2011][000571]
[Thu Nov 24 23:33:57 2011][000571]
[Thu Nov 24 23:33:57 2011][000571]
[Thu Nov 24 23:33:57 2011][000571]
[Thu Nov 24 23:33:57 2011][000571]
Please note the line: libvirt: internal error unsupported driver name 'phy' for disk '/dev/sdc' . /bugzilla. redhat. com/show_ bug.cgi? id=627143# c13). bazaar. launchpad. net/~eucalyptus -maintainers/ eucalyptus/ 2.0.0-lp/ view/head: /node/handlers_ kvm.c would solve the problem.
The driver name should be 'quemu'. Libvirt used to tolerate 'phy', but it doesn't anymore (as in https:/
I haven't had time to try it yet, but it appears that substituting "phy" with "quemu" in http://