Project

General

Profile

Actions

Bug #18653

closed

Improve compatibility between librbd + krbd for the data pool

Added by Jason Dillaman over 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
-
% Done:

0%

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

Description

The data pool feature results in a larger block name prefix. krbd uses fixed-sized data structures that will not currently hold this larger block name prefix. Need to (1) encode the pool id in hex to reduce bytes, (2) determine a new maximum block name prefix length, (3) ensure new images do not violate this new limit.


Related issues 2 (0 open2 closed)

Related to rbd - Bug #16887: ceph 10.2.2 rbd status on image format 2 returns "(2) No such file or directory"ResolvedJason Dillaman08/01/2016

Actions
Copied to rbd - Backport #18771: kraken: rbd: Improve compatibility between librbd + krbd for the data poolResolvedNathan CutlerActions
Actions #1

Updated by Ilya Dryomov over 7 years ago

It's just that krbd tries to avoid excessive memory allocations by packing things together. krbd can handle larger block name prefixes just fine as it has always been assumed to be an arbitrary string, so it's not really a compatibility issue -- just wanted to get some clarity on this given that generate_image_id() doesn't account for the metadata pool id in the data-pool case.

Actions #2

Updated by Ilya Dryomov over 7 years ago

I'm not sure (1) is needed -- hex encoding won't save a lot and we are used to pool ids in decimal ;)
+1 on (2) and (3).

Actions #3

Updated by Jason Dillaman over 7 years ago

Fair enough re: (1) if we don't need to squeeze every last byte out.

Actions #4

Updated by Ilya Dryomov over 7 years ago

  • Related to Bug #16887: ceph 10.2.2 rbd status on image format 2 returns "(2) No such file or directory" added
Actions #5

Updated by Jason Dillaman about 7 years ago

  • Status changed from In Progress to Fix Under Review
Actions #6

Updated by Jason Dillaman about 7 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #7

Updated by Nathan Cutler about 7 years ago

  • Copied to Backport #18771: kraken: rbd: Improve compatibility between librbd + krbd for the data pool added
Actions #8

Updated by Nathan Cutler almost 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF