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 |
|