Bug 856110
Summary: | CLI invocation for a DomainDeployment Proxy deployToServerGroup fails | |||
---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Mohamed Hamza Ben Mansour <mbenmans> | |
Component: | CLI, Plugin -- JBoss EAP 6 | Assignee: | Jay Shaughnessy <jshaughn> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | JON 3.1.0 | CC: | fbrychta, jshaughn, loleary, mazz | |
Target Milestone: | --- | |||
Target Release: | JON 3.1.2 | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 856833 (view as bug list) | Environment: | ||
Last Closed: | 2013-09-11 10:58:35 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: | ||||
Bug Depends On: | 856833 | |||
Bug Blocks: |
Description
Mohamed Hamza Ben Mansour
2012-09-11 08:35:11 UTC
Please note that invoking the same operation from the UI works just fine. I only get this error when invoking the operation via the CLI. Here is the relevant part of the stack: ERROR [org.rhq.enterprise.server.remote.RemoteSafeInvocationHandler] Failed to invoke remote request java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... at java.lang.Thread.run(Thread.java:636) Caused by: javax.ejb.EJBException: org.rhq.enterprise.server.exception.ScheduleException: java.lang.IllegalArgumentException: Parameters for [promote] on Resource of type [DomainDeployment] are not valid: [Required property 'server-group' was not set in Configuration[id=0].] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63) ... at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:84) at $Proxy393.scheduleResourceOperation(Unknown Source) ... 75 more Caused by: org.rhq.enterprise.server.exception.ScheduleException: java.lang.IllegalArgumentException: Parameters for [promote] on Resource of type [DomainDeployment] are not valid: [Required property 'server-group' was not set in Configuration[id=0].] at org.rhq.enterprise.server.operation.OperationManagerBean.scheduleResourceOperation(OperationManagerBean.java:168) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) ... 92 more Caused by: java.lang.IllegalArgumentException: Parameters for [promote] on Resource of type [DomainDeployment] are not valid: [Required property 'server-group' was not set in Configuration[id=0].] at org.rhq.enterprise.server.operation.OperationManagerBean.validateOperationNameAndParameters(OperationManagerBean.java:2130) at org.rhq.enterprise.server.operation.OperationManagerBean.scheduleResourceOperation(OperationManagerBean.java:215) at org.rhq.enterprise.server.operation.OperationManagerBean.scheduleResourceOperation(OperationManagerBean.java:166) ... 120 more Fixed upstream. cherry picked the master commit (c1ba47b0832ac7268c426d4111a2ee2e19c1e4ae): a177c668faeefa7694c7315014835ccfd9a9a3ea Moving to ON_QA as available for test with build : https://brewweb.devel.redhat.com//buildinfo?buildID=244662. Verified on 3.1.2.ER2. Successfully deployed war to server group using domainDeploymentProxy.deploytoServerGroup("helloworld.war", true, "main-server-group") |