Project

General

Profile

Actions

Bug #18367

closed

Zombie image snapshot problem

Added by daolong zhang over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I use ceph as cinder backend,and delete multiple volumes on cinder.
I found the presence of residual volumes in ceph.
I think it may be ceph side problems。

The details are as follows:
----------------------------------------------------
[root@ceph1 ~]# rbd -p volumes ls
volume-02daeb74-4a0d-4ce9-9a3a-1e45b610da52
volume-03de6c78-87d6-48bf-828a-fb7a229c7f77
volume-05fa25e5-9d23-4360-9629-a4e0880c4312
volume-1e18e6ec-d330-4196-a4d7-94b0cf73c529.deleted
volume-bd295c08-97ee-450d-9720-d3cb9b08369a
volume-c80c9904-65e3-4d3c-ab07-6de7bb072a96
volume-ccac4322-5b7c-4dcf-ba71-b9d962323bdc
volume-d63ee752-0ce5-4cff-8d11-1147cb61c354
volume-d870bc80-1992-4572-91c2-bac6bb08599b.deleted
volume-dbf1bc50-04af-43f3-b884-a587abf1ff1c
volume-e6a57ac5-ac99-4618-bd72-d43c74c02f0c
volume-f676b146-5fdc-4d3b-a0a4-d923f21bf327
[root@ceph1 ~]# rbd snap ls volumes/volume-1e18e6ec-d330-4196-a4d7-94b0cf73c529.deleted
SNAPID NAME SIZE
450 volume-72674a86-b8d5-46e3-ab6d-2add6d38981a.clone_snap 1024 MB
[root@ceph1 ~]# rbd children _snap
2016-12-30 09:10:52.464665 7f18b5125700 -1 librbd::image::OpenRequest: failed to retreive name: (2) No such file or directory
2016-12-30 09:10:52.464776 7f18b4924700 -1 librbd::image::RefreshParentRequest: failed to open parent image: (2) No such file or directory
2016-12-30 09:10:52.464795 7f18b4924700 -1 librbd::image::SetSnapRequest: failed to refresh snapshot parent: (2) No such file or directory
error setting snapshot context: (2) No such file or directory
[root@ceph1 ~]# rbd snap unprotect _snap
2016-12-30 09:11:04.386626 7f15f11ff700 -1 librbd::SnapshotUnprotectRequest: cannot unprotect: at least 1 child(ren) [2eb9e622cdd48] in pool 'volumes'
2016-12-30 09:11:04.387432 7f15f11ff700 -1 librbd::SnapshotUnprotectRequest: encountered error: (16) Device or resource busy
2016-12-30 09:11:04.387440 7f15f11ff700 -1 librbd::SnapshotUnprotectRequest: 0x7f161ac6e530 should_complete_error: ret_val=-16
rbd: unprotecting snap failed: (16) Device or resource busy
2016-12-30 09:11:04.389509 7f15f11ff700 -1 librbd::SnapshotUnprotectRequest: 0x7f161ac6e530 should_complete_error: ret_val=-16
[root@ceph1 ~]# rbd info _snap
2016-12-30 09:11:23.914172 7f0940f38700 -1 librbd::image::OpenRequest: failed to retreive name: (2) No such file or directory
2016-12-30 09:11:23.914280 7f0933fff700 -1 librbd::image::RefreshParentRequest: failed to open parent image: (2) No such file or directory
2016-12-30 09:11:23.914295 7f0933fff700 -1 librbd::image::SetSnapRequest: failed to refresh snapshot parent: (2) No such file or directory
error setting snapshot context: (2) No such file or directory
[root@ceph1 ~]# rbd status volumes/volume-1e18e6ec-d330-4196-a4d7-94b0cf73c529.deleted
Watchers: none
[root@ceph1 ~]# rbd info volumes/volume-1e18e6ec-d330-4196-a4d7-94b0cf73c529.deleted
rbd image 'volume-1e18e6ec-d330-4196-a4d7-94b0cf73c529.deleted':
size 1024 MB in 256 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.2eb9c5d2722f4
format: 2
features: layering, striping
flags:
stripe unit: 4096 kB
stripe count: 1
[root@ceph1 ~]#

Actions #1

Updated by daolong zhang over 7 years ago

  1. rados ls -p volumes | grep 2eb9e622cdd48
    rbd_header.2eb9e622cdd48
Actions #2

Updated by Greg Farnum almost 7 years ago

  • Project changed from Ceph to rbd
Actions #3

Updated by Jason Dillaman almost 7 years ago

  • Status changed from New to Need More Info

@daolong: can you please provide the output from "rados -p volumes listomapvals rbd_header.2eb9e622cdd48" and "rados -p volumes listomapvals rbd_header.2eb9c5d2722f4"?

Actions #4

Updated by daolong zhang almost 7 years ago

Jason Dillaman wrote:

@daolong: can you please provide the output from "rados -p volumes listomapvals rbd_header.2eb9e622cdd48" and "rados -p volumes listomapvals rbd_header.2eb9c5d2722f4"?

Sorry, now the ceph environment has been re-installed. But before I remember to perform a similar command, but also being given.

Actions #5

Updated by Jason Dillaman over 6 years ago

  • Status changed from Need More Info to Closed

Closing due to lack of feedback

Actions

Also available in: Atom PDF