Project

General

Profile

Actions

Bug #55241

open

rbd export complains about not existing snapshot and fails

Added by Peter Gervai about 2 years ago. Updated about 2 years ago.

Status:
Need More Info
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

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

Description

May be related to #18367 (which was closed due to lack of feedback), but not completly the same.

This fails:

# rbd --cluster ceph --pool triple export --export-format 2 vm-7010-disk-1 -  > /dev/null
error setting snapshot context: (2) No such file or directory
Exporting image: 0% complete...failed.
rbd: export error: (2) No such file or directory

No snapshots:

# rbd  -p triple snap ls vm-7010-disk-1
# 

But object-map is in ruins (which should not matter but maybe it does), also snapshot count is suspiciously one:

# rbd  -p triple info vm-7010-disk-1
rbd image 'vm-7010-disk-1':
        size 400 GiB in 102400 objects
        order 22 (4 MiB objects)
        snapshot_count: 1
        id: b149126b8b4567
        block_name_prefix: rbd_data.b149126b8b4567
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, operations
        op_features: snap-trash
        flags: object map invalid, fast diff invalid
        create_timestamp: Wed Oct 16 14:47:11 2019

The beliefs of rados are:

# rados -p triple listomapvals rbd_header.b149126b8b4567  | more
create_timestamp
value (8 bytes) :
00000000  4f 11 a7 5d f9 2f bf 00                           |O..]./..|
00000008

features
value (8 bytes) :
00000000  1d 01 00 00 00 00 00 00                           |........|
00000008

flags
value (8 bytes) :
00000000  03 00 00 00 00 00 00 00                           |........|
00000008

object_prefix
value (27 bytes) :
00000000  17 00 00 00 72 62 64 5f  64 61 74 61 2e 62 31 34  |....rbd_data.b14|
00000010  39 31 32 36 62 38 62 34  35 36 37                 |9126b8b4567|
0000001b

op_features
value (8 bytes) :
00000000  08 00 00 00 00 00 00 00                           |........|
00000008

order
value (1 bytes) :
00000000  16                                                |.|
00000001

size
value (8 bytes) :
00000000  00 00 00 00 64 00 00 00                           |....d...|
00000008

snap_seq
value (8 bytes) :
00000000  99 da 01 00 00 00 00 00                           |........|
00000008

snapshot_000000000001bca5
value (108 bytes) :
00000000  08 08 66 00 00 00 a5 bc  01 00 00 00 00 00 24 00  |..f...........$.|
00000010  00 00 65 61 33 34 39 32  65 62 2d 30 66 38 65 2d  |..ea3492eb-0f8e-|
00000020  34 63 33 65 2d 38 61 33  66 2d 64 37 35 63 30 63  |4c3e-8a3f-d75c0c|
00000030  30 39 31 62 62 63 00 00  00 00 64 00 00 00 00 03  |091bbc....d.....|
00000040  00 00 00 00 00 00 00 01  01 12 00 00 00 02 00 00  |................|
00000050  00 06 00 00 00 76 7a 64  75 6d 70 00 00 00 00 d9  |.....vzdump.....|
00000060  2d 1f 62 7c 38 f7 13 00  00 00 00 00              |-.b|8.......|
0000006c

Unfortunately rebuilding object-map on a running vm isn't quote possible (mounted by krbd and updated, so rebuild loses lock faster than it could move on).

# rbd -v
ceph version 16.2.7 (f9aa029788115b5df5eeee328f584156565ee5b7) pacific (stable)
Actions

Also available in: Atom PDF