api
api copied to clipboard
Create fileshare snapshot creation returning wrong metadata
Is this a BUG REPORT or FEATURE REQUEST?: Create file share snapshot returning wrong metadata
Uncomment only one, leave it on its own line:
/kind bug /kind feature
What happened: Create file share using CLI as below
root@shruthi-VirtualBox:~/go/src/github.com/opensds/opensds# osdsctl fileshare snapshot create -n "snaptest" 533041f3-0817-4314-8e7c-80fc26367a39
WARNING: OPENSDS_ENDPOINT is not specified, use default(http://localhost:50040)
WARNING: Not found Env OPENSDS_AUTH_STRATEGY, use default(noauth)
+--------------+-------------------------------------------------------------+
| Property | Value |
+--------------+-------------------------------------------------------------+
| Id | d0016b04-f5ce-4037-b26f-be29d382c5e9 |
| CreatedAt | 2019-12-06T13:50:31 |
| TenantId | e93b4c0934da416eb9c8d120c5d04d96 |
| UserId | |
| FileShareId | 533041f3-0817-4314-8e7c-80fc26367a39 |
| Name | snaptest |
| Description | |
| ShareSize | 1 |
| SnapshotSize | 1 |
| Status | creating |
| ProfileId | 68a3f0da-90f1-42b4-94cf-d02d55f7a25f |
| Metadata | { |
| | "lvPath": "/dev/opensds-files-default/3e", |
| | "nfsFileshareID": "533041f3-0817-4314-8e7c-80fc26367a39", |
| | "nfsFileshareName": "3e", |
| | "snapshotName": "" |
| | } |
| | |
+--------------+-------------------------------------------------------------+
It has file share metadata nfsFileshareId , nfsFileshareName instead of snapshot details
What you expected to happen: It should have proper metadata as below
{ |
| | "lvPath": "/dev/opensds-files-default/3e", |
| | "snapshotID": "d0016b04-f5ce-4037-b26f-be29d382c5e9", |
| | "snapshotName": "snaptest" |
| | }
but fileshare snapshot list show right metadata
How to reproduce it (as minimally and precisely as possible):
- On dev branch Create file share
- create snapshot for the fileshare check the response body
- Resp body has wrong metadata in it
Anything else we need to know?:
Environment:
- Hotpot(release/branch) version:
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a
): - Install tools:
- Others: