Bug #2106

attach ceph image problem

Added by Jaime Melis about 8 years ago. Updated over 7 years ago.

Status:ClosedStart date:06/06/2013
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Drivers - Storage
Target version:Release 4.4
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.0

Description

When doing a hot disk attach with the Ceph drivers it fails because the xml that's being passed to libvirt doesn't take into account the possibility that the disk could be an RBD.

attach_ceph_image.patch Magnifier (1.24 KB) alan zhang, 08/08/2013 02:32 AM


Related issues

Related to Bug #2323: Can't attach ceph RBD type image to a running VM Closed 09/13/2013

Associated revisions

Revision 5767c4b7
Added by Jaime Melis almost 8 years ago

Bug #2106: attach ceph image problem.

This patch is a minor modification of the one submitted by
Alan Zhang <> in dev.opennebula.org.

Revision d093d6af
Added by Jaime Melis over 7 years ago

Bug #2106: Use the Image source instead of rebuilding it. Improved action if pool_name is not 'one'

History

#1 Updated by Ruben S. Montero almost 8 years ago

  • Target version changed from Release 4.2 to Release 4.4

#2 Updated by alan zhang almost 8 years ago

Temporary solution:

$ diff attach_disk ~/remotes/vmm/kvm/attach_disk

43c43,44
< $DISK_XPATH/CACHE)
---

$DISK_XPATH/CACHE \
$DISK_XPATH/IMAGE_ID)

48a50

IMAGE="${XPATH_ELEMENTS4}"

51a54,55

ATTACH_FILE="$SOURCE.attach"

62a67,72

rbd)
TYPE_SOURCE="protocol"
TYPE_XML="network"
SOURCE="'rbd' name='one/one-$IMAGE'"
DEVICE="disk"
;;

81d90
< ATTACH_FILE="$SOURCE.attach"
86c95
< <source $TYPE_SOURCE='$SOURCE'/>
---

<source $TYPE_SOURCE=$SOURCE/>

It works now. you can attach ceph image now.

#3 Updated by alan zhang almost 8 years ago

Sorry for the format. Update the patch file.

#4 Updated by Ruben S. Montero almost 8 years ago

There is also a different approach to this issue in #2323.

#5 Updated by Jaime Melis over 7 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF