Bug 1443881 - Middleware - Standalone EAP7 Server is shown as Immutable
Summary: Middleware - Standalone EAP7 Server is shown as Immutable
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: unspecified
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: GA
: 5.9.0
Assignee: Cainã Costa
QA Contact: Hayk Hovsepyan
URL:
Whiteboard:
: 1445798 (view as bug list)
Depends On:
Blocks: 1446387
TreeView+ depends on / blocked
 
Reported: 2017-04-20 08:11 UTC by Hayk Hovsepyan
Modified: 2018-03-30 17:21 UTC (History)
12 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1446387 (view as bug list)
Environment:
Last Closed: 2018-03-06 15:49:52 UTC
Category: ---
Cloudforms Team: Middleware
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
server details page (50.93 KB, image/png)
2017-04-20 08:11 UTC, Hayk Hovsepyan
no flags Details
server log (50.57 KB, text/plain)
2017-04-20 08:19 UTC, Hayk Hovsepyan
no flags Details

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


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