Bug 1225656 - Packaging problem with qemu-img
Summary: Packaging problem with qemu-img
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Distribution
Version: 1.3.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: 1.3.0
Assignee: ceph-eng-bugs
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-27 22:15 UTC by Warren
Modified: 2015-06-01 18:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-01 18:27:57 UTC
Embargoed:
wusui: needinfo+


Attachments (Terms of Use)

Description Warren 2015-05-27 22:15:52 UTC
Description of problem:

There appears to be a packaging issue in 1.3.0  It seems like qemu
is expecting to find /usr/lib64/qemu/librbd.so.1.  In some previous installations,
that was symlinked from another location.

Version-Release number of selected component (if applicable):
1.3

How reproducible:
100%

Steps to Reproduce:

sudo qemu-img create -f rbd rbd:libvirt-pool/new-libvirt-image 2G

Actual results:


Formatting 'rbd:libvirt-pool/new-libvirt-image', fmt=rbd size=2147483648 cluster_size=0 
qemu-img: error loading librbd: /usr/lib64/qemu/librbd.so.1: cannot open shared object file: No such file or directory
qemu-img: rbd:libvirt-pool/new-libvirt-image: Could not create image: Input/output error

Expected results:

image should be created.

Additional info:

Comment 2 Ken Dreyer (Red Hat) 2015-05-27 22:31:39 UTC
Can you please provide the output of "rpm -qv qemu-img" ?

Comment 3 Neil Levine 2015-05-27 23:37:11 UTC
This is not a blocking issue.

The version of qemu that ships with RHEL as of 7.1 now has compile time support for librbd which is why the symlink was dropped.

RHEL-OSP uses qemu-kvm-rhev which should also have the compile time link.

Comment 4 Ken Dreyer (Red Hat) 2015-05-27 23:37:58 UTC
I'm unable to duplicate this with the latest qemu in RHEL 7.1, which is qemu-img-1.5.3-86.el7_1.2.x86_64 . It is properly linked to librbd1:

$ ldd /usr/bin/qemu-img | grep rbd
	librbd.so.1 => /lib64/librbd.so.1 (0x00007f48a7b0c000)

Warren can you please verify that you've updated to the latest qemu-kvm packages from Red Hat?

Comment 5 Tanay Ganguly 2015-05-28 11:06:01 UTC
I am also unable to see the problem, i am using qemu for testing rbd

sudo qemu-img create -f rbd rbd:Tanay-RBD/qemu-libvirt-image 20G
Formatting 'rbd:Tanay-RBD/qemu-libvirt-image', fmt=rbd size=21474836480 cluster_size=0 

rpm -qf /usr/lib64/librbd.so.1
librbd1-0.94.1-11.el7cp.x86_64

ldd /usr/bin/qemu-img | grep rbd
	librbd.so.1 => /lib64/librbd.so.1 (0x00007f5b112f7000)

Warren,
I think the package is not updated.

Comment 6 Ken Dreyer (Red Hat) 2015-05-29 22:43:34 UTC
Warren I'm thinking we can close this as "CURRENTRELEASE", do you agree?

Comment 7 Warren 2015-06-01 18:27:57 UTC
Agree.  Let's close this as CURRENTRELEASE


Note You need to log in before you can comment on or make changes to this bug.