@ahuertas I have the same issue @way is seeing with the sunstone datastore view not updating used capacity of the pool. I recently just created a HA cluster with 3oned servers, 2 kvm hosts, and 3 sunstone with the same ceph pool I had been using for 5.6 testing, now with 5.8.1 testing. IIRC this was working correctly with version 5.8, but my environment is a little different now so maybe something is misconfigured on my end???
I have 10 VMs with ~300 MiB disk usage each (8GB provisioned disk), 1 OS image @ 1.2GiB, and an empty generic storage datablock @ 20GiB.
The capacity shown is typically the provisioned/total.
Here is ceph output
[oneadmin@front2 root]$ rbd du -p cachepool
NAME PROVISIONED USED
foo 4 GiB 0 B
one-4 8 GiB 1.2 GiB
one-5@snap 8 GiB 1.2 GiB
one-5 8 GiB 0 B
one-5-10-0 8 GiB 272 MiB
one-5-11-0 8 GiB 272 MiB
one-5-2-0 8 GiB 316 MiB
one-5-3-0 8 GiB 316 MiB
one-5-4-0 8 GiB 272 MiB
one-5-5-0 8 GiB 272 MiB
one-5-6-0 8 GiB 272 MiB
one-5-7-0 8 GiB 272 MiB
one-5-8-0 8 GiB 272 MiB
one-5-9-0 8 GiB 272 MiB
one-6 20 GiB 0 B
120 GiB 5.2 GiB
one-6 generic storage image oned log output:
Mon May 6 10:10:20 2019 [Z0][ImM][I]: Image created and ready to use
Mon May 6 10:10:20 2019 [Z0][InM][D]: Monitoring datastore Ceph-Images (103)
Mon May 6 10:10:22 2019 [Z0][ImM][D]: Datastore Ceph-Images (103) successfully monitored.
output of oneimage show 5:
[oneadmin@front2 root]$ oneimage show 5
IMAGE 5 INFORMATION
ID : 5
NAME : CentOS 7 - KVM
USER : oneadmin
GROUP : oneadmin
LOCK : None
DATASTORE : Ceph-Images
TYPE : OS
REGISTER TIME : 05/05 16:58:54
PERSISTENT : No
SOURCE : hddpool/one-5
PATH : https://marketplace.opennebula.systems//appliance/4e3b2788-d174-4151-b026-94bb0b987cbb/download/0
SIZE : 8G
STATE : used
RUNNING_VMS : 10
PERMISSIONS
OWNER : um-
GROUP : —
OTHER : —
IMAGE TEMPLATE
DEV_PREFIX=“vd”
FORMAT=“qcow2”
FROM_APP=“28”
FROM_APP_MD5=“dbc81ae029a17e12e51c0aac3cc5ac4d”
FROM_APP_NAME=“CentOS 7 - KVM”
VIRTUAL MACHINES
ID USER GROUP NAME STAT UCPU UMEM HOST TIME
11 oneadmin oneadmin two7 runn 1.0 570.7M cloud3.ecs 0d 00h14
10 oneadmin oneadmin two6 runn 0.0 568.8M cloud4.ecs 0d 00h14
9 oneadmin oneadmin two5 runn 0.0 549.6M cloud3.ecs 0d 00h14
8 oneadmin oneadmin two4 runn 0.0 586.4M cloud4.ecs 0d 00h14
7 oneadmin oneadmin two0 runn 0.0 565.2M cloud3.ecs 0d 00h14
6 oneadmin oneadmin two1 runn 0.0 572.6M cloud4.ecs 0d 00h14
5 oneadmin oneadmin two2 runn 0.0 542.7M cloud3.ecs 0d 00h14
4 oneadmin oneadmin two3 runn 0.0 590.6M cloud4.ecs 0d 00h14
3 oneadmin oneadmin 0 runn 0.0 501.8M cloud3.ecs 0d 17h19
2 oneadmin oneadmin 1 runn 0.0 665.7M cloud4.ecs 0d 17h19
onevm show 11:
[oneadmin@front2 root]$ onevm show 11
VIRTUAL MACHINE 11 INFORMATION
ID : 11
NAME : two7
USER : oneadmin
GROUP : oneadmin
STATE : ACTIVE
LCM_STATE : RUNNING
LOCK : None
RESCHED : No
HOST : cloud3.ecstest.com
CLUSTER ID : 0
CLUSTER : default
START TIME : 05/06 10:07:51
END TIME : -
DEPLOY ID : one-11
VIRTUAL MACHINE MONITORING
CPU : 0.0
MEMORY : 570.9M
NETTX : 0K
NETRX : 0K
DISKRDBYTES : 139291972
DISKRDIOPS : 6570
DISKWRBYTES : 15672320
DISKWRIOPS : 320
PERMISSIONS
OWNER : um-
GROUP : —
OTHER : —
VM DISKS
ID DATASTORE TARGET IMAGE SIZE TYPE SAVE
0 Ceph-Image vda CentOS 7 - KVM -/8G rbd NO
1 - hda CONTEXT -/- - -
VIRTUAL MACHINE HISTORY
SEQ UID REQ HOST ACTION DS START TIME PROLOG
0 - - cloud3.ecste none 104 05/06 10:09:40 0d 00h13m 0h00m04s
USER TEMPLATE
LOGO=“images/logos/centos.png”
SCHED_MESSAGE=“Mon May 6 10:09:08 2019 : Cannot dispatch VM to any Host. Possible reasons: Not enough capacity in Host or System DS, dispatch limit reached, or limit of free leases reached.”
VIRTUAL MACHINE TEMPLATE
AUTOMATIC_DS_REQUIREMENTS=“("CLUSTERS/ID" @> 0)”
AUTOMATIC_NIC_REQUIREMENTS=“("CLUSTERS/ID" @> 0)”
AUTOMATIC_REQUIREMENTS=“(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES)”
CONTEXT=[
DISK_ID=“1”,
NETWORK=“YES”,
SSH_PUBLIC_KEY=“”,
TARGET=“hda” ]
CPU=“1”
GRAPHICS=[
LISTEN=“0.0.0.0”,
PORT=“5911”,
TYPE=“vnc” ]
MEMORY=“768”
OS=[
ARCH=“x86_64” ]
TEMPLATE_ID=“1”
TM_MAD_SYSTEM=“ceph”
VMID=“11”
Size is -/8 for the rbd disk. Idk what is up with the scheduling message, i batch created these VMs and onehost show says it is running on my host. I can’t vnc to confirm this vm is ACTUALLY running because I haven’t quite set it up on my external sunstone servers yet.