Activity log for bug #1751950

Date Who What changed Old value New value Message
2018-02-27 00:17:24 Lauro de Souza Dias bug added bug
2018-02-27 00:18:04 Lauro de Souza Dias description The only supported Datastore Types for VMware are NFS, VMFS, VSAN and VVOL. When using Storage Profiles (vmware:storage_profile) in NFS4.1 datastores, the volumes are created but not attached to a instance. This list of datastore types is in cinder/volume/drivers/vmware/datastore.py at DatastoreType class: class DatastoreType(object): """Supported datastore types.""" NFS = "nfs" VMFS = "vmfs" VSAN = "vsan" VVOL = "vvol" _ALL_TYPES = {NFS, VMFS, VSAN, VVOL} @staticmethod def get_all_types(): return DatastoreType._ALL_TYPES To fix the issue, we just need to set a new type for NFS 4.1: class DatastoreType(object): """Supported datastore types.""" NFS = "nfs" NFS41 = "nfs41" VMFS = "vmfs" VSAN = "vsan" VVOL = "vvol" _ALL_TYPES = {NFS, NFS41, VMFS, VSAN, VVOL} @staticmethod def get_all_types(): return DatastoreType._ALL_TYPES The only supported Datastore Types for VMware are NFS, VMFS, VSAN and VVOL. When using Storage Profiles (vmware:storage_profile) in NFS4.1 datastores, the volumes are created but not attached to an instance. This list of datastore types is in cinder/volume/drivers/vmware/datastore.py at DatastoreType class: class DatastoreType(object):     """Supported datastore types."""     NFS = "nfs"     VMFS = "vmfs"     VSAN = "vsan"     VVOL = "vvol"     _ALL_TYPES = {NFS, VMFS, VSAN, VVOL}     @staticmethod     def get_all_types():         return DatastoreType._ALL_TYPES To fix the issue, we just need to set a new type for NFS 4.1: class DatastoreType(object):     """Supported datastore types."""     NFS = "nfs"     NFS41 = "nfs41"     VMFS = "vmfs"     VSAN = "vsan"     VVOL = "vvol"     _ALL_TYPES = {NFS, NFS41, VMFS, VSAN, VVOL}     @staticmethod     def get_all_types():         return DatastoreType._ALL_TYPES
2018-03-06 22:44:25 Eric Harney cinder: importance Undecided Wishlist
2018-03-06 22:44:32 Eric Harney tags nfs41 drivers nfs41 vmware
2018-03-06 23:50:07 Vipin Balachandran cinder: assignee Vipin Balachandran (vbala)
2018-03-12 23:25:22 OpenStack Infra cinder: status New In Progress
2018-05-01 02:21:05 OpenStack Infra cinder: status In Progress Fix Released