Bug 1078809
| Summary: | can not boot qemu-kvm-rhev with rbd image | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jun Li <juli> |
| Component: | qemu-kvm | Assignee: | Kevin Wolf <kwolf> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 7.0 | CC: | acathrow, cristi.falcas, juli, juzhang, knoel, kwolf, lbopf, michen, mrezanin, sluo, virt-maint, xfu |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | qemu-kvm-rhev-1.5.3-56.el7 | Doc Type: | Bug Fix |
| Doc Text: |
Previously, qemu-kvm-rhev failed to boot with rbd image, and returned an "Unknown Protocol" error. Now, the rbd driver is compiled in qemu-kvm-rhev, and an unsuccessful boot produces more meaningful error messages.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-13 09:26:02 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1080820 | ||
|
Description
Jun Li
2014-03-20 10:45:36 UTC
This bz might block Bug 989608 - [7.0 FEAT] qemu runtime support for librbd backend (ceph) Confirmed, due to bugs in the configure script, the rbd block driver isn't actually compiled in, even though it was requested on the command line. Please give this package a try: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=7230126 (In reply to Kevin Wolf from comment #2) > Please give this package a try: > http://brewweb.devel.redhat.com/brew/taskinfo?taskID=7230126 Sorry, that was a RHEL build that doesn't contain the rbd driver anyway. This one is the same code built for RHEV that should work with rbd: https://brewweb.devel.redhat.com/taskinfo?taskID=7230222 (In reply to Kevin Wolf from comment #3) > (In reply to Kevin Wolf from comment #2) > > Please give this package a try: > > http://brewweb.devel.redhat.com/brew/taskinfo?taskID=7230126 > > Sorry, that was a RHEL build that doesn't contain the rbd driver anyway. This > one is the same code built for RHEV that should work with rbd: > > https://brewweb.devel.redhat.com/taskinfo?taskID=7230222 Test with build url: https://brewweb.devel.redhat.com/taskinfo?taskID=7230222 The following is the results: # /usr/libexec/qemu-kvm -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img -device virtio-blk-pci,drive=img,id=sys-img -monitor stdio no monitors specified to connect to. qemu-kvm: -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img: error connecting qemu-kvm: -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img: could not open disk image rbd:10.66.7.1:6789/win8.1-juli.qcow2: Could not open 'rbd:10.66.7.1:6789/win8.1-juli.qcow2': No such file or directory Also test with build url: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=7230126 --- The result is as followings: # /usr/libexec/qemu-kvm -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img -device virtio-blk-pci,drive=img,id=sys-img -monitor stdio qemu-kvm: -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img: could not open disk image rbd:10.66.7.1:6789/win8.1-juli.qcow2: Unknown protocol Hi Kevin, QE both tried qemu-kvm-rhev and qemu-kvm build your provided. Qemu-kvm-rhev and qemu-kvm hit different errors. I think your build fix this issue. If so, It is possible build the official qemu-kvm-rhev quickly? I guess Intank might need fixed build for verifying Bug 989608 - [7.0 FEAT] qemu runtime support for librbd backend (ceph). Best Regards, Junyi Fix included in qemu-kvm-1.5.3-56.el7 (In reply to juzhang from comment #7) > Hi Kevin, > > QE both tried qemu-kvm-rhev and qemu-kvm build your provided. Qemu-kvm-rhev > and qemu-kvm hit different errors. I think your build fix this issue. > > If so, It is possible build the official qemu-kvm-rhev quickly? I guess > Intank might need fixed build for verifying Bug 989608 - [7.0 FEAT] qemu > runtime support for librbd backend (ceph). > > Best Regards, > Junyi Remove needinfo since qemu-kvm-1.5.3-56.el7 comes out with fixed patch. Best Regards, Junyi Verify: test with qemu-kvm-rhev: qemu-kvm-rhev-1.5.3-56.el7ev.x86_64 --------- # /usr/libexec/qemu-kvm -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img -device virtio-blk-pci,drive=img,id=sys-img -monitor stdio no monitors specified to connect to. qemu-kvm: -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img: error connecting qemu-kvm: -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img: could not open disk image rbd:10.66.7.1:6789/win8.1-juli.qcow2: Could not open 'rbd:10.66.7.1:6789/win8.1-juli.qcow2': No such file or directory --------------- test with qemu-kvm: qemu-kvm-1.5.3-56.el7.x86_64 # /usr/libexec/qemu-kvm -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img -device virtio-blk-pci,drive=img,id=sys-img -monitor stdio qemu-kvm: -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img: could not open disk image rbd:10.66.7.1:6789/win8.1-juli.qcow2: Unknown protocol ======================= Before above test, should make sure /usr/lib64/librbd.so.1 is existing in host. If not, could got following results: Also test with qemu-kvm-rhev-1.5.3-56.el7ev.x86_64 without librbd.so.1 . # /usr/libexec/qemu-kvm -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img -device virtio-blk-pci,drive=img,id=sys-img -monitor stdio qemu-kvm: -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img: error loading librbd: /usr/lib64/qemu/librbd.so.1: cannot open shared object file: No such file or directory qemu-kvm: -drive file=rbd:10.66.7.1:6789/win8.1-juli.qcow2,if=none,id=img: could not open disk image rbd:10.66.7.1:6789/win8.1-juli.qcow2: Could not open 'rbd:10.66.7.1:6789/win8.1-juli.qcow2': Input/output error ------ Note: download librbd.so.1 from url: http://ceph.com/rpm-emperor/ According to comment10, set this issue as verified. Please note, kvm qe focus on error message promoted since about fully ceph testing is changed by intank. Best Regards, Junyi This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. It seems that with the latest packages this is happening again: [root@xxxxxx ~(keystone_admin)]$ qemu-img create -f rbd rbd:images/new-libvirt-image 2G qemu-img: rbd:images/new-libvirt-image: Unknown file format 'rbd' [root@xxxxxxx ~(keystone_admin)]$ rpm -qa | grep qemu qemu-kvm-1.5.3-60.el7.x86_64 qemu-img-1.5.3-60.el7.x86_64 ipxe-roms-qemu-20130517-5.gitc4bce43.el7.noarch qemu-kvm-common-1.5.3-60.el7.x86_64 qemu-kvm-tools-1.5.3-60.el7.x86_64 Also, does anyone know if I can still find anywhere the 1.5.3-56 version? Sorry, rereading the bug description I can see that the normal packages are not supposed to have rbd included. I recompiled the ev sources locally for this. Thank you |