HDS HNAS driver ignores API value Size when creating a share from snapshot

Bug #1497250 reported by Rodrigo Barbieri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
High
Rodrigo Barbieri

Bug Description

HDS HNAS Manila driver currently creates shares from snapshots using the Size value according to the original share. See following example:

1. Create Share_1 size = 1
2. Create Snapshot_1 from Share_1
3. Extend Share_1 to size = 2
4. Create Share_Snap_1 from Snapshot_1 size = 5
5. Manila DB says size is 5. Looking at the backend, size is 2.

The result is that the backend is inconsistent with what the Manila DB is showing, and is completely ignoring the parameter the user passes in the API.

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

Changed in manila:
assignee: nobody → Rodrigo Barbieri (rodrigo-barbieri2010)
status: New → In Progress
Changed in manila:
milestone: none → liberty-rc1
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/225116
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=99d39374f95f132405581debb59d4586a76f5293
Submitter: Jenkins
Branch: master

commit 99d39374f95f132405581debb59d4586a76f5293
Author: Rodrigo Barbieri <email address hidden>
Date: Fri Sep 18 08:51:58 2015 -0300

    Fix HDS HNAS Create from snapshot ignoring Size

    Currently HDS HNAS driver is creating shares from snapshots using
    the size value from the original share, instead of the one the user
    passes through API. This not only makes Manila DB and HNAS Backend
    inconsistent, but also will not be providing the user with the
    share size requested.

    Closes-bug: #1497250
    Change-Id: I543ca9676130e46feed134ee663693684c69459d

Changed in manila:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in manila:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in manila:
milestone: liberty-rc1 → 1.0.0
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.