Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1691398

Summary: java.lang.IllegalArgumentException: VdsFenceOptionMapping has no value when selecting PM agent type
Product: [oVirt] ovirt-engine Reporter: Petr Matyáš <pmatyas>
Component: BLL.InfraAssignee: Martin Perina <mperina>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.2CC: bshetty, bugs, gshereme, rnori
Target Milestone: ovirt-4.3.3Flags: pm-rhel: ovirt-4.3+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-16 13:58:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1692627    
Attachments:
Description Flags
engine log none

Description Petr Matyáš 2019-03-21 14:24:13 UTC
Created attachment 1546520 [details]
engine log

Description of problem:
I'm adding new PM agent and I'm getting this exception Exception: java.lang.IllegalArgumentException: VdsFenceOptionMapping has no value for version: general when I select any PM type

Version-Release number of selected component (if applicable):
ovirt-engine-4.3.2.1-0.1.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. add new PM agent through UI
2. select any type for it, e.g. ipmilan
3.

Actual results:
exception in log

Expected results:
no exception

Additional info:
2019-03-21 15:17:47,126+01 ERROR [org.ovirt.engine.core.bll.GetAgentFenceOptionsQuery] (default task-81) [d8dd8398-201a-4be0-86c0-5aefd955acf1] Query 'GetAgentFenceOptionsQuery' failed: VdsFenceOptionMapping has no value for version: general
2019-03-21 15:17:47,126+01 ERROR [org.ovirt.engine.core.bll.GetAgentFenceOptionsQuery] (default task-81) [d8dd8398-201a-4be0-86c0-5aefd955acf1] Exception: java.lang.IllegalArgumentException: VdsFenceOptionMapping has no value for version: general
        at org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.getValue(DBConfigUtils.java:161) [dal.jar:]
        at org.ovirt.engine.core.common.config.Config.getValue(Config.java:28) [common.jar:]
        at org.ovirt.engine.core.utils.pm.FenceConfigHelper.getFenceConfigurationValue(FenceConfigHelper.java:96) [utils.jar:]
...
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
        at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
        at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_201]

Comment 4 Petr Matyáš 2019-03-29 12:12:10 UTC
Just tried on latest engine ovirt-engine-4.3.3.1-0.1.el7.noarch and it works without problems, thus verified.

Comment 5 Ravi Nori 2019-03-29 13:07:00 UTC
*** Bug 1692624 has been marked as a duplicate of this bug. ***

Comment 6 Sandro Bonazzola 2019-04-16 13:58:10 UTC
This bugzilla is included in oVirt 4.3.3 release, published on April 16th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.3 release, it has been closed with a resolution of CURRENT RELEASE.

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