Opennebula not create VM in Ceph pool


#1

Hi everyone,

I’m (trying)using Opennebula with Ceph with RBD. I was configurated Opennebula according with manual, and the Ceph pool is listed in Datastore section. But when I create the VM they is created in host filesystem, not in RBD pool, and not happen nothing error. Do I making any wrong? Can anyone help-me?

Edit: I saw that “onevm” returns VM in Ceph pool, but if I check RBD pool the image not exists, and in host filesystem image is present.

See:

$ onevm show 106
[…]
VIRTUAL MACHINE HISTORY
SEQ UID REQ HOST ACTION DS START TIME PROLOG
0 - - host1 none 102 12/12 14:56:07 0d 16h55m 0h00m55s
[…]
SCHED_DS_REQUIREMENTS="ID=“102"”
[…]
TEMPLATE_ID=“29”

$ onetemplate show 29
[…]
SCHED_DS_REQUIREMENTS="ID=“102"”

$ onedatastore show 102
DATASTORE 102 INFORMATION
ID : 102
NAME : pool1
USER : oneadmin
GROUP : oneadmin
CLUSTERS : 0
TYPE : SYSTEM
DS_MAD : -
TM_MAD : ceph
BASE PATH : /var/lib/one//datastores/102
DISK_TYPE : RBD
STATE : READY


#2

I found the problem: I was using images from datastore of filesystem. I created image datastore in same Ceph pool that Opennebula system datastore, and VM was created in Ceph correctly pool.

Abstract: If I understand, for use a Ceph pool for system datastore, do you need create an associated image datastore em the same Ceph pool. It is correct?


#3

Yes, you need to point both image and system datastores to the same pool. IIRC it mentioned in the manual.