Manage External Volume with Cinder NFS Driver
Issue
-
The generic cinder NFS driver does not support managing external volumes not already controlled by the driver in cinder:
-
The cinder log is reporting the below when we execute the manage and manageable-list commands:
Command: cinder manage --name=test-random-vol hostgroup@tripleo_nfs2#tripleo_nfs2 manageme
+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2020-07-01T19:15:55.000000 |
| description | None |
| encrypted | False |
| id | 0ab28721-62f4-4074-bce3-6c62eb9985a5 |
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | test-random-vol |
| os-vol-host-attr:host | hostgroup@tripleo_nfs2#tripleo_nfs2 |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 10570a14234f4765b87df6606657ac70 |
| replication_status | None |
| size | 0 |
| snapshot_id | None |
| source_volid | None |
| status | error |
| updated_at | 2020-07-01T19:15:56.000000 |
| user_id | 9b17ca9a726a4baf821bbaec9cfb5db4 |
| volume_type | None |
+--------------------------------+--------------------------------------+
2020-07-01 19:18:40.397 153 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2020-07-01 19:18:40.397 153 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2020-07-01 19:18:40.397 153 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 2943, in get_manageable_volumes
2020-07-01 19:18:40.397 153 ERROR oslo_messaging.rpc.server driver_entries = self.driver.get_manageable_volumes(
2020-07-01 19:18:40.397 153 ERROR oslo_messaging.rpc.server AttributeError: 'NfsDriver' object has no attribute 'get_manageable_volumes'
2020-07-01 19:15:56.248 153 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2020-07-01 19:15:56.248 153 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2020-07-01 19:15:56.248 153 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/manage_existing.py", line 55, in execute
2020-07-01 19:15:56.248 153 ERROR oslo_messaging.rpc.server size = self.driver.manage_existing_get_size(volume,
2020-07-01 19:15:56.248 153 ERROR oslo_messaging.rpc.server AttributeError: 'NfsDriver' object has no attribute 'manage_existing_get_size'
Environment
- Red Hat OpenStack Platform 13.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.