Hi Ndhuynh, you have to install qemu-img (qemu-utils package).
cheers, Jaime On Thu, Nov 13, 2014 at 8:02 AM, Huynh Dac Nguyen <[email protected]> wrote: > Hi All > > I added ceph to datastore successful but can't create image on it. > > *[oneadmin@ho-srv-cloudlab-01 ~]$ *oneimage create centos65min.one > --datastore ceph_2 --persistent --type CDROM --disk_type CDROM > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: cp: Copying local image > /var/lib/one/images/CentOS-6.5-x86_64-minimal.iso to the image repository > > Thu Nov 13 01:47:35 2014 [Z0][ImM][E]: cp: Command " set -e > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: FORMAT=$(qemu-img info > /var/tmp/2f6f4e105d2aea3b28c214e005e97e26 | grep "^file format:" | awk > '{print }') > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: if [ "$FORMAT" != "raw" ]; then > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: qemu-img convert -O raw > /var/tmp/2f6f4e105d2aea3b28c214e005e97e26 > /var/tmp/2f6f4e105d2aea3b28c214e005e97e26.raw > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: mv > /var/tmp/2f6f4e105d2aea3b28c214e005e97e26.raw > /var/tmp/2f6f4e105d2aea3b28c214e005e97e26 > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: fi > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: rbd import --image-format 2 > /var/tmp/2f6f4e105d2aea3b28c214e005e97e26 one/one-29 > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: # remove original > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: rm -f > /var/tmp/2f6f4e105d2aea3b28c214e005e97e26" failed: Warning: Permanently > added 'ho-srv-ceph-03,10.10.15.69' (RSA) to the list of known hosts. > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: sh: line 5: qemu-img: command not > found > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: sh: line 8: qemu-img: command not > found > > Thu Nov 13 01:47:35 2014 [Z0][ImM][E]: Error registering one/one-29 in > ho-srv-ceph-03 > > Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: ExitCode: 127 > > Thu Nov 13 01:47:35 2014 [Z0][ImM][E]: Error copying image in the > datastore: Error registering one/one-29 in ho-srv-ceph-03 > > *[oneadmin@ho-srv-cloudlab-01 ~]$ *onedatastore show 120 > > DATASTORE 120 INFORMATION > > > ID : 120 > > NAME : ceph_2 > > USER : oneadmin > > GROUP : oneadmin > > CLUSTER : - > > TYPE : IMAGE > > DS_MAD : ceph > > TM_MAD : ceph > > BASE PATH : /var/lib/one//datastores/120 > > DISK_TYPE : RBD > > DATASTORE CAPACITY > > > TOTAL: : 186.9G > > FREE: : 143.3G > > USED: : 43.5G > > LIMIT: : - > > PERMISSIONS > > > OWNER : um- > > GROUP : u-- > > OTHER : --- > > DATASTORE TEMPLATE > > > BASE_PATH="/var/lib/one//datastores/" > > BRIDGE_LIST="ho-srv-ceph-03" > > CLONE_TARGET="SELF" > > DATASTORE_CAPACITY_CHECK="yes" > > DISK_TYPE="RBD" > > DS_MAD="ceph" > > LN_TARGET="NONE" > > POOL_NAME="one" > > RBD_FORMAT="2" > > SAFE_DIRS="/var/lib/one/images" > > TM_MAD="ceph" > > TYPE="IMAGE_DS" > > IMAGES > > 29 > > > *[oneadmin@ho-srv-cloudlab-01 ~]$* cat centos65min.one > > NAME = "CentOS-6.5-x86_64-minimal" > > TYPE = CDROM > > PATH = /var/lib/one/images/CentOS-6.5-x86_64-minimal.iso > > DESCRIPTION = "CentOS-6.5-x86_64-minimal.iso" > > > *Note:* > > ho-srv-ceph-03: my ceph MON > > the one pool is just used after created and do nothing more > > OS: CentOS 6.6 > > Opennebula 4.8.0-1 > > > Is that a bug or did i do wrong? > > > > Regards, > > Ndhuynh > > > > > > > This e-mail message including any attachments is for the sole use of the > intended(s) and may contain privileged or confidential information. Any > unauthorized review, use, disclosure or distribution is prohibited. If you > are not intended recipient, please immediately contact the sender by reply > e-mail and delete the original message and destroy all copies thereof. > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > -- Jaime Melis Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | [email protected]
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
