Bug #2822

Attach-disk not working with cephx

Added by Jaime Melis about 6 years ago. Updated about 6 years ago.

Status:ClosedStart date:04/01/2014
Priority:NormalDue date:
Assignee:Ruben S. Montero% Done:

0%

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

Description

As reported by Joel Merrick on IRC:

The attach-disk mechanism requires additional handling inside the generated to take account of the extra node info in the XML
i.e. no need for auth or secrets if it's file based etc..

1) ensure clone/snaphot of datablock (this creates a one-IMAGEID-VMID-SNAPID format)
2) create conditionals to handle the different XML schema for rbd vs. file
3) pull extra variables from XML/XPATH
4) form correct XML to allow the attach_disk script to work

Current:

<disk type='network' device='disk'>
  <driver name='qemu' type='raw' cache='writeback'/>
  <source protocol='rbd' name='ssd/one-97'/>
  <target dev='vdb'/>
</disk>

Should be:

    <disk type='network' device='disk'>
            <source protocol='rbd' name='ssd/one-95-2620-0'>
                <host name='xxx' port='6789'/>
                <host name='xxx' port='6789'/>
                <host name='XXX' port='6789'/>
            </source>
            <auth username='libvirt'>
                <secret type='ceph' uuid='NO-THANKS'/>
            </auth>
            <target dev='vda'/>
            <driver name='qemu' type='raw' cache='writeback'/>
        </disk>

Associated revisions

Revision 3098252c
Added by Ruben S. Montero about 6 years ago

bug #2822: Add ceph related parameters to attach disk

History

#1 Updated by Jaime Melis about 6 years ago

  • Status changed from Closed to Assigned

#2 Updated by Ruben S. Montero about 6 years ago

  • Assignee changed from Jaime Melis to Ruben S. Montero

#3 Updated by Ruben S. Montero about 6 years ago

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

Also available in: Atom PDF