Bug 1717179

Summary: fence_rhevm cannot obtain plug status on oVirt 4.3.4.2-1.el7 (RC2)
Product: Red Hat Enterprise Linux 8 Reporter: Strahil Nikolov <hunter86_bg>
Component: fence-agentsAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED NOTABUG QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: bfrank, cluster-maint, mperina
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-20 08:17:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
oVirt-4.3.4.2-1.el7-API-response
none
debug file from fence_rhevm command none

Description Strahil Nikolov 2019-06-04 20:27:36 UTC
Created attachment 1577275 [details]
oVirt-4.3.4.2-1.el7-API-response

Description of problem:
fence_rhevm cannot obtain the plug status and errors with: "ERROR: Failed: Unable to obtain correct plug status or plug is not available"

Version-Release number of selected component (if applicable):
fence-agents-common-4.2.1-17.el8.noarch
fence-agents-rhevm-4.2.1-17.el8.noarch
libxshmfence-1.3-2.el8.x86_64

How reproducible:
Always

Steps to Reproduce:
1.Install on a RHEL8 the fence_rhevm package
2.Run with necessary data:
fence_rhevm -vvv -4 -a <ovirt-engine-ip> -u <ovirt-engine-port> -t -p password -l 'admin@internal' -n <VM-name-to-fence> --ssl-insecure -D /tmp/fence_rhevm.debug


Actual results:
The fence_rhevm cannot obtain the current status of the VM and fails to reboot the target

Expected results:
Successfull connection and reboot of the target VM

Additional info:

Comment 1 Martin Perina 2019-06-05 09:04:04 UTC
(In reply to Strahil Nikolov from comment #0)
> Created attachment 1577275 [details]
> oVirt-4.3.4.2-1.el7-API-response
> 
> Description of problem:
> fence_rhevm cannot obtain the plug status and errors with: "ERROR: Failed:
> Unable to obtain correct plug status or plug is not available"
> 
> Version-Release number of selected component (if applicable):
> fence-agents-common-4.2.1-17.el8.noarch
> fence-agents-rhevm-4.2.1-17.el8.noarch
> libxshmfence-1.3-2.el8.x86_64
> 
> How reproducible:
> Always
> 
> Steps to Reproduce:
> 1.Install on a RHEL8 the fence_rhevm package
> 2.Run with necessary data:
> fence_rhevm -vvv -4 -a <ovirt-engine-ip> -u <ovirt-engine-port> -t -p
> password -l 'admin@internal' -n <VM-name-to-fence> --ssl-insecure -D
> /tmp/fence_rhevm.debug

Could you please attach content of fence_rhevm.debug file?

Comment 2 Strahil Nikolov 2019-06-05 10:31:23 UTC
Created attachment 1577501 [details]
debug file from fence_rhevm command

Comment 3 Martin Perina 2019-06-05 11:06:39 UTC
Could you please try to use "--disable-http-filter" option? You are using admin@internal, but by default it's expected than non-admin user is used and that's why http filter is enabled by default (it returns only search results with direct permissions and ingnores indirect ones).

Comment 4 Strahil Nikolov 2019-06-05 11:34:48 UTC
It works as expected.

The question is why the man page does not state that ?
The only entry about it is not stating anything like that: "Set HTTP Filter header to false".

Maybe a better description should be provided in the man.

Let's classify it as a DOCU bug , as it seems that fence_rhevm is working quite well.

Thanks for your time.

Comment 5 Strahil Nikolov 2020-01-18 18:19:23 UTC
It seems that the described  solution  mentions  this  case  ,  so I guess  it can be closed.