Advertise some of the StorPool driver's capabilities.

Change-Id: I347663e72c26cb8ac3fed05221f3fdf9ffa959ef
This commit is contained in:
Peter Penchev 2019-09-02 23:14:45 +03:00
parent 0023c2b58b
commit 159a9c0cc5
4 changed files with 20 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# Copyright 2014 - 2017 StorPool
# Copyright 2014 - 2017, 2019 StorPool
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
@ -242,6 +242,12 @@ class StorPoolTestCase(test.TestCase):
for pool in stats['pools']:
self.assertEqual(21, pool['total_capacity_gb'])
self.assertEqual(5, int(pool['free_capacity_gb']))
self.assertTrue(pool['multiattach'])
self.assertFalse(pool['QoS_support'])
self.assertFalse(pool['thick_provisioning_support'])
self.assertTrue(pool['thin_provisioning_support'])
if pool['pool_name'] != 'default':
m = r.match(pool['pool_name'])
self.assertIsNotNone(m)

View File

@ -1,4 +1,4 @@
# Copyright (c) 2014 - 2017 StorPool
# Copyright (c) 2014 - 2019 StorPool
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
@ -90,10 +90,10 @@ class StorPoolDriver(driver.VolumeDriver):
fix the docstring formatting
1.2.2 - Reintroduce the driver into OpenStack Queens,
add ignore_errors to the internal _detach_volume() method
1.2.3 - Advertise some more driver capabilities.
"""
VERSION = '1.2.1'
VERSION = '1.2.3'
CI_WIKI_NAME = 'StorPool_CI'
# TODO(jsbryant) Remove driver in the 'U' release if CI is not fixed.
@ -297,7 +297,10 @@ class StorPoolDriver(driver.VolumeDriver):
'total_capacity_gb': total / units.Gi,
'free_capacity_gb': free / units.Gi,
'reserved_percentage': 0,
'multiattach': True,
'QoS_support': False,
'thick_provisioning_support': False,
'thin_provisioning_support': True,
}
pools = [dict(space, pool_name='default')]

View File

@ -662,7 +662,7 @@ driver.quobyte=missing
driver.rbd=complete
driver.seagate=missing
driver.sheepdog=missing
driver.storpool=missing
driver.storpool=complete
driver.synology=missing
driver.vrtsaccess=missing
driver.vrtscnfs=missing
@ -800,7 +800,7 @@ driver.quobyte=missing
driver.rbd=complete
driver.seagate=complete
driver.sheepdog=missing
driver.storpool=missing
driver.storpool=complete
driver.synology=missing
driver.vrtsaccess=missing
driver.vrtscnfs=missing

View File

@ -0,0 +1,5 @@
---
features:
- |
The StorPool driver enables the ``multiattach`` and ``thin_provisioning``
capabilities.