Actions
Feature #14201
closedcope with a pool being removed from under a mapped image
% Done:
0%
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Description
1. [root@c8 /]# uname -r
4.1.1
2. [root@ceph0 ~]# ceph -v
ceph version 0.94.5 (9764da52395923e0b32908d83a9f7304401fee43)
3. create image xx
[root@ceph-ci ~]# rbd create xx/xx --image-format 2 --size 1024
[root@ceph-ci ~]# rbd ls xx
xx
4. map image
[root@c8 /]# rbd map xx/xx
/dev/rbd0
[root@c8 /]# rbd showmapped
id pool image snap device
0 xx xx - /dev/rbd0
5. delete pool
[root@ceph-ci ~]# ceph osd pool delete xx xx --yes-i-really-really-mean-it
pool 'xx' removed
6. [root@c8 /]# rbd showmapped -----at this moment, image xx has already deleted,but map info still exist
id pool image snap device
0 xx xx - /dev/rbd0
Actions