NetApp driver is not applying the access rules for the promoted replica using CIFS

Bug #1896949 reported by Felipe Rodrigues
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
Felipe Rodrigues

Bug Description

Description
===========
Using NetApp driver, the promote of a share replica created from a CIFS share is not applying the access rules.

Steps to reproduce
==================

* Create a share that can be replicated
* Allow access for a given user
* Create a share replica
* Promote the share replica
* Try to mount the share

Expected result
===============

The access rules should be applied in the promoted replica.

Actual result
=============

The access rules are not being applied in the new active replica. If you want to mount the share, you will need to deny the current access and allow it again.

Environment
===========
1. Devstack deployed on Ubuntu 18.04

2. Manila using the master branch (microversion 2.55)

3. NetApp DHSS=True/False backend using the standalone network plugin

Douglas Viroel (dviroel)
tags: added: cifs driver netapp
Vida Haririan (vhariria)
Changed in manila:
milestone: none → wallaby-1
importance: Undecided → Low
Douglas Viroel (dviroel)
Changed in manila:
assignee: nobody → Felipe Rodrigues (felipefutty)
Revision history for this message
Vida Haririan (vhariria) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/755934

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.opendev.org/755934
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=0c4d1e339801bb9d346dfa5a29af2ab76517bbd7
Submitter: Zuul
Branch: master

commit 0c4d1e339801bb9d346dfa5a29af2ab76517bbd7
Author: Felipe Rodrigues <email address hidden>
Date: Thu Sep 24 12:22:20 2020 +0000

    [NetApp] Fix access rules for CIFS promoted replica

    This patch fixes the access rules for NetApp promote replica when
    using CIFS protocol. When promoting a replica, the NetApp ONTAP
    driver updates the access rules for the promoted CIFS share entity
    before actually creating it, failing on having those rules
    applied.

    The bug is fixed by switching the order of updating the access
    and creating the promoted CIFS share entity.

    Change-Id: I60e4057dc962d96cff57dea88587a28c2043b499
    Closes-Bug: #1896949

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

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/758106

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

Reviewed: https://review.opendev.org/758106
Committed: https://opendev.org/openstack/manila/commit/c857b94e8a8aae1f471ebbde8b49beaad41ef431
Submitter: Zuul
Branch: stable/victoria

commit c857b94e8a8aae1f471ebbde8b49beaad41ef431
Author: Felipe Rodrigues <email address hidden>
Date: Thu Sep 24 12:22:20 2020 +0000

    [NetApp] Fix access rules for CIFS promoted replica

    This patch fixes the access rules for NetApp promote replica when
    using CIFS protocol. When promoting a replica, the NetApp ONTAP
    driver updates the access rules for the promoted CIFS share entity
    before actually creating it, failing on having those rules
    applied.

    The bug is fixed by switching the order of updating the access
    and creating the promoted CIFS share entity.

    Change-Id: I60e4057dc962d96cff57dea88587a28c2043b499
    Closes-Bug: #1896949
    (cherry picked from commit 0c4d1e339801bb9d346dfa5a29af2ab76517bbd7)

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 11.0.1

This issue was fixed in the openstack/manila 11.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 12.0.0.0rc1

This issue was fixed in the openstack/manila 12.0.0.0rc1 release candidate.

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

Reviewed: https://review.opendev.org/c/openstack/manila/+/772728
Committed: https://opendev.org/openstack/manila/commit/65c9f6f4a21cc9689e6ad1d02a1e641cdb51f1b5
Submitter: "Zuul (22348)"
Branch: stable/train

commit 65c9f6f4a21cc9689e6ad1d02a1e641cdb51f1b5
Author: Felipe Rodrigues <email address hidden>
Date: Thu Sep 24 12:22:20 2020 +0000

    [NetApp] Fix access rules for CIFS promoted replica

    This patch fixes the access rules for NetApp promote replica when
    using CIFS protocol. When promoting a replica, the NetApp ONTAP
    driver updates the access rules for the promoted CIFS share entity
    before actually creating it, failing on having those rules
    applied.

    The bug is fixed by switching the order of updating the access
    and creating the promoted CIFS share entity.

    Change-Id: I60e4057dc962d96cff57dea88587a28c2043b499
    Closes-Bug: #1896949
    (cherry picked from commit 0c4d1e339801bb9d346dfa5a29af2ab76517bbd7)
    (cherry picked from commit c857b94e8a8aae1f471ebbde8b49beaad41ef431)
    (cherry picked from commit 460f44704df3303e092de3e9781224fdbbe8502d)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 10.1.0

This issue was fixed in the openstack/manila 10.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila train-eol

This issue was fixed in the openstack/manila train-eol release.

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.