Project

General

Profile

Actions

Bug #6072

closed

librbd image rename breaks child backwards reference

Added by Edward Hope-Morley over 10 years ago. Updated over 10 years ago.

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

0%

Source:
Community (dev)
Tags:
Backport:
dumpling, cuttlefish
Regression:
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Renaming an rbd image, that has clones, with a large name will break Image().parent_info() i.e. reverse lookup and the following error is raised in the client:

Traceback (most recent call last):
File "./rbd_test.bash", line 125, in <module>
RBDCloneRenameTest().run()
File "./rbd_test.bash", line 105, in run
print rbd_image.parent_info()
File "/usr/lib/python2.7/dist-packages/rbd.py", line 440, in parent_info
raise make_ex(ret, 'error getting parent info for image %s' % (self.name,))
rbd.Error: error getting parent info for image volume-0a67b12c-b63b-4c9b-a8e1-8b8b4bc09e90.clone: error code 34

Running the attached test will reproduce the issue.

This was triggered on Ubuntu Precise with the following Ceph version:

ceph:
Installed: 0.67.1-1precise
Candidate: 0.67.1-1precise
Version table: *** 0.67.1-1precise 0
500 http://ceph.com/debian/ precise/main amd64 Packages
100 /var/lib/dpkg/status


Files

rbd_test.bash (3.93 KB) rbd_test.bash Edward Hope-Morley, 08/21/2013 02:06 AM
Actions #1

Updated by Ian Colle over 10 years ago

  • Assignee set to Josh Durgin
Actions #2

Updated by Ian Colle over 10 years ago

  • Target version deleted (v0.67 - Dumpling)
Actions #3

Updated by Sage Weil over 10 years ago

  • Assignee deleted (Josh Durgin)
Actions #4

Updated by Sage Weil over 10 years ago

  • Priority changed from High to Urgent
Actions #5

Updated by Josh Durgin over 10 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Josh Durgin
  • Backport set to dumpling, cuttlefish

This was just a needlessly small limit in the python bindings. https://github.com/ceph/ceph/pull/764

Actions #6

Updated by Sage Weil over 10 years ago

  • Status changed from Fix Under Review to Resolved

in next and backported!

Actions

Also available in: Atom PDF