Bug #2106
attach ceph image problem
Status: | Closed | Start date: | 06/06/2013 | |
---|---|---|---|---|
Priority: | Normal | Due 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.
Related issues
Associated revisions
Bug #2106: attach ceph image problem.
This patch is a minor modification of the one submitted by
Alan Zhang <alan.zhang@linuxwind.org> in dev.opennebula.org.
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
- File attach_ceph_image.patch added
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