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:
Jirka, can you please update the status?
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
PR sent https://github.com/ManageIQ/manageiq/pull/12312
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(-)