

def create_volume(self, size, name, location=None, snapshot=None):
    storage = ET.Element('STORAGE')
    vol_name = ET.SubElement(vol_size, 'NAME')
    vol_name.text = name
    vol_type = ET.SubElement(storage, 'TYPE')
    vol_type.text = 'DATABLOCK'
    description = ET.SubElement(storage, 'DESCRIPTION')
    description.text = 'Attached storage'
    public = ET.SubElement(storage, 'PUBLIC')
    public.text = 'NO'
    persistent = ET.SubElement(storage, 'PERSISTENT')
    persistent.text = 'YES'
    fstype = ET.SubElement(storage, 'FSTYPE')
    fstype.text = 'ext3'
    vol_size = ET.SubElement(storage, 'SIZE')
    vol_size.text = str(size)
    xml = ET.tostring(storage)
    volume = self.connection.request('/storage', {
        'occixml': xml,
    }, method='POST').object
    return self._to_volume(volume)

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/opennebula.py OpenNebula_3_6_NodeDriver.create_volume/VarMisuse@37/44 `storage`->`vol_size`