NetApp ONTAP: Remove iSCSI/FC driver online volume extend support

Cinder scheduler now checks backend capability online_extend_support
before performing an online volume extend operation. This patch makes
NetApp ONTAP iSCSI driver and FC driver report to the scheduler that
they don't support this feature, thus avoiding leaving a volume in
error_extending state after an online extending attempt.

Change-Id: Ifa248a0d3518aeffe2b6d12b064cbee9b8f48f94
Depends-On: I2c31b5c171574074a8fc7ba86f94f983fc9658f7
Related-Bug: #1765182
This commit is contained in:
Lucio Seki 2018-05-24 18:21:13 -03:00
parent 6d426c0876
commit 792eea0a12
3 changed files with 8 additions and 0 deletions

View File

@ -431,6 +431,7 @@ class NetAppBlockStorageCmodeLibraryTestCase(test.TestCase):
'netapp_raid_type': 'raid_dp',
'netapp_disk_type': 'SSD',
'replication_enabled': False,
'online_extend_support': False,
}]
expected[0].update({'QoS_support': cluster_credentials})

View File

@ -296,6 +296,7 @@ class NetAppBlockStorageCmodeLibrary(block_base.NetAppBlockStorageLibrary,
# Add driver capabilities and config info
pool['QoS_support'] = self.using_cluster_credentials
pool['multiattach'] = False
pool['online_extend_support'] = False
pool['consistencygroup_support'] = True
pool['consistent_group_snapshot_enabled'] = True
pool['reserved_percentage'] = self.reserved_percentage

View File

@ -0,0 +1,6 @@
---
fixes:
- |
NetApp ONTAP (bug 1765182): Make ONTAP NetApp iSCSI driver and FC driver
report to the Cinder scheduler that they don't support online volume
extending.