Bug 853700

Summary: ovirt-engine-backend [TEXT]: power management test fails and even log shows exact error from vdsm which is incorrect for UI
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Barak <bazulay>
Status: CLOSED WONTFIX QA Contact: Oded Ramraz <oramraz>
Severity: low Docs Contact:
Priority: medium    
Version: 3.1.0CC: dyasny, hateya, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-02 09:45:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs none

Description Dafna Ron 2012-09-02 08:51:02 UTC
Created attachment 609026 [details]
logs

Description of problem:

when power management test fails we show the following error in event log: 

Power Management test failed for Host gold-vdsc.Failed: You have to enter plug number Please use '-h' for usage 

this is the error that vdsm is showing: 

secure=yes out  err Failed: You have to enter plug number
Please use '-h' for usage

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

si16

How reproducible:

100%

Steps to Reproduce:
1. enter wrong configuration for power management on one of the hosts
2.
3.
  
Actual results:

we are getting this error: 

Power Management test failed for Host gold-vdsc.Failed: You have to enter plug number Please use '-h' for usage 

Expected results:

since user cannot type --help in UI we need to change the even log alert. 

Additional info:

backend: 

2012-09-02 11:40:06,026 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.FenceVdsVDSCommand] (ajp-/127.0.0.1:8009-10) [4d20f907] FINISH, FenceVdsVDSCommand, return: Test Failed, Host Status is: unknown. The fence-agent script reported the following error: Unable to connect/login to fencing device


vdsm:

secure=yes out  err Failed: You have to enter plug number
Please use '-h' for usage

Comment 1 Itamar Heim 2012-09-02 09:45:10 UTC
we are not going to manipulate the output of the fence script