Bug 1873925
Summary: | rbd image cannot be listed when it is create by qemu-img with a non-exsit rbd namespace | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Han Han <hhan> |
Component: | qemu-kvm | Assignee: | Stefano Garzarella <sgarzare> |
qemu-kvm sub component: | Ceph | QA Contact: | Tingting Mao <timao> |
Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | coli, jinzhao, juzhang, sgarzare, timao, virt-maint, xuwei |
Version: | 9.0 | Keywords: | Reopened, Triaged |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-05-17 02:49:41 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
Han Han
2020-08-31 03:46:38 UTC
Bulk update: Move RHEL-AV bugs to RHEL9. If necessary to resolve in RHEL8, then clone to the current RHEL8 release. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. Reopen the issue for still hitting the issue. And one thing I want to highlight is that I can not delete the image from server side for I can not find the image. @timao I'm not able to replicate on CentOS Stream 8 and 9. In both cases, I have the following behavior (note: 'aa' namespace not exists) $ qemu-img create rbd:rbd/aa/new3 1M Formatting 'rbd:rbd/aa/new3', fmt=raw size=1048576 qemu-img: rbd:rbd/aa/new3: error rbd create: No such file or directory c8s packages: qemu-img-15:6.2.0-12.module_el8.7.0+1140+ff0772f9.x86_64 librbd1-2:14.2.22-2.el8s.x86_64 c9s packages: qemu-img-17:7.0.0-1.el9.x86_64 librbd1-2:16.2.7-1.el9s.x86_64 Are you able to replicate with the latest RHEL versions? Yes, in latest qemu, there is no the issue. But the error info is 'No such file or directory', maybe we could give it a more clear error hint info like "No a namespace named 'aa'"? In rhel8.7 tested with: qemu-kvm-6.2.0-13.module+el8.7.0+15131+941fbd8d librbd1-14.2.11-208.el8cp.x86_64 Steps: # qemu-img create 'rbd:rbd/aa/new3:conf=/etc/ceph/ceph.conf:id=admin:key=AQBwUmlfB9VwKhAA0HwqNhKCfarcItKtCR9ulg==' 1M Formatting 'rbd:rbd/aa/new3:conf=/etc/ceph/ceph.conf:id=admin:key=AQBwUmlfB9VwKhAA0HwqNhKCfarcItKtCR9ulg==', fmt=raw size=1048576 qemu-img: rbd:rbd/aa/new3:conf=/etc/ceph/ceph.conf:id=admin:key=AQBwUmlfB9VwKhAA0HwqNhKCfarcItKtCR9ulg==: error rbd create: No such file or directory Results: As above, created failed with ' No such file or directory'. In latest rhel9.1 tested with: qemu-kvm-7.0.0-3.el9 librbd1-16.2.4-5.el9.x86_64 Steps: # qemu-img create 'rbd:rbd/aa/new3:conf=/etc/ceph/ceph.conf:id=admin:key=AQBwUmlfB9VwKhAA0HwqNhKCfarcItKtCR9ulg==' 1M Formatting 'rbd:rbd/aa/new3:conf=/etc/ceph/ceph.conf:id=admin:key=AQBwUmlfB9VwKhAA0HwqNhKCfarcItKtCR9ulg==', fmt=raw size=1048576 qemu-img: rbd:rbd/aa/new3:conf=/etc/ceph/ceph.conf:id=admin:key=AQBwUmlfB9VwKhAA0HwqNhKCfarcItKtCR9ulg==: error rbd create: No such file or directory # qemu-img create rbd:rbd/aa/testtt.img 1G Formatting 'rbd:rbd/aa/testtt.img', fmt=raw size=1073741824 qemu-img: rbd:rbd/aa/testtt.img: error rbd create: No such file or directory Results: As above, created failed with ' No such file or directory'. (In reply to Tingting Mao from comment #9) > Yes, in latest qemu, there is no the issue. Thanks for checking! Do you think it would be better to close this BZ and open another one for the error message? QEMU simply reports the error returned by rbd_create() (-ENOENT), so it makes me think that this problem was in librbd and not in QEMU. > But the error info is 'No such file or directory', maybe we could give it a > more clear error hint info like "No a namespace named 'aa'"? Yep, maybe that would be better. I just posted an upstream patch here: https://lore.kernel.org/qemu-devel/20220516100324.61122-1-sgarzare@redhat.com/T/#u |