Project

General

Profile

Actions

Bug #17929

open

rados tool should bail out if you combine listing and setting the snap ID

Added by Jan Krcmar over 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Administration/Usability
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Component(RADOS):
rados tool
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

hi,

i've got found problem/feature in pool snapshots

when i delete some object from pool which was previously snapshotted,
i cannot list the object name in the snapshot anymore.

steps to reproduce

  1. ceph -v
    ceph version 10.2.3 (ecc23778eb545d8dd55e2e4735b53cc93f92e65b)
  2. rados -p test ls
    file1
  3. rados -p test mksnap now
  4. rados -p test -s now ls
    selected snap 3 'now'
    file1
  5. rados -p test rm file1 # removing object from pool
  6. rados -p test -s now ls # listing snapshot does not display file1
    selected snap 3 'now'
  7. rados -p test -s now stat file1 # but i can stat file1 in snapshot
    selected snap 3 'now'
    test/file1 mtime 2016-11-16 14:07:14.000000, size 329
  8. rados -p test stat file1 # statting file1 in pool fails correctly
    error stat-ing test/file1: (2) No such file or directory

Gregory Farnum <> advised me, that it could be some problem with rados ls does not apply SnapContext correrctly.

please fix this bug
thanks
jan

Actions

Also available in: Atom PDF