Bug 1381235 - Failing Power operations for EAP7 server in domain mod
Summary: Failing Power operations for EAP7 server in domain mod
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.8.0
Assignee: Jirka Kremser
QA Contact: Mike Foley
URL:
Whiteboard: hawkular
Depends On:
Blocks: 1391694
TreeView+ depends on / blocked
 
Reported: 2016-10-03 13:30 UTC by Vojta Prusa
Modified: 2017-06-12 16:19 UTC (History)
8 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1391694 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:19:22 UTC
Category: ---
Cloudforms Team: Middleware
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Vojta Prusa 2016-10-03 13:30:14 UTC
Description of problem:

For Power operation on EAP7 servers in domain mode getting:

        [----] E, [2016-10-03T09:12:09.934345 #1994:a095934] ERROR -- : MIQ(ManageIQ::Providers::Hawkular::MiddlewareManager#run_operation) error callback was called, reason: Could not perform [Shutdown] on a [DMR Node] given by inventory path [/t;hawkular/f;master.eap7%20domain/r;Local~~/r;Local~%2Fhost%3Dmaster/r;Local~%2Fhost%3Dmaster%2Fserver%3DEAP7-109-server-one] requested on [2016-10-03T13:12Z]: java.lang.IllegalArgumentException: Cannot execute operation: unknown operation [Shutdown] for resource [Resource[id=Local~/host=master/server=EAP7-109-server-one][props={}]=[type=ResourceType[id=Domain WildFly Server][props={}]]]


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Heiko W. Rupp 2016-10-28 09:02:42 UTC
Jirka, can you please update the status?

Comment 3 Jirka Kremser 2016-10-31 12:06:50 UTC
This is happening because in the domain mode the operation needs to be run on a resource that represents the server-config, while it was run on the resource that represents the server.

In standalone, the shutdown/suspend/reload operations can be run (via jboss.cli) for the top-lvl DMR resource (/), because it represents the server itself.

The issue description says it wasn't possible to run the operation for this (inventory) resource

/t;hawkular/f;master.eap7%20domain/r;Local~~/r;Local~%2Fhost%3Dmaster/r;Local~%2Fhost%3Dmaster%2Fserver%3DEAP7-109-server-one

To fix this issue I need to assure it tries to run it on 

/t;hawkular/f;master.eap7%20domain/r;Local~~/r;Local~%2Fhost%3Dmaster/r;Local~%2Fhost%3Dmaster%2Fserver-config%3DEAP7-109-server-one

Comment 4 Jirka Kremser 2016-10-31 17:49:24 UTC
PR sent https://github.com/ManageIQ/manageiq/pull/12312

Comment 5 CFME Bot 2016-11-01 19:16:10 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/321252086fd1a0a7f9906114eafba4a7c54c95c7

commit 321252086fd1a0a7f9906114eafba4a7c54c95c7
Author:     Oleg Barenboim <chessbyte>
AuthorDate: Tue Nov 1 15:07:24 2016 -0400
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Nov 1 15:07:43 2016 -0400

    Merge pull request #12312 from Jiri-Kremser/domain-server-ops
    
    Middleware server running in domain should support only the power operations and monitoring.
    (cherry picked from commit aacf6d55b0ddc1f95c1eb282c776fa690e0beb12)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1381235

 app/controllers/middleware_server_controller.rb   | 10 ++++++++--
 app/helpers/application_helper/toolbar_builder.rb |  4 ++++
 app/models/middleware_server.rb                   |  4 ++++
 3 files changed, 16 insertions(+), 2 deletions(-)


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