Bug 1470554 - Adding fence agent through RESTApi fails with null pointer exception
Summary: Adding fence agent through RESTApi fails with null pointer exception
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Eli Mesika
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-13 07:53 UTC by Petr Matyáš
Modified: 2017-12-20 11:44 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:44:28 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: blocker+


Attachments (Terms of Use)
engine log (826.07 KB, text/plain)
2017-07-13 07:53 UTC, Petr Matyáš
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 79403 0 master MERGED core: fix NPE in fence agent port validation 2017-07-13 14:59:46 UTC

Description Petr Matyáš 2017-07-13 07:53:25 UTC
Created attachment 1297445 [details]
engine log

Description of problem:
2017-07-12 18:12:15,820 - MainThread - agents - DEBUG - CREATE request content is --  url:/ovirt-engine/api/hosts/$host_id/fenceagents body:<agent>
    <address>$address</address>
    <concurrent>false</concurrent>
    <order>1</order>
    <password>$password</password>
    <type>ipmilan</type>
    <username>$username</username>
</agent>

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20170711205308.git8e7af78.el7.centos.noarch

How reproducible:
always

Steps to Reproduce:
1. send request from description
2. 
3.

Actual results:
	Status: 500
	Reason: Internal Server Error
	Detail: [General command validation failure.]

Expected results:
added fence agent

Additional info:

Comment 1 Red Hat Bugzilla Rules Engine 2017-07-13 12:41:00 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Petr Matyáš 2017-07-21 10:20:55 UTC
Verified on ovirt-engine-4.2.0-0.0.master.20170719131008.gitde4718b.el7.centos.noarch

Comment 3 Sandro Bonazzola 2017-12-20 11:44:28 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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