Bug 1387790 - Cannot Reconfigure vCPU with Control Policy For VMWare Provider
Summary: Cannot Reconfigure vCPU with Control Policy For VMWare Provider
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: cfme-future
Assignee: James Wong
QA Contact: Dmitry Misharov
URL:
Whiteboard: vm:reconfigure:vsphere:control
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-21 22:11 UTC by Saif Ali
Modified: 2020-01-17 16:04 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-29 20:05:16 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
CFME logs (7.95 MB, application/x-xz)
2016-10-21 22:11 UTC, Saif Ali
no flags Details
Profile (4.38 KB, text/x-vhdl)
2016-10-25 13:51 UTC, Saif Ali
no flags Details

Description Saif Ali 2016-10-21 22:11:27 UTC
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:

Comment 2 Saif Ali 2016-10-25 13:51:06 UTC
Created attachment 1213921 [details]
Profile

Comment 3 Adam Grare 2016-10-27 14:52:27 UTC
James started looking at this one, assigning to him.

Comment 4 Dave Johnson 2016-10-28 20:47:36 UTC
Dmitri, can you please try to reproduce this on 5.6 and 5.7.

Comment 5 Dmitry Misharov 2016-11-01 15:03:45 UTC
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]

Comment 8 Saif Ali 2016-11-11 19:46:43 UTC
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?


Note You need to log in before you can comment on or make changes to this bug.