Bug #51686
group snapshots are not listed in order of creation
% Done:
0%
Source:
Tags:
Backport:
pacific,octopus
Regression:
No
Severity:
3 - minor
Reviewed:
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