Browse Source

Merge "Advertise some of the StorPool driver's capabilities."

changes/92/677492/5
Zuul 1 week ago
parent
commit
9daa5c6063

+ 7
- 1
cinder/tests/unit/volume/drivers/test_storpool.py View File

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

+ 6
- 3
cinder/volume/drivers/storpool.py View File

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

+ 2
- 2
doc/source/reference/support-matrix.ini View File

@@ -662,7 +662,7 @@ driver.quobyte=missing
662 662
 driver.rbd=complete
663 663
 driver.seagate=missing
664 664
 driver.sheepdog=missing
665
-driver.storpool=missing
665
+driver.storpool=complete
666 666
 driver.synology=missing
667 667
 driver.vrtsaccess=missing
668 668
 driver.vrtscnfs=missing
@@ -800,7 +800,7 @@ driver.quobyte=missing
800 800
 driver.rbd=complete
801 801
 driver.seagate=complete
802 802
 driver.sheepdog=missing
803
-driver.storpool=missing
803
+driver.storpool=complete
804 804
 driver.synology=missing
805 805
 driver.vrtsaccess=missing
806 806
 driver.vrtscnfs=missing

+ 5
- 0
releasenotes/notes/storpool-multiattach-f9b7edccd4db7e02.yaml View File

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

Loading…
Cancel
Save