Hello!
When I try to upload an image from MarketPlaces, I get an error message in the panel:
Wed Sep 12 14:10:54 2018 : Error copying image in the datastore: Error registering rbd/one-28 in 125.16.12.120 (ip ceph mon)
==> /var/log/one/oned.log <==
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: Command execution failed (exit code: 127): /var/lib/one/remotes/datastore/ceph/cp PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjI4PC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+VWJ1bnR1IDE2LjA0IC0gTFhEPC9OQU1FPjxMT0NLPjxMT0NLRUQ+MTwvTE9DS0VEPjxPV05FUj4tMTwvT1dORVI+PFRJTUU+MTUzNjc1MDU2NTwvVElNRT48UkVRX0lEPi0xPC9SRVFfSUQ+PC9MT0NLPjxQRVJNSVNTSU9OUz48T1dORVJfVT4xPC9PV05FUl9VPjxPV05FUl9NPjE8L09XTkVSX00+PE9XTkVSX0E+MDwvT1dORVJfQT48R1JPVVBfVT4wPC9HUk9VUF9VPjxHUk9VUF9NPjA8L0dST1VQX00+PEdST1VQX0E+MDwvR1JPVVBfQT48T1RIRVJfVT4wPC9PVEhFUl9VPjxPVEhFUl9NPjA8L09USEVSX00+PE9USEVSX0E+MDwvT1RIRVJfQT48L1BFUk1JU1NJT05TPjxUWVBFPjA8L1RZUEU+PERJU0tfVFlQRT4zPC9ESVNLX1RZUEU+PFBFUlNJU1RFTlQ+MDwvUEVSU0lTVEVOVD48UkVHVElNRT4xNTM2NzUwNTY1PC9SRUdUSU1FPjxTT1VSQ0U+PCFbQ0RBVEFbXV0+PC9TT1VSQ0U+PFBBVEg+PCFbQ0RBVEFbaHR0cDovL21hcmtldHBsYWNlLm9wZW5uZWJ1bGEuc3lzdGVtcy8vYXBwbGlhbmNlLzdkZDUwZGI3LTMzYzQtNGIzOS05NDBjLWY2YTU1NDMyN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QVElPTj48TUFSS0VUX01BRD48IVtDREFUQVtvbmVdXT48L01BUktFVF9NQUQ+PC9URU1QTEFURT48L01BUktFVFBMQUNFPjwvRFNfRFJJVkVSX0FDVElPTl9EQVRBPg== 28
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: cp: Downloading http://marketplace.opennebula.systems//appliance/7dd50db7-33c4-4b39-940c-f6a55432622f/download/0 to the image repository
Wed Sep 12 14:10:54 2018 [Z0][ImM][E]: cp: Command " set -e -o pipefail
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]:
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: FORMAT=$(qemu-img info /var/tmp/ce474d6b1dfb4b511a932549c77a07fb | grep "^file format:" | awk '{print $3}' || :)
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]:
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: if [ "$FORMAT" != "raw" ]; then
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: qemu-img convert -O raw /var/tmp/ce474d6b1dfb4b511a932549c77a07fb /var/tmp/ce474d6b1dfb4b511a932549c77a07fb.raw
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: mv /var/tmp/ce474d6b1dfb4b511a932549c77a07fb.raw /var/tmp/ce474d6b1dfb4b511a932549c77a07fb
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: fi
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]:
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: rbd --id oneadmin import --image-format 2 /var/tmp/ce474d6b1dfb4b511a932549c77a07fb rbd/one-28
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]:
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: # remove original
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: rm -f /var/tmp/ce474d6b1dfb4b511a932549c77a07fb" failed: bash: line 5: qemu-img: command not found
Wed Sep 12 14:10:54 2018 [Z0][ImM][I]: bash: line 8: qemu-img: command not found
Wed Sep 12 14:10:54 2018 [Z0][ImM][E]: Error registering rbd/one-28 in 125.16.12.120
Wed Sep 12 14:10:54 2018 [Z0][ImM][E]: Error copying image in the datastore: Error registering rbd/one-28 in 125.16.12.120
Wed Sep 12 14:10:54 2018 [Z0][InM][D]: Monitoring datastore ceph_images (140)
Wed Sep 12 14:10:55 2018 [Z0][ImM][D]: Datastore ceph_images (140) successfully monitored.
---
If run on Ceph from the user oneadmin this command:
rbd --id oneadmin import --image-format 2 /var/tmp/ce474d6b1dfb4b511a932549c77a07fb rbd/one-28
image is created and imported.
The front-end node has ssh access to the oneadmin user on ceph with sudo rights (NOPASSWD)
Facilities
Front-end: OpenNebula 5.6.0
KVM_NODE: OpenNebula 5.6.0
Ceph: ceph version 13.2.1 (5533ecdc0fda920179d7ad84e0aa65a127b20d77) mimic (stable)