NetApp driver DHSS mode fails to create share on a new added pool

Bug #1928241 reported by Felipe Rodrigues
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
Felipe Rodrigues

Bug Description

Description
===========
The DHSS true mode driver reuses the share server for placing new shares. The NetApp driver creates the share server accessing the current available pools for the backend. For example, if the backend has the pool aggr1 and aggr2, the share server would have the aggr1 and aggr2. So, all shares places in that share server must be on pools aggr1 and aggr2.

The problem is that the reuse share server for a share is not checking if the share's pool is part of share server aggregates. So, new added pools cannot have shares create whether any share server exists.

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

A ONTAP cluster with aggregates aggr1 and aggr2.

1) Setup the backend using only one of the aggregates in the DHSS mode, netapp_aggregate_name_search_pattern=aggr1

2) Create a share (which ends up creating a share server)

3) Change the backend setup by adding the other aggregate:
netapp_aggregate_name_search_pattern=aggr[1-2]

4) Restart the service

5) Create a new share on the pool aggr2

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

It should create the share inside a new share server that controls the new added pool.

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

It reuses the share server that has not the share pool.

Environment
===========
1. Manila version: Latest 12.1.0

2. NetApp ONTAP 9.8

3. DHSS True mode

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

Error reported by shr:
http://paste.openstack.org/show/805286/

summary: - NetApp driver DHSS mode fails to create share ibn a new added pool
+ NetApp driver DHSS mode fails to create share on a new added pool
Vida Haririan (vhariria)
tags: added: netapp
Changed in manila:
importance: Undecided → Low
assignee: nobody → Felipe Rodrigues (felipefutty)
milestone: none → xena-2
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

Felipe, we're closing on xena-RC1 soon.

i'm moving this bug to Yoga-1; please let me know if that timeline is inaccurate.

Changed in manila:
milestone: xena-2 → xena-3
milestone: xena-3 → yoga-1
Changed in manila:
milestone: yoga-1 → yoga-2
Revision history for this message
Vida Haririan (vhariria) wrote :

Notes from Yoga M-1 Bug Squash - 'Moved from Yoga-1 to Yoga-2 - low, no customers hitting this

tags: added: bugsquash yoga
Changed in manila:
milestone: yoga-2 → yoga-3
Revision history for this message
Maurice Escher (maurice-escher) wrote :

Hi, there is also another possible expected result:

When changing the netapp_aggregate_name_search_pattern all existing share servers are adapted to serve all pools/aggregates that match.
And then the new share reuses the existing share server, which now can also use the newly added pool.

The beauty with that is: all share servers are the same (at least regarding the aggr-list) instead of having two different kinds (pre and post search pattern modification)

BR,
Maurice

Changed in manila:
assignee: Felipe Rodrigues (felipefutty) → Andre Luiz Beltrami Rocha (andrebeltrami)
Changed in manila:
milestone: yoga-3 → zed-1
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/+/834503

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:
assignee: Andre Luiz Beltrami Rocha (andrebeltrami) → Felipe Rodrigues (felipefutty)
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

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

commit 7e08ed4ce5c7e578148e71f709c15eeeb50be92c
Author: andrebeltrami <email address hidden>
Date: Mon Mar 21 08:43:09 2022 -0300

    [NetApp] Fix DHSS mode fails to create share on a new pool

    This patch fixes #1928241 checking if the share pool name
    is in vserver aggregates list, if it is not, the share server
    cannot be reused and a new one is created. This fix also
    includes NetApp Flexgroup and Flexvol.

    Closes-Bug: #1928241
    Change-Id: I24bf98f6d7c962ff9430748ff0bc88c647b9946c

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

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