NetApp SVM scoped account is not working

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

Bug Description

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

Setup a backend as svm scoped following:

https://netapp-openstack-dev.github.io/openstack-docs/train/manila/configuration/ontap_configuration/section_ontap-config.html#account-permission-considerations

Then, restart the manila service. That backend will not be up.

Expected result
===============
backend should be up using a svm scoped.

Actual result
=============
backend fails to start. The error is showed in the log.

Environment
===========
1. ussuri release
2. Netapp backend
3. dhss false

Logs & Configs
==============

http://paste.openstack.org/show/794151/

Changed in manila:
assignee: nobody → Felipe Rodrigues (felipefutty)
Douglas Viroel (dviroel)
summary: - svm scoped account is not working NetappDriver
+ NetApp SVM scoped account is not working
Changed in manila:
importance: Undecided → Medium
milestone: none → victoria-1
status: New → Confirmed
tags: added: netapp
tags: added: backport-potential
Revision history for this message
Douglas Viroel (dviroel) wrote :

This issue blocks the driver's pool update function when using NetApp SVM scopped accounts. It's affecting all branches from Queens to Ussuri and the fix needs to be backported.
The problem started after merging this fix: https://review.opendev.org/#/c/665142/

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

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

Reviewed: https://review.opendev.org/734735
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=6f58af1ae39b4151db5feaa72deecafb9365ca16
Submitter: Zuul
Branch: master

commit 6f58af1ae39b4151db5feaa72deecafb9365ca16
Author: Felipe Rodrigues <email address hidden>
Date: Fri Jun 5 15:28:01 2020 +0000

    [NetApp] Fix svm scoped account

    When the NetApp backend starts, it needs to know whether the
    `revert_to_snapshot` support exist. So, it was retrieving the
    licenses and checking if the `SnapRestore` is included. Using a
    scoped account, the backend cannot retrieve that information,
    though. So, this patch solves it by sending a fake operation
    `revert_to_snapshot` that must fail. Analyzing the given error, it
    sets the backend support field.

    Closes-Bug: #1882590
    Change-Id: Ib71a6cec939288498e48736f129fbfdacaabe9da

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

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/736870

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

Reviewed: https://review.opendev.org/736870
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=b5e541a6284200d28c7e6298ec46cb1f2f1eb9b9
Submitter: Zuul
Branch: stable/ussuri

commit b5e541a6284200d28c7e6298ec46cb1f2f1eb9b9
Author: Felipe Rodrigues <email address hidden>
Date: Fri Jun 5 15:28:01 2020 +0000

    [NetApp] Fix svm scoped account

    When the NetApp backend starts, it needs to know whether the
    `revert_to_snapshot` support exist. So, it was retrieving the
    licenses and checking if the `SnapRestore` is included. Using a
    scoped account, the backend cannot retrieve that information,
    though. So, this patch solves it by sending a fake operation
    `revert_to_snapshot` that must fail. Analyzing the given error, it
    sets the backend support field.

    Closes-Bug: #1882590
    Change-Id: Ib71a6cec939288498e48736f129fbfdacaabe9da
    (cherry picked from commit 6f58af1ae39b4151db5feaa72deecafb9365ca16)

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

Fix proposed to branch: stable/train
Review: https://review.opendev.org/737004

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

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/737101

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

Reviewed: https://review.opendev.org/737004
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=b252cb801d547c9a9717d705303c3206a079c27f
Submitter: Zuul
Branch: stable/train

commit b252cb801d547c9a9717d705303c3206a079c27f
Author: Felipe Rodrigues <email address hidden>
Date: Fri Jun 5 15:28:01 2020 +0000

    [NetApp] Fix svm scoped account

    When the NetApp backend starts, it needs to know whether the
    `revert_to_snapshot` support exist. So, it was retrieving the
    licenses and checking if the `SnapRestore` is included. Using a
    scoped account, the backend cannot retrieve that information,
    though. So, this patch solves it by sending a fake operation
    `revert_to_snapshot` that must fail. Analyzing the given error, it
    sets the backend support field.

    Closes-Bug: #1882590
    Change-Id: Ib71a6cec939288498e48736f129fbfdacaabe9da
    (cherry picked from commit 6f58af1ae39b4151db5feaa72deecafb9365ca16)
    (cherry picked from commit b5e541a6284200d28c7e6298ec46cb1f2f1eb9b9)

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

Reviewed: https://review.opendev.org/737101
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=036908dd59684e9f5f44e305535cdc81dc563f2c
Submitter: Zuul
Branch: stable/stein

commit 036908dd59684e9f5f44e305535cdc81dc563f2c
Author: Felipe Rodrigues <email address hidden>
Date: Fri Jun 5 15:28:01 2020 +0000

    [NetApp] Fix svm scoped account

    When the NetApp backend starts, it needs to know whether the
    `revert_to_snapshot` support exist. So, it was retrieving the
    licenses and checking if the `SnapRestore` is included. Using a
    scoped account, the backend cannot retrieve that information,
    though. So, this patch solves it by sending a fake operation
    `revert_to_snapshot` that must fail. Analyzing the given error, it
    sets the backend support field.

    Closes-Bug: #1882590
    Change-Id: Ib71a6cec939288498e48736f129fbfdacaabe9da
    (cherry picked from commit 6f58af1ae39b4151db5feaa72deecafb9365ca16)
    (cherry picked from commit b5e541a6284200d28c7e6298ec46cb1f2f1eb9b9)
    (cherry picked from commit b252cb801d547c9a9717d705303c3206a079c27f)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/737514

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

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/737516

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

Reviewed: https://review.opendev.org/737514
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=a9bc395407fcc897c689911842c4bd277c5728fc
Submitter: Zuul
Branch: stable/rocky

commit a9bc395407fcc897c689911842c4bd277c5728fc
Author: Felipe Rodrigues <email address hidden>
Date: Fri Jun 5 15:28:01 2020 +0000

    [NetApp] Fix svm scoped account

    When the NetApp backend starts, it needs to know whether the
    `revert_to_snapshot` support exist. So, it was retrieving the
    licenses and checking if the `SnapRestore` is included. Using a
    scoped account, the backend cannot retrieve that information,
    though. So, this patch solves it by sending a fake operation
    `revert_to_snapshot` that must fail. Analyzing the given error, it
    sets the backend support field.

    Closes-Bug: #1882590
    Change-Id: Ib71a6cec939288498e48736f129fbfdacaabe9da
    (cherry picked from commit 6f58af1ae39b4151db5feaa72deecafb9365ca16)
    (cherry picked from commit b5e541a6284200d28c7e6298ec46cb1f2f1eb9b9)
    (cherry picked from commit b252cb801d547c9a9717d705303c3206a079c27f)
    (cherry picked from commit 036908dd59684e9f5f44e305535cdc81dc563f2c)

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

Reviewed: https://review.opendev.org/737516
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=bbf4d7255636a571252d05497bbab59efc039540
Submitter: Zuul
Branch: stable/queens

commit bbf4d7255636a571252d05497bbab59efc039540
Author: Felipe Rodrigues <email address hidden>
Date: Fri Jun 5 15:28:01 2020 +0000

    [NetApp] Fix svm scoped account

    When the NetApp backend starts, it needs to know whether the
    `revert_to_snapshot` support exist. So, it was retrieving the
    licenses and checking if the `SnapRestore` is included. Using a
    scoped account, the backend cannot retrieve that information,
    though. So, this patch solves it by sending a fake operation
    `revert_to_snapshot` that must fail. Analyzing the given error, it
    sets the backend support field.

    Closes-Bug: #1882590
    Change-Id: Ib71a6cec939288498e48736f129fbfdacaabe9da
    (cherry picked from commit 6f58af1ae39b4151db5feaa72deecafb9365ca16)
    (cherry picked from commit b5e541a6284200d28c7e6298ec46cb1f2f1eb9b9)
    (cherry picked from commit b252cb801d547c9a9717d705303c3206a079c27f)
    (cherry picked from commit 036908dd59684e9f5f44e305535cdc81dc563f2c)
    (cherry picked from commit a9bc395407fcc897c689911842c4bd277c5728fc)

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

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

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

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