Project

General

Profile

Actions

Bug #13124

closed

librbd order limits inconsistent with rbd cli

Added by Corin Langosch over 8 years ago. Updated over 8 years ago.

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

0%

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

Description

ceph -v
ceph version 0.94.3 (95cefea9fd9ab740263bf8bb4796fd864d9afe2b)

Using librdb directly (for example by using ceph-ruby) I can create images with an order of 26. This creates images which are broken in various strange ways.

The rbd client allows a maximum order of 25 (rbd: order must be between 12 (4 KB) and 25 (32 MB)). Librbd should enforce the same limits as the rbd client does (or which acutally are needed).

"images broken in various strange ways" explained:

rbd image 'test':
size 1024 MB in 16 objects
order 26 (65536 kB objects)
block_name_prefix: rbd_data.ac986b8b4567
format: 2
features: layering, striping, exclusive, object map
flags:
stripe unit: 65536 kB
stripe count: 1

rbd cp test test1
Image copy: 56% complete...
-> hangs here forever (I then interrupted by ctrl-c)...

rbd cp test test1
Image copy: 0% complete...failed.2015-09-16 18:15:25.561182 7fba61510840 1 librbd: rbd image test1 already exists
2015-09-16 18:15:25.561234 7fba61510840 -1 librbd: header creation failed
rbd: copy failed: (17) File exists
> more or less expected

rbd rm test1
rm: cannot remove 'rbd/test1': No such file or directory
-> what?!


Related issues 1 (0 open1 closed)

Related to rbd - Bug #13164: librbd: reads larger than cache size hangResolved09/18/2015

Actions
Actions

Also available in: Atom PDF