Created attachment 1212963 [details] CFME logs Description of problem: The customer is trying to reconfigure the CPU using the compliance/control policy base on the CPU utilization, and CFME is not reporting the current CPU usage within the Guest VM. The memory Reconfiguration worked fine, and the customer was able to reconfigure it with the policy. Version-Release number of selected component (if applicable): 5.6.2.1-20160922130607_92d5b5e How reproducible: Steps to Reproduce: For CPU: New Scope: Scope VM and Instance : CPU - % Overallocated > 80 New condition VM and Instance : CPU - % Overallocated > 80 New Action Reconfigure CPUs to 4 For Memory: New Scope: VM and Instance : Memory - % Overallocated > 70 New Condition: VM and Instance : Memory - % Overallocated > 70 New Action: Reconfigure Memory to 3072 Actual results: With stress, with CPU high to 100% i have made a recheck for relationship and power state and smartstate analysis and then i have applied the compliance check, but the CPU was not changed . If i check again the CPU usage in the VM summary in CloudForms still show that the CPU $ usage is only 35% but in VMware the CPU usage is 100%. What do i have to do to force to CloudForms to check the same % of usage CPU and memory from VMware? Expected results: The CPU should be reconfigured based on VM Guest usage. Additional info:
Created attachment 1213921 [details] Profile
James started looking at this one, assigning to him.
Dmitri, can you please try to reproduce this on 5.6 and 5.7.
I cannot reproduce this issue on 5.6.2.1. I provisioned a VM with 2 CPUs and 2Gb of RAM. Then I imported attached policy profile and assigned it to the VM. In that VM I ran stress utility: $ stress -c 1 --vm 1 --vm-bytes 1800M Compliance policies successfully triggered during the compliance check. Excerpt from policy.log: INFO -- : MIQ(action-invoke) Invoking action [agrega memoria] for successful policy [Memoria >=5%], event: [VM Compliance Check], entity name: [dmisharo_BZ1387790], entity type: [Virtual Machine (VMware)], sequence: [1], synchronous? [true] INFO -- : MIQ(action_reconfigure_memory): Now executing [agrega memoria] for VM [dmisharo_BZ1387790], Memory value: [4096] INFO -- : MIQ(action-invoke) Invoking action [add more cpu] for successful policy [CPU >= 5%], event: [VM Compliance Check], entity name: [dmisharo_BZ1387790], entity type: [Virtual Machine (VMware)], sequence: [1], synchronous? [true] INFO -- : MIQ(action_reconfigure_cpus): Now executing Reconfigure CPUs for VM [dmisharo_BZ1387790], CPUs value: [4] Note. VM can be reconfigured when it turned off. I repeated the same steps on 5.7.0.7-beta1 and CPU number hasn't been reconfigured. Policy log: INFO -- : MIQ(condition-eval): Name: Memoria >=5%, Expression evaluation result: [true] INFO -- : MIQ(condition-eval): Name: CPU >= 5%, Expression evaluation result: [false] INFO -- : MIQ(action-invoke) Invoking action [agrega memoria] for successful policy [Memoria >=5%], event: [VM Compliance Check], entity name: [dmisharo_2], entity type: [Virtual Machine (VMware)], sequence: [1], synchronous? [true] INFO -- : MIQ(action_reconfigure_memory): Now executing [agrega memoria] for VM [dmisharo_2], Memory value: [4096]
Does the "over allocated" MEMORY do the same thing? What should i do for make the resizing of the CPU/memory? What is the correct selection?