Skip to content

Commit 88dc072

Browse files
committed
managedvolume: Add support for StorPool
The StorPool integration provides a full path to the local attachment. Signed-off-by: Viktor Ivanov <[email protected]>
1 parent d3e5d98 commit 88dc072

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/vdsm/storage/managedvolume.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252

5353
# Tested by Moritz Wanzenböck <technik+ovirt (at) linbit.com>
5454
"local",
55+
56+
# Tested by Viktor Ivanov <info (at) storpool.com>
57+
"storpool",
5558
)
5659

5760
log = logging.getLogger("storage.managedvolume")
@@ -234,6 +237,9 @@ def _resolve_path(vol_id, connection_info, attachment):
234237
elif vol_type == "rbd":
235238
# /dev/rbd/poolname/volume-vol-id
236239
return os.path.join(DEV_RBD, connection_info['data']['name'])
240+
elif vol_type == "storpool":
241+
# StorPool returns a full device path
242+
return attachment["path"]
237243
else:
238244
log.warning("Managed Volume without multipath info: %s",
239245
attachment)

0 commit comments

Comments
 (0)