Bug 1494955 - IllegalArgumentException is thrown when host with PM is edited
Summary: IllegalArgumentException is thrown when host with PM is edited
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Nobody
QA Contact: Lukas Svaty
URL:
Whiteboard:
: 1496499 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-24 10:40 UTC by Eli Mesika
Modified: 2018-02-12 10:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-12 10:10:23 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
engine log (192.10 KB, text/plain)
2017-09-24 10:40 UTC, Eli Mesika
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 82395 0 master MERGED engine: fix IllegalArgument during host edit 2017-10-02 12:44:42 UTC

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.


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