Project

General

Profile

Bug #322

Can't create an image via rbd or qemu-kvm

Added by Wido den Hollander over 13 years ago. Updated over 11 years ago.

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

0%

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

Description

root@client02:/usr/src/qemu-kvm# ./qemu-img create -f rbd rbd:rbd/alpha 10G
Formatting 'rbd:rbd/alpha', fmt=rbd size=10737418240 cluster_size=0 
10.07.29_23:05:47.284173 7f4b36ae8720 librados: starting msgr at :/0
10.07.29_23:05:47.284451 7f4b36ae8720 librados: starting objecter
10.07.29_23:05:47.284603 7f4b36ae8720 librados: setting wanted keys
10.07.29_23:05:47.284633 7f4b36ae8720 librados: iit
10.07.29_23:05:47.287827 7f4b36ae8720 librados: waiting for osdmap
10.07.29_23:05:47.289148 7f4b36ae8720 librados: init done
10.07.29_23:05:47.291103 7f4b36ae8720 librados: Objecter returned from stat
failed assigning block id
10.07.29_23:05:47.779491 7f4b36ae8720 librados: shutdown
qemu-img: rbd:rbd/alpha: error while creating rbd: Input/output error
root@client02:/usr/src/qemu-kvm#
root@node14:~# rbd --size 10240 create alpha
failed to assign a block name for image
create error: Operation not supported
root@node14:~#

Searching through qemu-kvm i found that it fails in "block/rbd.c" on line 202:

rados_exec(pool, info_oid, "rbd", "assign_bid", NULL, 0, (char *)out, sizeof(out));

There is a "rbd_info" object created in the "rbd" pool, but it is empty.

History

#1 Updated by Wido den Hollander over 13 years ago

My bad, this is a duplicate of #263, but the solution of #263 doesn't apply here.

#2 Updated by Yehuda Sadeh over 13 years ago

  • Status changed from New to Closed

This was a case of class not loaded. AFAIR this was solved, just it took longer than usual for the osds to get the new class. Closing it for now, maybe will need to create a new issue if we see such cases of slow class loading again.

#3 Updated by Sage Weil over 13 years ago

  • Project changed from 3 to qemu-rbd
  • Category deleted (9)

#4 Updated by Sage Weil over 11 years ago

  • Project changed from qemu-rbd to rbd

Also available in: Atom PDF