More Related Content Similar to Cinderlib integration - deep dive slides (20) Cinderlib integration - deep dive slides27. VDSM CHANGESVDSM CHANGES
MANAGEDVOLUME-HELPERMANAGEDVOLUME-HELPER
os-brick operations are performed via supervdsm, invoking an helper:
/usr/libexec/vdsm/managedvolume-helper
supervdsm.log example:
MainProcess|jsonrpc/6::DEBUG::2019-02-12
12:10:34,724::supervdsm_server::100::SuperVdsm.ServerCallback::(wrapper) call
managedvolume_run_helper with ('attach',) {'cmd_input': {u'driver_volume_type': u'rbd', u'data':
{u'secret_type': u'ceph', u'name': u'volumes/volume-f036007f-330f-476c-8e65-0beaf4e86dfb',
u'discard': True, u'keyring': u'# keyringn[client.admin] nkey =
AQAsV55bOAxeAhAAg5Hy09NP96rp8GMJv4Fazw==an', u'cluster_name': u'ceph', u'secret_uuid':
None, u'auth_enabled': True, u'volume_id': u'f036007f-330f-476c-8e65-0beaf4e86dfb', u'hosts':
[u'10.35.0.252'], u'auth_username': u'admin', u'ports': [u'6789']}}}
MainProcess|jsonrpc/6::DEBUG::2019-02-12
12:10:36,393::supervdsm_server::107::SuperVdsm.ServerCallback::(wrapper) return
managedvolume_run_helper with {u'path': u'/dev/rbd1', u'type': u'block', u'conf':
u'/tmp/brickrbd_4NksPF'}
33. DEBUGGINGDEBUGGING
RUN VM - PHASE 2 - ATTACHRUN VM - PHASE 2 - ATTACH
20190211 12:03:00,833+02 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.AttachManagedBlockStorageVolum
eVDSCommand] (EEManagedThreadFactoryengineThread204) [5f781d60]
FINISH, AttachManagedBlockStorageVolumeVDSCommand, return: {attachment=
{path=/dev/dm5, scsi_wwn=20024f400585403c4, type=block,
multipath_id=20024f400585403c4}, path=/dev/mapper/20024f400585403c4}, log
id: 52545bec
20190211 12:03:00,887+02 INFO
[org.ovirt.engine.core.bll.storage.disk.managedblock.SaveManagedBlockStor
ageDiskDeviceCommand] (EEManagedThreadFactoryengineThread204)
[481f9a0a] Running command: SaveManagedBlockStorageDiskDeviceCommand
internal: true.
20190211 12:03:02,730+02 INFO
[org.ovirt.engine.core.common.utils.cinderlib.CinderlibExecutor] (EE
ManagedThreadFactoryengineThread204) [481f9a0a] cinderlib output:
ENGINE:ENGINE:
34. DEBUGGINGDEBUGGING
RUN VM - PHASE 2 - ATTACHRUN VM - PHASE 2 - ATTACH
attach_volume(vol_id=u'9eb27e09990c4436a33b5af548343ed6',
connection_info={u'driver_volume_type': u'is
csi', u'data': {u'target_lun': 191, u'target_iqn': u'iqn.2009
01.com.kaminario:storage.k2.22612', u'target_portal':
u'10.35.162.66:3260', u'target_discovered': True}})
attach_volume return={'status': {'message': 'Done', 'code': 0}, 'result':
{'path': u'/dev/mapper/20024f40
0585403c5', 'vol_id': u'9eb27e09990c4436a33b5af548343ed6',
'attachment': {u'path': u'/dev/dm15', u'scsi_wwn': u'20024f400585403c5',
u'type': u'block', u'multipath_id':
u'20024f400585403c5'}}}
VDSM:VDSM: