CEPH Image Datastore shows up with zero size

I have a CEPH cluster with 3 nodes and successfully added it to my OpenNebula instance (4.14.2).
the cluster has a pool defined which goes by the recommended name “one” and it’s possible to write data to that pool (checked with rados cli tool). Also the CEPH cluster health is OK (ceph health output) and all nodes are up.

However the Image Datastore shows up with a size of 0 in sunstone / via onedatastore list

oned.log output of DS creation is as follows:
> Tue Feb 23 14:05:16 2016 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 12 -
> Tue Feb 23 14:05:16 2016 [Z0][ReM][D]: Req:5520 UID:3 DatastoreAllocate invoked , “NAME=“CEPH Images”…”, -1
> Tue Feb 23 14:05:16 2016 [Z0][InM][D]: Monitoring datastore CEPH Images (131)
> Tue Feb 23 14:05:16 2016 [Z0][ReM][D]: Req:5520 UID:3 DatastoreAllocate result SUCCESS, 131
> Tue Feb 23 14:05:16 2016 [Z0][ReM][D]: Req:6416 UID:3 DatastoreInfo invoked , 131
> Tue Feb 23 14:05:16 2016 [Z0][ReM][D]: Req:6416 UID:3 DatastoreInfo result SUCCESS, “131</…”
> Tue Feb 23 14:05:16 2016 [Z0][ReM][D]: Req:3776 UID:3 DatastorePoolInfo invoked
> Tue Feb 23 14:05:16 2016 [Z0][ReM][D]: Req:3776 UID:3 DatastorePoolInfo result SUCCESS, “<DATASTORE_POOL><DAT…”
> Tue Feb 23 14:05:16 2016 [Z0][ReM][D]: Req:2000 UID:3 ClusterPoolInfo invoked
> Tue Feb 23 14:05:16 2016 [Z0][ReM][D]: Req:2000 UID:3 ClusterPoolInfo result SUCCESS, “<CLUSTER_POOL><CLUST…”
> Tue Feb 23 14:05:16 2016 [Z0][ImM][D]: Datastore CEPH Images (131) successfully monitored.

It’s monitoring just fine since then. But the size remains 0.
Here is the output from ‘onedatastore list’:

Any help would be greatly appreciated!

Thanks,
Christian

Solved it: Forgot to set the correct permission for the keyring:

sudo chmod +r /etc/ceph/ceph.client.admin.keyring

1 Like

I actually have the same problem but the permissions are OK.

Both the libvirt id and the admin ID can create/remove etc stuff from the ceph env
but for whatever reason the datastore size is 0 bytes while checking with the CLI it’s not.
(are there logs to check what opennebula does… it’s new to me)