[one-users] Ceph datastore monitoring in OpenNebula

Alvaro Simon Garcia Alvaro.SimonGarcia at UGent.be
Tue Jun 17 01:09:13 PDT 2014


Hi all


We have included our ONE nodes into Ceph cluster, cephx auth is working 
but OpenNebula is not able to detect the free space:



> $ onedatastore show 103
> DATASTORE 103 INFORMATION
> ID             : 103
> NAME           : ceph
> USER           : oneadmin
> GROUP          : oneadmin
> CLUSTER        : -
> TYPE           : IMAGE
> DS_MAD         : ceph
> TM_MAD         : ceph
> BASE PATH      : /var/lib/one//datastores/103
> DISK_TYPE      : RBD
>
> DATASTORE CAPACITY
> TOTAL:         : 0M
> FREE:          : 0M
> USED:          : 0M
> LIMIT:         : -
>
> PERMISSIONS
> OWNER          : um-
> GROUP          : u--
> OTHER          : ---



> $ onedatastore list
>   ID NAME                SIZE AVAIL CLUSTER      IMAGES TYPE DS       TM
>    0 system            114.8G 85%   -                 0 sys -        
> shared
>    1 default           114.9G 84%   -                 2 img fs       ssh
>    2 files             114.9G 84%   -                 0 fil fs       ssh
>  103 ceph                  0M -     -                 0 img ceph     ceph



but if we run rados as oneadmin user:

>
>
> $  rados df -p one --id libvirt
> pool name       category                 KB      objects clones     
> degraded      unfound           rd        rd KB           wr        wr KB
> one             -                          0 0            0            
> 0           0            0 0            0            0
>   total used         1581852           37
>   total avail   140846865180
>   total space   140848447032



It's working correctly (we are using one pool and libvirt ceph id)

the oned.log only shows this info:
Tue Jun 17 10:06:37 2014 [InM][D]: Monitoring datastore default (1)
Tue Jun 17 10:06:37 2014 [InM][D]: Monitoring datastore files (2)
Tue Jun 17 10:06:37 2014 [InM][D]: Monitoring datastore ceph (103)
Tue Jun 17 10:06:37 2014 [ImM][D]: Datastore default (1) successfully 
monitored.
Tue Jun 17 10:06:37 2014 [ImM][D]: Datastore files (2) successfully 
monitored.
Tue Jun 17 10:06:37 2014 [ImM][D]: Datastore ceph (103) successfully 
monitored.

Any clue about how to debug this issue?

Thanks in advance!
Alvaro





More information about the Users mailing list