Can't create a share from a snapshot with the snapshot name
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| python-manilaclient |
Fix Released
|
Undecided
|
Luisa | ||
Bug Description
Steps to reproduce:
------------------
0) Setup manila with a backend that supports snapshots and creating shares from snapshots (Ex: LVM, Dummy drivers)
1) Create a share type with extra-specs "snapshot_
2) Create a share with the share type created in step 1
3) Create a snapshot of this share, name it "testsnap"
4) Attempt to create a share from this snapshot:
manila create nfs 1 --snapshot testsnap
Expected Result:
-----------------
Share gets created
Actual Result:
--------------
This error is shown:
ERROR: ShareSnapshotNo
RCA:
---
When using the "--debug" switch to study the request, we see this:
$ manila --debug create nfs 1 --snapshot testsnap
<snip>
DEBUG (httpclient:192)
REQ: curl -i -X POST http://
DEBUG (connectionpool
DEBUG (connectionpool
RESP: [404] {'Content-Length': '106', 'x-compute-
RESP BODY: {"itemNotFound": {"message": "ShareSnapshotN
DEBUG (httpclient:201) RESP: [404] {'Content-Length': '106', 'x-compute-
RESP BODY: {"itemNotFound": {"message": "ShareSnapshotN
As observed, the client is not converting the name to the snapshot's ID before sending the share creation request
| tags: | added: low-hanging-fruit |
| Changed in python-manilaclient: | |
| assignee: | nobody → Victoria Martinez de la Cruz (vkmc) |
| Changed in python-manilaclient: | |
| assignee: | Victoria Martinez de la Cruz (vkmc) → Luisa (rfluisa) |

Fix proposed to branch: master /review. opendev. org/c/openstack /python- manilaclient/ +/801866
Review: https:/