Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete volume snapshot got an error #583

Closed
clli33349 opened this issue Dec 29, 2018 · 0 comments
Closed

Delete volume snapshot got an error #583

clli33349 opened this issue Dec 29, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@clli33349
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug
/kind feature

What happened:
When I use lvm as the opensds backend block storage, and execute command blow, I got an errorDeleting.

  1. Create a volume snapshot.
  2. Delete the snapshot using lvremove.
  3. Delete the snapshot using osdsctl.
  4. List snapshot I, got an error.

IMO, that would be deleted succefully, the lvm driver should judge if the snapshot exsit, if not just return, and tell the controller deleting is succeful,.

root@ubuntu:~/gopath/src/github.com/opensds/opensds# osdsctl volume snapshot list 
+--------------------------------------+------+-------------+------+-----------+--------------------------------------+
| Id                                   | Name | Description | Size | Status    | VolumeId                             |
+--------------------------------------+------+-------------+------+-----------+--------------------------------------+
| 1ee2d597-6e82-4d1b-bdad-2530145f46d1 |      |             | 1    | available | 1f2116bc-96cc-4210-b934-231728b90d9e |
+--------------------------------------+------+-------------+------+-----------+--------------------------------------+
root@ubuntu:~/gopath/src/github.com/opensds/opensds# lvs
  LV                                             VG                      Attr       LSize   Pool Origin                                      Data%  Meta%  Move Log Cpy%Sync Convert
  _snapshot-1ee2d597-6e82-4d1b-bdad-2530145f46d1 opensds-volumes-default sri-a-s---   1.00g      volume-1f2116bc-96cc-4210-b934-231728b90d9e 0.00                                   
  volume-1f2116bc-96cc-4210-b934-231728b90d9e    opensds-volumes-default owi-a-s---   1.00g                                                                                         
  root                                           ubuntu-vg               -wi-ao---- 111.50g                                                                                         
  swap_1                                         ubuntu-vg               -wi-ao----  16.00g                                                                                         
root@ubuntu:~/gopath/src/github.com/opensds/opensds# lvremove /dev/opensds-volumes-default/_snapshot-1ee2d597-6e82-4d1b-bdad-2530145f46d1 
Do you really want to remove and DISCARD active logical volume _snapshot-1ee2d597-6e82-4d1b-bdad-2530145f46d1? [y/n]: y
  Logical volume "_snapshot-1ee2d597-6e82-4d1b-bdad-2530145f46d1" successfully removed
root@ubuntu:~/gopath/src/github.com/opensds/opensds# osdsctl volume snapshot delete 1ee2d597-6e82-4d1b-bdad-2530145f46d1
root@ubuntu:~/gopath/src/github.com/opensds/opensds# osdsctl volume snapshot list 
+--------------------------------------+------+-------------+------+---------------+--------------------------------------+
| Id                                   | Name | Description | Size | Status        | VolumeId                             |
+--------------------------------------+------+-------------+------+---------------+--------------------------------------+
| 1ee2d597-6e82-4d1b-bdad-2530145f46d1 |      |             | 1    | errorDeleting | 1f2116bc-96cc-4210-b934-231728b90d9e |
+--------------------------------------+------+-------------+------+---------------+--------------------------------------+

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants