VM disk monitoring not working as expected
See original GitHub issueDescription
After enabling the workaround of #4791 something is working but it looks like the sent monitoring data from the remote hosts is not processed, despite the Successfully monitored VM: $VM_ID
log message
To Reproduce install opennebula and a remote KVM host instantiate a VM in the default ssh SYSTEM datatore check the VM disk size
Expected behavior The VM disks size should be updated
Details
- Affected Component: [Monitring]
- Hypervisor: [KVM]
- Version: [development]
Additional context As far as I understand there are two ways to feed VM disk stats to OpenNebula:
- on the frontend node - TM_MAD/monitor when called by for SYSTEM datastore which is not tagged for “at the host” monitoring (Cant twist my mind to name it “tagged for local monitoring”…)
- On the hosts - TM_MAD/monitor_ds called by the remote monitoring probe
the monitoring message should be
VM = [ ID = $VM_ID, MONITOR = "<base64>
DISK_SIZE=[ID=$DISK_ID,SIZE=$DISK_SIZE]
SNAPSHOT_SIZE = [ID=$SNAP_ID, DISK_ID=$DISK_ID, SIZE=$SNAP_SIZE]
</base64>" ]
The message is logged as successfully monitored by monitors:
Fri May 22 10:41:02 2020 [Z0][HMM][I]: Successfully monitored VM: 3
But in the VMs the disks sizes are 0:
[root@one512 ssh]# onevm show 3
VIRTUAL MACHINE 3 INFORMATION
ID : 3
NAME : Ttylinux - KVM-3
USER : oneadmin
GROUP : oneadmin
STATE : ACTIVE
LCM_STATE : RUNNING
LOCK : None
RESCHED : No
HOST : vs04
CLUSTER ID : 0
CLUSTER : default
START TIME : 05/20 16:15:55
END TIME : -
DEPLOY ID : 6d8f347e-fbce-4d26-9df5-d455d6a2c11b
VIRTUAL MACHINE MONITORING
CPU : 1.01
MEMORY : 106.1M
NETTX : 0K
NETRX : 0K
DISKRDBYTES : 13855320
DISKRDIOPS : 974
DISKWRBYTES : 596992
DISKWRIOPS : 303
ID : 3
TIMESTAMP : 1590133292
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
VM DISKS
ID DATASTORE TARGET IMAGE SIZE TYPE SAVE
0 default vda Ttylinux - KVM -/200M file NO
2 system sda 1024M -/1024M swap NO
1 - hda CONTEXT -/- - -
patched the monitor_ds script to save the base64 encoded string to a temp file
echo -e "$vm_monitor" | base64 -w 0 - | tee /tmp/monitor_ssh${vm}.b64
And there is the following data provided:
[root@vs04 tmp]# cat /tmp/monitor_ssh3.b64 | base64 -d
DISK_SIZE = [ ID=0, SIZE=27]
DISK_SIZE = [ ID=1, SIZE=1]
DISK_SIZE = [ ID=2, SIZE=1]
Progress Status
- Branch created
- Code committed to development branch
- Testing - QA
- Documentation
- Release notes - resolved issues, compatibility, known issues
- Code committed to upstream release/hotfix branches
- Documentation committed to upstream release/hotfix branches
Issue Analytics
- State:
- Created 3 years ago
- Comments:33 (33 by maintainers)
Top Results From Across the Web
Solutions for Disk Performance Problems
Use the disk charts to monitor average disk loads and to determine trends in disk usage. For example, you might notice a performance ......
Read more >Resource Monitor not showing expected disk read activity
I am running a meteor web server on a windows 2008 R2 VM machine. Am trying to run a performance test on the...
Read more >Disk Space Monitoring of Linux VM
This seems to be working as expected for my Windows VMs, but not Linux. Am I missing something? Can Veeam One not monitor...
Read more >vsphere HA - VM Monitoring doesn't work
Try to stop the disk I/O and network I/O in the VM level. Hope that will be restart your machine.
Read more >Troubleshoot Azure virtual machine performance on Linux ...
Go to the VM. · Click Diagnostics Settings. · Select the storage account and click Enable guest-level monitoring. Screenshot shows steps to enable ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@feldsam Documentation for the new monitoring: http://docs.opennebula.io/5.11/deployment/open_cloud_host_setup/monitoring.html#extending-the-monitor-system
@atodorov-storpool We will address your issues with nc and MONITOR_ADDRESS soon
Still using our own implementation so missed/not affected/ by #5855