VMware: datastore type NFS 4.1 not supported

Bug #1751950 reported by Lauro de Souza Dias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Wishlist
Vipin Balachandran

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

description: updated
Eric Harney (eharney)
Changed in cinder:
importance: Undecided → Wishlist
tags: added: drivers vmware
Changed in cinder:
assignee: nobody → Vipin Balachandran (vbala)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/552177

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/552177
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=68e3b4a1d544683a7d7b0cfd7f730dc9a0bbdd77
Submitter: Zuul
Branch: master

commit 68e3b4a1d544683a7d7b0cfd7f730dc9a0bbdd77
Author: Vipin Balachandran <email address hidden>
Date: Mon Mar 12 16:14:46 2018 -0700

    VMware: Adding NFS41 datastore as supported

    vSphere 6.0 supports datastores backed by NFS 4.1.
    Adding NFS 4.1 based datastores as supported.

    Closes-bug: #1751950
    Change-Id: Id0f04f1055b0d94447916963da071efc4bd92c82

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 13.0.0.0b2

This issue was fixed in the openstack/cinder 13.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.