netapp driver should report home state to prevent scheduling on aggr not home

Bug #1927823 reported by Maurice Escher
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

Hi,

during Netapp back end maintenance (in my case I've seen it on ontap upgrade and similar on hardware part replacement) no shares should be scheduled to the respective back end, because we know it will fail.

The error message already suggests a solution: don't schedule to an aggregate, which is not home.

See an example error: http://paste.openstack.org/show/805073/

I believe the Netapp driver can be extended to report that "is-home" state and the scheduler could respect it.

BR,
Maurice

Tags: netapp
tags: added: netapp
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :
Changed in manila:
importance: Undecided → Low
Changed in manila:
assignee: nobody → Eduardo Santos (ecsantos)
Revision history for this message
Maurice Escher (maurice-escher) wrote :

I got a different stacktrace for the same problem:
https://paste.opendev.org/show/bRbzoxTJv53GHXzMt054/

When a node is not home, the node data ports list may no longer have matching ports.

Changed in manila:
milestone: none → zed-1
assignee: Eduardo Santos (ecsantos) → Felipe Rodrigues (felipefutty)
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/c/openstack/manila/+/841149

Changed in manila:
status: New → In Progress
Changed in manila:
milestone: zed-1 → zed-2
Changed in manila:
milestone: zed-2 → zed-3
Changed in manila:
milestone: zed-3 → zed-rc1
Changed in manila:
milestone: zed-rc1 → antelope-1
Changed in manila:
milestone: antelope-1 → antelope-2
Changed in manila:
milestone: antelope-2 → antelope-3
Changed in manila:
milestone: antelope-3 → antelope-rc1
Changed in manila:
milestone: antelope-rc1 → bobcat-1
Changed in manila:
milestone: bobcat-1 → bobcat-2
Changed in manila:
milestone: bobcat-2 → bobcat-3
Changed in manila:
milestone: bobcat-3 → bobcat-rc1
Changed in manila:
milestone: bobcat-rc1 → caracal-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/c/openstack/manila/+/841149
Committed: https://opendev.org/openstack/manila/commit/d57c33d7a870924c3de6e4830d6facf71d47b098
Submitter: "Zuul (22348)"
Branch: master

commit d57c33d7a870924c3de6e4830d6facf71d47b098
Author: Felipe Rodrigues <email address hidden>
Date: Mon May 9 13:50:40 2022 -0300

    [NetApp] Fix lack of aggregate pool home state

    The NetApp driver is not reporting the home state of the aggregate
    pools. This information is useful during maintenance tasks, since
    not home aggregate cannot create shares.

    This patch adds to the report netapp capabilities the boolean
    `netapp_is_home`.

    Closes-Bug: #1927823
    Change-Id: I8e98541d8e457e9e4609410853b50d6156465f61

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

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

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.