GPFS KNFS multiple ssh prepend with gpfs_nfs_server_list

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

Bug Description

GPFS KNFS allow/deny access results in incorrect behavior when multiple NFS servers are configured (gpfs_nfs_server_list) and any of the servers are remote (except the last one).

For remote NFS servers with GPFS KNFS, commands are prepended with "ssh <login>@<server>" for remote execution. The prepended information is currently being added to the command in a loop so that in cases where more than one NFS server is configured each following server includes the prefix from the previous one.

This happens to work if the only remote server is the last one. Otherwise the extra ssh prefixes result in the command being forwarded to the wrong server.

For example, a 2nd server may result in a command like "ssh login@server2 ssh login@server1 exportfs..." or a local server may re-use the ssh login@server1 prefix from the remote server earlier in the list.

Changed in manila:
assignee: nobody → Mark Sturdevant (mark-sturdevant)
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/413239

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

Reviewed: https://review.openstack.org/413239
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=b76a2af2370eb55c3a689aecc266baf9364a2750
Submitter: Jenkins
Branch: master

commit b76a2af2370eb55c3a689aecc266baf9364a2750
Author: Mark Sturdevant <email address hidden>
Date: Tue Dec 20 13:29:41 2016 -0800

    GPFS KNFS: Do not reuse ssh prefix in loop

    Fix GPFS KNFS allow/deny access so that it does not reuse
    the ssh prefix when looping through NFS server commands for
    allow and deny access.

    This fixes GPFS KNFS allow/deny access incorrect behavior
    when multiple NFS servers are configured (gpfs_nfs_server_list)
    and any of the servers are remote (except the last one).

    Change-Id: I8c182eed386e8325b087c3192d363502bb848633
    Closes-Bug: #1651578

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

This issue was fixed in the openstack/manila 4.0.0.0b3 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.