Share server limits forces shares from snapshots to be created in another share server

Bug #1918845 reported by Carlos Eduardo
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Felipe Rodrigues

Bug Description

Description
===========
The share server limits feature proposed in [1] brings up an odd behavior for some backends.

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

* Set a share server limit 1 in the backend
* Create a share
* Create a snapshot
* Request to create a share from a snapshot

Expected result
===============
Some backends expect that the parent share server do not get removed from the reusable share servers list, considering that they must reuse the share server to create the share from the snapshot.

Actual result
=============
The share server is being removed from the available share servers list, and manila is forcing new share servers to be created. This makes the snapshot which the share is being created upon to be placed in another share server, and the share creation fails, since for some backends it must have the snapshot and the share (which is being created) placed in the same share server.

References
==========
[1] https://review.opendev.org/c/openstack/manila/+/762725

Douglas Viroel (dviroel)
tags: added: netapp
Changed in manila:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → wallaby-rc1
tags: added: wallaby-rc-bugsquash
Changed in manila:
assignee: nobody → Carlos Eduardo (silvacarlose)
Changed in manila:
milestone: wallaby-rc1 → xena-1
tags: removed: wallaby-rc-bugsquash
Changed in manila:
milestone: xena-1 → xena-2
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

Carlos, 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 → yoga-1
Changed in manila:
milestone: yoga-1 → yoga-2
Changed in manila:
assignee: Carlos Eduardo (silvacarlose) → Fábio Oliveira (fabiooliveira1)
Changed in manila:
milestone: yoga-2 → yoga-3
Changed in manila:
milestone: yoga-3 → zed-1
Changed in manila:
milestone: zed-1 → zed-2
Changed in manila:
milestone: zed-2 → zed-3
Changed in manila:
assignee: Fábio Oliveira (fabiooliveira1) → nobody
assignee: nobody → Felipe Rodrigues (felipefutty)
Changed in manila:
milestone: zed-3 → zed-rc1
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/+/857628

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/c/openstack/manila/+/857628
Committed: https://opendev.org/openstack/manila/commit/3bd8fe3cfe5f9e9bffb18f0a6ae669bc83c1c665
Submitter: "Zuul (22348)"
Branch: master

commit 3bd8fe3cfe5f9e9bffb18f0a6ae669bc83c1c665
Author: Felipe Rodrigues <email address hidden>
Date: Wed Sep 14 23:31:09 2022 -0300

    Fix Create From Snapshot with Server Limits

    Share Server limits must be ignored in case the new share is
    from a snapshot and same host as the parent, since they must
    be in the same server.

    Closes-bug: #1918845
    Change-Id: I1c611f4a7f3590b571f75ceca17c2fc3d8f3ad7a

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

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

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

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/manila/+/863272

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

Reviewed: https://review.opendev.org/c/openstack/manila/+/863272
Committed: https://opendev.org/openstack/manila/commit/ba1fa6522fecfb84ea4a3ea334aa052a4a22df26
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit ba1fa6522fecfb84ea4a3ea334aa052a4a22df26
Author: Felipe Rodrigues <email address hidden>
Date: Wed Sep 14 23:31:09 2022 -0300

    Fix Create From Snapshot with Server Limits

    Share Server limits must be ignored in case the new share is
    from a snapshot and same host as the parent, since they must
    be in the same server.

    Closes-bug: #1918845
    Change-Id: I1c611f4a7f3590b571f75ceca17c2fc3d8f3ad7a
    (cherry picked from commit 3bd8fe3cfe5f9e9bffb18f0a6ae669bc83c1c665)

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

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.