related to bug 967572 for balloon support. this is for engine to report on guests not respecting ballooning requests (which once cgroups for memory are supported, will get swapped out for their unreserved memory)
For this BZ the engine will produce an event in the event log. Going forward (in next versions) we'll provide additional information on memory usage and consumption of hosts and VMs, so balloon usage will be available there as well. For now, you should look for an event on a VM which does not cooperate with the ballooning requests.
Deatils on how to test; Setting up ============ Engine: Enable ballooning in cluster optimization Host: -- up-to-date vdsm and mom swapoff -a set rpc-port: 8080 in /etc/vdsm/mom.conf restart vdsm monitor the host (and its VMs) using: /var/log/vdsm/mom.log vdsCommand -s 0 getAllVmStats python -c "import xmlrpclib; from pprint import pprint; mom = xmlrpclib.ServerProxy('http://localhost:8080'); pprint(mom.getStatistics())" VMs (you need two): -- RAM: Host's RAM / 2 Resource allocation/Guaranteed memory: 512MB (or some other small number) yum install ovirt-guest-agent systemctl start ovirt-guest-agent systemctl enable ovirt-guest-agent mount -t tmpfs -o size=<almost all free RAM in Bytes> none /mnt swapoff -a Testing: ============ Once you have two VMs ready issue the next line in both: cat /dev/urandom >/mnt/data Then you can watch the host and once the the host's free memory drops bellow about 20% you should see ballooning commands like "mom.Controllers.Balloon - INFO - Ballooning guest:half1 from 2096400 to 1991580" being logged to mom.log. If the agent is down you will see "mom.Collectors.GuestMemory - WARNING - getVmMemoryStats() error: The ovirt-guest-agent is not active". If everything is ok on the VMs side you should see "GuestMonitor-<VM name> is ready". At that time you should stop the cat commands and start playing with stopping the guest-agent or rmmod-ing virtio_balloon module. Be aware of the fact you are filling the guest's memory and it has no swap. When the kernel needs memory and there is no free space in it, it first kills the ovirt-guest-agent and then panics... That is a feature though :)
verified on is12 info and warning available in /var/log/vdsm/mom.log after moment when there is no free memory for kernel guest-agent is killled afterwards kernel panics (as specified in comment#4): #service ovirt-guest-agent status ovirt-guest-agent dead but pid file exists appropriate message apears in webadmin portal in events tab: "The Balloon driver on VM vm1 on host 10.34.62.203 is requested but unavailable." Maybe this would be better to move in the future to Alerts tab to warn user to enable balloon in VM.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2014-0038.html