Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1605133 - [downstream clone - 4.2.5] Skipped power management operation has misleading logs
[downstream clone - 4.2.5] Skipped power management operation has misleading ...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
4.1.10
x86_64 Linux
unspecified Severity high
: ovirt-4.2.5
: ---
Assigned To: Ravi Nori
Petr Matyáš
: ZStream
Depends On: 1568265
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-20 05:13 EDT by RHV Bugzilla Automation and Verification Bot
Modified: 2018-07-31 13:50 EDT (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1568265
Environment:
Last Closed: 2018-07-31 13:49:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Infra
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
pmatyas: testing_plan_complete-


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3493331 None None None 2018-07-20 05:13 EDT
oVirt gerrit 91848 master MERGED engine : Skipped power management operation has misleading logs 2018-07-20 05:13 EDT
oVirt gerrit 92760 ovirt-engine-4.2 MERGED engine : Skipped power management operation has misleading logs 2018-07-20 05:13 EDT
Red Hat Product Errata RHBA-2018:2318 None None None 2018-07-31 13:50 EDT

  None (edit)
Description RHV Bugzilla Automation and Verification Bot 2018-07-20 05:13:22 EDT
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1568265 +++
======================================================================

Description of problem:

In executeCommand() in VdsNotRespondingTreatmentCommand.java, there is this initial if clause that aborts fencing:

if (!previousHostedEngineHost.isPreviousHostId(getVds().getId())                                                                                                                       
        && !new FenceValidator().isStartupTimeoutPassed()) {                                                                                                                           
    log.error("Failed to run Fence script on vds '{}'.", getVdsName());                                                                                                                
    alertIfPowerManagementOperationSkipped(RESTART, null);                                                                                                                             
    // If fencing can't be done and the host is the SPM, set storage-pool to non-operational                                                                                           
    if (getVds().getSpmStatus() != VdsSpmStatus.None) {                                                                                                                                
        setStoragePoolNonOperational();                                                                                                                                                
    }                                                                                                                                                                                  
return;

On entering the if clause, the host is not fenced and VDS_ALERT_FENCE_OPERATION_SKIPPED is logged. And VDS_ALERT_FENCE_OPERATION_SKIPPED="....It has no power management configured..."

I dont see that if clause testing for power management configured, Power management configured check on a different place.

The if clause evaluates DisableFenceAtStartupInSec and not fencing the HE host, IMHO this has nothing to do with power management enabled. 

Am I missing something or this produces misleading logs?

Please improve logging, a separate message for each reason would be nice:
- HostedEngine (4.1+)
- DisableFenceAtStartup (4.1+)
- isInFenceFlow() (4.2+)
- Move VDS_ALERT_FENCE_OPERATION_SKIPPED

(Originally by Germano Veit Michel)
Comment 1 RHV Bugzilla Automation and Verification Bot 2018-07-20 05:13:30 EDT
This bug is Modified for some time already, but misses PM an QA ack, can you please check?

(Originally by Dusan Fodor)
Comment 6 Petr Matyáš 2018-07-27 10:06:37 EDT
Verified on ovirt-engine-4.2.5.2-0.1.el7ev.noarch
Comment 8 errata-xmlrpc 2018-07-31 13:49:18 EDT
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.

https://access.redhat.com/errata/RHBA-2018:2318

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