Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1225656

Summary: Packaging problem with qemu-img
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Warren <wusui>
Component: DistributionAssignee: ceph-eng-bugs <ceph-eng-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.3.0CC: kdreyer, nlevine, tganguly, wusui
Target Milestone: rcFlags: wusui: needinfo+
Target Release: 1.3.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-01 18:27:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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