Bug 1495209

Summary: A control alert for real time performance of a VM and Instance is not firing
Product: Red Hat CloudForms Management Engine Reporter: Peter McGowan <pmcgowan>
Component: UI - OPSAssignee: lgalis
Status: CLOSED CURRENTRELEASE QA Contact: John Dupuy <jdupuy>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: anikifor, gtanzill, hkataria, jhardy, jritenou, mpovolny, obarenbo, pmcgowan, simaishi, smallamp
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1552794 (view as bug list) Environment:
Last Closed: 2019-02-11 13:53:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1552794    
Attachments:
Description Flags
Screenshot of alert definition
none
Extract from evm.log none

Description Peter McGowan 2017-09-25 13:48:36 UTC
Created attachment 1330554 [details]
Screenshot of alert definition

Description of problem:
I have a control alert defined to trigger on CPU utilization > 10% for a RHV VM or instance (see attached screenshot). The alert profile is assigned to tagged VMs, one of which is consistently running at around 48% CPU utilization. No alert is triggered.

Version-Release number of selected component (if applicable):
5.8.1.5

How reproducible:
Every time

Steps to Reproduce:
1. Set up a real-time control alert as shown in the attached screenshot
2. Generate a CPU load on a VM managed by the CFME appliance


Actual results:
no alert is generated

Expected results:
an alert if generated

Additional info:
An evm.log is available that shows the output from an automate method called 'test26'. This calls perf_collect_metrics on each of the tagged VMs, and shows that the average utilisation the VM 'vvaldez-atomic-host' is above the 10% threshold that the alert is defined for. The log also shows the debug output:

MIQ(MiqAlert#evaluate) Evaluating Alert [CPU Utilisation above 10%] for target: [vvaldez-atomic-host]... Result: [false]

Comment 2 Peter McGowan 2017-09-25 13:57:28 UTC
Created attachment 1330557 [details]
Extract from evm.log

Comment 8 Peter McGowan 2017-12-07 13:49:47 UTC
Aren't we saying that "cpu_used_delta_summation" is a VMware-only value? If so then the human-readable value should indicate the provider-specific nature of the counter, for example "Total CPU usage (VMware)" or "Total CPU time usage (VMware)".

Similarly any RHV-specific counters such as "cpu_usage_rate_average" should also indicate their provider-specific association in the human-readable value.

Comment 12 John Dupuy 2018-11-09 19:25:42 UTC
Version: 5.10.0.23.20181106165157_92dd189

Verification Steps:
1) Navigate to Control -> Explorer -> Alerts
2) Select "Configuration", "Add a New Alert"
3) Select "What to Evaluate", "Real Time Performance"
4) Select "Performance field"
5) Verified that "CPU-Time used (ms)" has been changed to "CPU-Total time usage (VMware) (ms)"