QNAP Manila driver: the size of share/snapshot is inconsistent with NAS while create/manage from snapshot

Bug #1810476 reported by Chris Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Undecided
Chris Yang

Bug Description

There are two situation may cause the size of share/snapshot managed by manila is inconsistent with the NAS backend.

One is to create a share from snapshot.

Step to reproduce:
(Create share from snapshot)
1. Create a share with 5GB size

2. Take a snapshot of this share

3. Extend this share to 10GB size

4. Create a share from this snapshot

Expect:

Create a share from snapshot with 5GB size.

Result:

The NAS backend will create a share with 10GB size due to lack of size parameter.

While the other one is manage an existing snapshot.

Step to reproduce:
(Manage existing snapshot)

1. Create a share with 5GB size

2. Take a snapshot of this share on NAS backend

3. Extend the share to 10GB size

4. Manage this snapshot

Expect:

The managed snapshot size is 5GB.

Result:
Due to the lack of snapshot size, manila use share size instead. The managed snapshot size will be 10GB.

Chris Yang (chrisyang)
Changed in manila:
status: New → In Progress
assignee: nobody → Chris Yang (chrisyang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.openstack.org/628342

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

Reviewed: https://review.openstack.org/628342
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=ad62e9dde3fe1ad555f412e8f01680ab5bd7fd52
Submitter: Zuul
Branch: master

commit ad62e9dde3fe1ad555f412e8f01680ab5bd7fd52
Author: Chris Yang <email address hidden>
Date: Fri Jan 4 14:23:08 2019 +0800

    QNAP: Fix inconsistent cases while create/manage from snapshot

    There are two situation may cause the size of share/snapshot
    managed by manila is inconsistent with the NAS backend.
    One is to create a share from snapshot. While the other one
    is to manage an existing snapshot.

    Change-Id: Iaef8d8cb4be0d8872a2796c0fc69279c14f15a80
    Closes-Bug: #1810476

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

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