Bug 1443881

Summary: Middleware - Standalone EAP7 Server is shown as Immutable
Product: Red Hat CloudForms Management Engine Reporter: Hayk Hovsepyan <hhovsepy>
Component: ProvidersAssignee: Cainã Costa <cacosta>
Status: CLOSED EOL QA Contact: Hayk Hovsepyan <hhovsepy>
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: abonas, cacosta, cpelland, hhovsepy, hrupp, jfrey, jhardy, mfoley, mmahoney, obarenbo, pyadav, simaishi
Target Milestone: GAKeywords: Reopened, TestOnly, Triaged
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1446387 (view as bug list) Environment:
Last Closed: 2018-03-06 15:49:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Middleware Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1446387    
Attachments:
Description Flags
server details page
none
server log none

Description Hayk Hovsepyan 2017-04-20 08:11:44 UTC
Created attachment 1272882 [details]
server details page

Description of problem:
When running EAP7 server in standalone mode installed from ZIP file, it is shown Immutable in CFME UI.

Version-Release number of selected component (if applicable):
CFME Version 5.8.0.11-beta2.20170418170914_a53d2a7 

MM Version 0.35.0.Final-redhat-1 

How reproducible:
always

Steps to Reproduce:
1. Install EAP7 by ZIP file extracting.
2. Install Hawkular Agent and configure it to Middleware Manager.
3. In CFME UI, for that MM, check that EAP7 server appears.
In that Server Details page you can see that server is immutable, as Power and Deployment menu items are hidden.
As shown in attachment.

Actual results:
EAP7 server running not in container but from ZIP is immutable.

Expected results:
It should not be immutable.

Additional info:
Happens in upstream MM and MiQ as well.

Comment 2 Hayk Hovsepyan 2017-04-20 08:19:21 UTC
Created attachment 1272884 [details]
server log

Server is not configured to be immutable, and in attached logs it does not say that server is immutable.

Comment 3 Heiko W. Rupp 2017-04-20 12:05:48 UTC
Hayk, is that Hawkular-services instance available for me to connect to it with HawkFX? I want to see if the EAP correctly set the flag.

What do you mean with "Happens in upstream MM and MiQ as well." ?

Comment 4 Heiko W. Rupp 2017-04-20 12:18:28 UTC
How did you install the agent in EAP? If it is the classic agent, can you please add standalone.xml? If it is the javaagent, can you please add its config file?

Comment 6 Heiko W. Rupp 2017-04-20 13:54:00 UTC
I see that the Hawkular-Services server reports this EAP's properties as

{
  "path": "/t;hawkular/f;7aec6d0c-6b92-4519-998f-306459db2210/r;EAP7~~/d;configuration",
  "name": "configuration",
  "identityHash": "80daf3d8dfeec51c514113e211698d9e88317",
  "contentHash": "99a47ff21bb958398d4ed6df550b53e7116ec0",
  "syncHash": "759f1444518d7855fae8827b8fd2c49ac6a727b5",
  "value": {
    "Immutable": "false",
    "Bound Address": "0.0.0.0",
    "Home Directory": "/home/hudson/jboss-eap7-standalone",
    "Node Name": "cfme-eap7-standalone",
    "Server State": "running",
    "Product Name": "JBoss EAP",
    "Hostname": "cfme-eap7-standalone.bc.jonqe.lab.eng.bos.redhat.com",
    "In Container": "false",
    "Name": "cfme-eap7-standalone",
    "Suspend State": "RUNNING",
    "Running Mode": "NORMAL",
    "Version": "7.0.4.GA",
    "UUID": "7aec6d0c-6b92-4519-998f-306459db2210"
  }
}

So the immutable flag is correctly set to false.

Comment 7 Cainã Costa 2017-04-20 15:47:25 UTC
https://github.com/ManageIQ/manageiq/pull/14822

This PR should fix the problem for the time being, however it's not the best solution, which would be to instantiate the correct class for the middleware providers, which is a core problem.

Comment 11 Cainã Costa 2017-05-04 16:40:51 UTC
This is merged already, is it still a bug? For fine++, this PR is going to be the final fix for this issue, and it is just waiting to be merged:

https://github.com/ManageIQ/manageiq/pull/14880

Comment 12 Hayk Hovsepyan 2017-05-05 08:27:25 UTC
This is fixed now and verified on CFME 5.8.0.13-rc2.20170502165848_0f98658.

Comment 13 Matt Mahoney 2017-05-08 12:26:28 UTC
*** Bug 1445798 has been marked as a duplicate of this bug. ***

Comment 14 Cainã Costa 2017-05-22 13:21:43 UTC

*** This bug has been marked as a duplicate of bug 1446387 ***

Comment 16 Hayk Hovsepyan 2017-10-10 08:41:08 UTC
Verified on 5.9.0.1.20171004215954_13427ce