Skip to content

quincy: librbd: make group and group snapshot IDs more random - #57090

Merged
yuriw merged 1 commit into
ceph:quincyfrom
idryomov:wip-65573-quincy
Jul 12, 2024
Merged

yuriw merged 1 commit into
ceph:quincyfrom
idryomov:wip-65573-quincy

Conversation

@idryomov

Copy link
Copy Markdown
Contributor

Image IDs suffered from the same issue -- it was addressed in commit
be83736 ("librbd: block_name_prefix is not created randomly").
The code for generating group IDs is duplicated in api/Group.cc and
got missed.

Instead of cut-and-pasting the fix, just call generate_image_id()
directly and rename variables for more explicitness.

Before:

  $ rados -p rbd ls | grep rbd_group_header
  rbd_group_header.10256b8b4567
  rbd_group_header.10216b8b4567
  rbd_group_header.10236b8b4567
  rbd_group_header.101f6b8b4567

After:

  $ rados -p rbd ls | grep rbd_group_header
  rbd_group_header.10255f555a5
  rbd_group_header.1023f347eafb
  rbd_group_header.101f24c75111
  rbd_group_header.1021dda4e122

Fixes: https://tracker.ceph.com/issues/65573
Signed-off-by: Ilya Dryomov <[email protected]>
(cherry picked from commit 76ed07d)
@idryomov idryomov added this to the quincy milestone Apr 25, 2024
@idryomov
idryomov requested a review from a team as a code owner April 25, 2024 12:02
@github-actions github-actions Bot added the rbd label Apr 25, 2024
@idryomov idryomov modified the milestones: quincy, v17.2.8 Apr 25, 2024
@yuriw
yuriw merged commit 8eaaf30 into ceph:quincy Jul 12, 2024
@idryomov
idryomov deleted the wip-65573-quincy branch July 12, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants