Bug 1304338

Summary: Patching status is not detected correctly from EAP7
Product: [JBoss] JBoss Operations Network Reporter: Michael Burman <miburman>
Component: Plugin -- JBoss EAP 7Assignee: Simeon Pinder <spinder>
Status: CLOSED CURRENTRELEASE QA Contact: Jeeva Kandasamy <jkandasa>
Severity: high Docs Contact:
Priority: high    
Version: JON 3.3.5CC: fbrychta, jkandasa, loleary, mmahoney
Target Milestone: DR01Keywords: Triaged
Target Release: One-off release   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-06 18:56:40 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:    
Bug Blocks: 1314853    
Attachments:
Description Flags
EAP6
none
EAP7
none
EAP7 none

Description Michael Burman 2016-02-03 10:57:56 UTC
Description of problem: The output generated by the EAP7 DMR differs when it comes to patching support, and instead of returning correct JSON like the EAP6:

 {
    "outcome" : "success",
    "result" : {
        "cumulative-patch-id" : "base",
        "patches" : [],
        "version" : "6.4.0.GA",
        "addon" : null,
        "layer" : {"base" : {
            "cumulative-patch-id" : "base",
            "patches" : []
        }}
    }
}

We only get the following output:

Version:             7.0.0.GA 
Cumulative patch ID: base     
One-off patches:     none

I have no idea if this is intended change or not.


Version-Release number of selected component (if applicable): JON 3.3.5 / EAP7 ER04


How reproducible: Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Michael Burman 2016-02-12 07:30:23 UTC
The output with --json-output (which can't be used with EAP6) is a bit different to the old one.

[standalone@localhost:9990 /] patch info --json-output
{
    "outcome" : "success",
    "result" : {
        "cumulative-patch-id" : "base",
        "patches" : [],
        "version" : "7.0.0.GA",
        "addon" : null,
        "layer" : {"base" : {
            "cumulative-patch-id" : "base",
            "patches" : []
        }},
        "patch-stream" : {"JBoss EAP" : {
            "cumulative-patch-id" : "base",
            "patches" : [],
            "version" : "7.0.0.GA",
            "addon" : null,
            "layer" : {"base" : {
                "cumulative-patch-id" : "base",
                "patches" : []
            }}
        }}
    }
}
[standalone@localhost:9990 /]

Comment 2 Michael Burman 2016-02-12 11:24:09 UTC
Fixed in the master (does not add support for patch-stream part):

commit 35c9504dd73e9b56c4cbcf10d2d5101678b35d3a
Author: Michael Burman <miburman>
Date:   Fri Feb 12 13:23:03 2016 +0200

    [BZ 1304338] Use --json-output in patch info when dealing with EAP7 server

Comment 3 Simeon Pinder 2016-02-19 15:35:23 UTC
Available for test in the following build:
http://jon01.mw.lab.eng.bos.redhat.com:8042/dist/release/jon/plugins/eap/3.3/Update-03/DR01/

Comment 4 Michael Burman 2016-03-03 15:52:00 UTC
Previous commit is superseded by the master commit:

commit b57684bf616bad1444735ceced9f764b99318d72
Author: Michael Burman <miburman>
Date:   Thu Mar 3 17:21:56 2016 +0200

    [BZ 1314385] Initial implementation of wfly-10 plugin (copy of jboss-as-7 plugin)

Comment 5 Matt Mahoney 2016-03-03 18:58:49 UTC
Created attachment 1132896 [details]
EAP6

Comment 6 Matt Mahoney 2016-03-03 18:59:52 UTC
Created attachment 1132897 [details]
EAP7

Comment 10 Jeeva Kandasamy 2016-03-23 20:26:39 UTC
Created attachment 1139746 [details]
EAP7

EAP 7 with Application Platform Plug-in Pack Update-03 DR01