Fix VNX Manila driver incompablity with VNX OE File V8.1.6 or later

Bug #1465543 reported by Peter Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Undecided
Peter Wang

Bug Description

Where running manila With VNX OE 8.1.6 or later

If user creates a NFS share via VNX Manila driver, driver will report nas command issue:

to Fix this issue, driver need to make following change in order to keep the compability

diff --git a/manila/share/drivers/emc/plugins/vnx/helper.py b/manila/share/drivers/emc/plugins/vnx/helper.py
index cf2cd38..b6e017b 100644
--- a/manila/share/drivers/emc/plugins/vnx/helper.py
+++ b/manila/share/drivers/emc/plugins/vnx/helper.py
@@ -1259,7 +1259,7 @@ class NASCommandHelper(object):
         share_path = '/' + share_name
         create_nfs_share_cmd = [
             'env', 'NAS_DB=/nas', '/nas/bin/server_export', mover_name,
- '-option', 'rw=-*.*.*.*,root=-*.*.*.*,access=-*.*.*.*',
+ '-option', 'rw=-0.0.0.0,root=-0.0.0.0,access=-0.0.0.0',
             share_path,
         ]

the root cause is VNX no longer support the old-style nas command

Thanks
Peter

Peter Wang (peter.wang)
Changed in manila:
assignee: nobody → Peter Wang (peter.wang)
tags: added: emc manila vnx
Peter Wang (peter.wang)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

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

Changed in manila:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/192502

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (master)

Change abandoned by Peter Wang (<email address hidden>) on branch: master
Review: https://review.openstack.org/192504
Reason: should be on stable/juno, discard it now

Changed in manila:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (stable/kilo)

Change abandoned by Peter Wang (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/192502
Reason: will use cherry-pick to do it

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/192955

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/juno)

Reviewed: https://review.openstack.org/192955
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=bf27884c599bf08dd7c2d983db0c287f6de00732
Submitter: Jenkins
Branch: stable/juno

commit bf27884c599bf08dd7c2d983db0c287f6de00732
Author: peter_wang <email address hidden>
Date: Mon Jun 15 23:45:20 2015 -0400

    Fix incompatiblity issue in VNX manila driver

    When running Manila with VNX File OE 8.1.6 or later,
    if user creates a NFS share in Manila, driver will
    report nas command error when setting nfs permission.

    This fix will use updated nas command to resolve it.

    Change-Id: I0550cdf01278fa4e9aeed7891152fed6dcc0eefc
    Closes-Bug: #1465543
    (cherry picked from commit 081f9226e46ba801ba7be8024aebb967aba7f2e9)

tags: added: in-stable-juno
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/kilo)

Reviewed: https://review.openstack.org/192502
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=38b0d5b524817c5b6fbbd0c23e0bd4f1e8a302f0
Submitter: Jenkins
Branch: stable/kilo

commit 38b0d5b524817c5b6fbbd0c23e0bd4f1e8a302f0
Author: peter_wang <email address hidden>
Date: Mon Jun 15 23:45:20 2015 -0400

    Fix incompatiblity issue in VNX manila driver

    When running Manila with VNX File OE 8.1.6 or later,
    if user creates a NFS share in Manila, driver will
    report nas command error when setting nfs permission.

    This fix will use updated nas command to resolve it.

    Change-Id: I0550cdf01278fa4e9aeed7891152fed6dcc0eefc
    Closes-Bug: #1465543
    (cherry picked from commit 081f9226e46ba801ba7be8024aebb967aba7f2e9)

tags: added: in-stable-kilo
Thierry Carrez (ttx)
Changed in manila:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in manila:
milestone: liberty-1 → 1.0.0
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.