can not create share group from share group snapshot

Bug #2090947 reported by Pavlo Shchelokovskyy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
manila-ui
In Progress
Undecided
Pavlo Shchelokovskyy

Bug Description

Repro:

- create a share group type if none is available, share network etc
- create a share group
- create a snapshot of share group
- try to create share group from snapshot

fails with "Unable to create a share group" right in the form, form is not submitted.

After some debugging, this looks like aftermath of
https://review.opendev.org/q/Id924fc55debdc38ae2131bf8cef396f28caa3e77

when we create a share group from snapshot, we fetch the share group type id of the original share group the snapshot was made of, and it is naturally a UUID, with dashes etc.

Then the transform_dashed_name is applied, which corrupts it, example

>>> transform_dashed_name("c6c70fa8-5c31-422a-a6ff-d585796aca89")
mm3ggnzqmzqtqljvmmztcljugizgcllbgztgmllegu4dknzzgzqwgyjyhe______

which then of course breaks the API request as there's no such share group type.

Changed in manila-ui:
assignee: nobody → Pavlo Shchelokovskyy (pshchelo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila-ui (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/manila-ui/+/936972

Changed in manila-ui:
status: New → In Progress
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.