Project

General

Profile

Bug #51686

group snapshots are not listed in order of creation

Added by Mykola Golub over 2 years ago. Updated about 2 years ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

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

Description

When making a list of group snapshots the group snapshot id is used as an order key. A group snapshot id is generated by librbd on the snapshot creation [1] by a custom function [2] using a combination of the client instance id and a random number. So the ids are not monotonically growing, and when listing the snapshots the snapshot order is different than the creation order.

Thus there is no an easy way to determine the group snapshots order.

[1] https://github.com/ceph/ceph/blob/17257018e3e8c457ee4ce8356931a74581d35839/src/librbd/api/Group.cc#L932
[2] https://github.com/ceph/ceph/blob/17257018e3e8c457ee4ce8356931a74581d35839/src/librbd/api/Group.cc#L56

History

#1 Updated by Mykola Golub over 2 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 42369

#2 Updated by Mykola Golub about 2 years ago

  • Backport changed from pacific,octopus to quincy,pacific,octopus

#3 Updated by Ilya Dryomov about 2 years ago

  • Backport changed from quincy,pacific,octopus to pacific,octopus

Also available in: Atom PDF