ceph: fix rbd create operation not supported
PATCH 1/1 ceph: fix rbd create operation not supported
When using qemu-img to create rbd based image:
qemu-img create -f rbd rbd:libvirt-pool/libvirt-image 2G
Output errors:
qemu-img: rbd:libvirt-pool/libvirt-image: error rbd create: Operation not supported
Accroding to upstream's advice:
http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-November/031014.html
This is because the system can't find libcls_rbd.so, this library was packaged in ceph-dev, we should package it in ceph.
--- recipes-extended/ceph/ceph_13.2.2.bb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
recipes-extended/ceph/ceph_13.2.2.bb +2 -3
@@ -80,9 +80,7 @@ do_install_append () { } FILES_${PN} += "\ - ${libdir}/rados-classes/*.so.* \ -" -FILES_${PN}-dev += "\ + ${libdir}/rados-classes/*.so.* \ ${libdir}/ceph/compressor/*.so \ ${libdir}/rados-classes/*.so \ ${libdir}/ceph/*.so \
@@ -102,3 +100,4 @@ PACKAGES += " \ ${PN}-python \ " INSANE_SKIP_${PN}-python += "ldflags" +INSANE_SKIP_${PN} += "dev-so"
Signature · 1 line
2.7.4
merged
Bruce
Quoted 44 lines · Dengke Du
When using qemu-img to create rbd based image:
qemu-img create -f rbd rbd:libvirt-pool/libvirt-image 2G
Output errors:
qemu-img: rbd:libvirt-pool/libvirt-image: error rbd create: Operation not supported
Accroding to upstream's advice:
http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-November/031014.htmlThis is because the system can't find libcls_rbd.so, this library was packaged in ceph-dev, we should package it in ceph.
Signed-off-by Dengke Du <[email protected]>--- recipes-extended/ceph/ceph_13.2.2.bb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)recipes-extended/ceph/ceph_13.2.2.bb +2
-4@@ -80,9 +80,7 @@ do_install_append () { } FILES_${PN} += "\ - ${libdir}/rados-classes/*.so.* \ -" -FILES_${PN}-dev += "\ + ${libdir}/rados-classes/*.so.* \ ${libdir}/ceph/compressor/*.so \ ${libdir}/rados-classes/*.so \ ${libdir}/ceph/*.so \@@ -102,3 +100,4 @@ PACKAGES += " \ ${PN}-python \ " INSANE_SKIP_${PN}-python += "ldflags" +INSANE_SKIP_${PN} += "dev-so" --2.7.4
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II