Bug 1494955

Summary: IllegalArgumentException is thrown when host with PM is edited
Product: [oVirt] ovirt-engine Reporter: Eli Mesika <emesika>
Component: Backend.CoreAssignee: Nobody <nobody>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, lsvaty, mperina, pmatyas
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.0   
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: 2018-02-12 10:10:23 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
engine log none

Description Eli Mesika 2017-09-24 10:40:58 UTC
Created attachment 1330143 [details]
engine log

Description of problem:

IllegalArgumentException is thrown when host with power management is edited 

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


How reproducible:


Steps to Reproduce:
1.Add two hosts 
2.Edit one of the hosts check PM checkbox and add one fencing agent 
3.click OK 
4.Open the host edit dialog for the host with the PM definitions 

Actual results:

IllegalArgumentException is thrown 

Expected results:

Operation should succeed 


Additional info:

Probably a result of moving the default config values to the database re-factoring

Exception thrown 

2017-09-24 13:26:28,518+03 ERROR [org.ovirt.engine.core.bll.GetAgentFenceOptionsQuery] (default task-71) [9086222a-3454-4eb1-ab90-a126f6df74b4] Exception: java.lang.IllegalArgumentException: VdsFenceOptionMapping has no value for version: general
        at org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.getValue(DBConfigUtils.java:65) [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 org.ovirt.engine.core.utils.pm.VdsFenceOptions.cacheFenceAgentsOptionMapping(VdsFenceOptions.java:78) [utils.jar:]
        at org.ovirt.engine.core.utils.pm.VdsFenceOptions.initCache(VdsFenceOptions.java:236) [utils.jar:]
        at org.ovirt.engine.core.utils.pm.VdsFenceOptions.<init>(VdsFenceOptions.java:63) [utils.jar:]
        at org.ovirt.engine.core.utils.pm.VdsFenceOptions.<init>(VdsFenceOptions.java:47) [utils.jar:]
        at org.ovirt.engine.core.bll.GetAgentFenceOptionsQuery.executeQueryCommand(GetAgentFenceOptionsQuery.java:18) [bll.jar:]
        at org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:106) [bll.jar:]
        at org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33) [dal.jar:]
        at org.ovirt.engine.core.bll.executor.DefaultBackendQueryExecutor.execute(DefaultBackendQueryExecutor.java:14) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:570) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:539) [bll.jar:]
        at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source) [:1.8.0_144]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_144]
        at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_144]
        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)


Full engine log file is attached

Comment 1 Miroslava Voglova 2017-09-29 14:28:23 UTC
*** Bug 1496499 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Svaty 2018-01-30 13:42:56 UTC
verified in ovirt-engine-4.2.1.3-0.1.el7.noarch

Comment 4 Sandro Bonazzola 2018-02-12 10:10:23 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.