Advertise some of the StorPool driver's capabilities.
Change-Id: I347663e72c26cb8ac3fed05221f3fdf9ffa959ef
This commit is contained in:
parent
0023c2b58b
commit
159a9c0cc5
@ -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)
|
||||
|
@ -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')]
|
||||
|
@ -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
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The StorPool driver enables the ``multiattach`` and ``thin_provisioning``
|
||||
capabilities.
|
Loading…
Reference in New Issue
Block a user