andrijapanicsb opened a new issue #3942: Host allocated RAM reported when no running VMs URL: https://github.com/apache/cloudstack/issues/3942 **Problem**: host reported as being fully RAM allocated when all VMs are stopped on this host. Reproduce: Host has 6 VMs running. Stop all 6 VMs - zero VMs running on this host. Fetch the latest metrics via Dashboard "Fetch latest" button. Go to host, click on it, open the Statistics tab - it will show RAM memory as allocated (sum of RAM memory of all VMs) - so no new VMs cant be started on it. I've traced this to the last_host_id value in vm_instance table. Test workaround: - Open DB editor, find all VMs where last_host_id = <hostID> and change this to another host ID - so that no VMs are referencing this particular host. Fetch the latest statistics again - it will show reduction of RAM allocated. CloudStack Master (4.14) (one of the PRs - needs to be tested in the actual Master as well) KVM (Ubunut18, should not be relevant)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
