Hello Community,
Following my LXCoNe quest I have hit another ‘wall’. The monitoring information pertaining to VMs doesn’t show up in onevm list
output.
The VMs have the information available in their template and /var/log/one/oned.log
shows that VMs are successfully monitored.
~# onevm list
ID USER GROUP NAME STAT UCPU UMEM HOST TIME
37 oneadmin oneadmin djx runn 0 0K yoda 13d 18h47
38 oneadmin oneadmin djn runn 0 0K yoda 10d 03h25
~# onevm show 38
VIRTUAL MACHINE 38 INFORMATION
ID : 38
NAME : djn
USER : oneadmin
GROUP : oneadmin
STATE : ACTIVE
LCM_STATE : RUNNING
RESCHED : No
HOST : yoda
CLUSTER ID : -1
CLUSTER : default
START TIME : 12/04 08:57:20
END TIME : -
DEPLOY ID : /dev/loop3
VIRTUAL MACHINE MONITORING
NETTX : 197K
NETRX : 197K
USEDCPU : 0.0
USEDMEMORY : 9226.24
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
...
...
~# date
Mon Dec 14 12:24:26 UTC 2015
~# cat /var/log/one/oned.log | grep "VM 38"
Mon Dec 14 12:21:48 2015 [Z0][VMM][D]: VM 38 successfully monitored: STATE=a USEDMEMORY=9328.64 USEDCPU=2.0 NETTX=193455 NETRX=193455
Mon Dec 14 12:23:02 2015 [Z0][VMM][D]: VM 38 successfully monitored: STATE=a USEDMEMORY=9226.24 USEDCPU=0.0 NETTX=201988 NETRX=201988
Mon Dec 14 12:24:15 2015 [Z0][VMM][D]: VM 38 successfully monitored: STATE=a USEDMEMORY=9226.24 USEDCPU=0.0 NETTX=211740 NETRX=211740
Running the monitoring scripts by hand also works, as expected.
~# /var/tmp/one/im/lxc.d/poll.sh
VM_POLL=YES
VM=[
ID=37,
DEPLOY_ID=one-37,
POLL="STATE=a USEDMEMORY=10076.16 USEDCPU=0.0 NETTX=279276 NETRX=279276" ]
VM=[
ID=38,
DEPLOY_ID=one-38,
POLL="STATE=a USEDMEMORY=9236.48 USEDCPU=0.0 NETTX=232463 NETRX=232463" ]
VM=[
ID=42,
DEPLOY_ID=one-42,
POLL="STATE=d" ]
VM=[
ID=43,
DEPLOY_ID=one-43,
POLL="STATE=d" ]
Can anyone shed some light on this matter? Thanks.