Bug 1427439

Summary: Adding infinispan cache needs to be done in batch with EAP 7.1
Product: [JBoss] JBoss Operations Network Reporter: Radim Hatlapatka <rhatlapa>
Component: Plugin -- JBoss EAP 7Assignee: Ruben Vargas Palma <rvargasp>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: JON 3.3.8CC: fbrychta, jmartine, loleary, miburman, rvargasp, spinder
Target Milestone: ER02Keywords: Triaged
Target Release: One-off release   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-13 15:18:16 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: 1327633, 1411825    

Description Radim Hatlapatka 2017-02-28 08:50:38 UTC
Description of problem:
With EAP 7.1 there is improved validation when creating infinispan cache. There needs to be created transport in cache container in batch mode before adding cache. For details see https://issues.jboss.org/browse/JBEAP-8667

As such the plugin needs to be updated to allow its definition. It should e.g define transport when adding cache container.

Version-Release number of selected component (if applicable): EAP 7.1.0.DR11 + JON 3.3.8 and http://jon01.mw.lab.eng.bos.redhat.com:8042/dist/release/jon/plugins/eap/3.3/Update-05/DR01/


How reproducible: always


Steps to Reproduce:
1. import EAP using one of ha profiles
2. add infinispan cache container
3. try to add cache in that container

Actual results:
fails with 
WFLYCTL0080: Failed services={org.wildfly.clustering.infinispan.cache-configuration.cachecontainer.defaultcache=org.jboss.msc.service.StartException in service org.wildfly.clustering.infinispan.cache-configuration.cachecontainer.defaultcache: Failed to start service
    Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000343: Must have a transport set in the global configuration in order to define a clustered cache}, WFLYCTL0412: Required services that are not installed:=[org.wildfly.clustering.infinispan.cache-configuration.cachecontainer.defaultcache]}, rolled-back=true expected:<true> but was:<false>

Expected results:
Adding cache would be possible without issues => transport will be allowed to be added

Additional info:
https://issues.jboss.org/browse/JBEAP-8667 will only improve the failure message to more properly indicate what is wrong. Handling needs to be updated on JON EAP 7 plugin side.

Comment 1 Josejulio Martínez 2017-03-16 15:32:49 UTC
commit 1eb7290414f446b28ab433a90e5b6c632e16d89c
Merge: 6232588 31f8666
Author: Michael Burman <yak>
Date:   Thu Mar 16 10:57:22 2017 +0200

    Merge pull request #298 from rubenvp8510/BZ-1427439
    
    Bug 1427439 Adding a default transport to cache container.

commit 31f8666c666a3fbddb691bd303240b0e37a53224
Author: Ruben Vargas <ruben.vp8510>
Date:   Wed Mar 8 14:52:09 2017 -0600

    Bug 1427439 Adding a default transport to cache container.

Comment 5 Simeon Pinder 2017-04-28 10:06:43 UTC
Moving to ON_QA for verification.

Where:
http://download.eng.bos.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/126/maven/org/jboss/on/jon-plugins-patch/3.3.0.GA/jon-plugins-patch-3.3.0.GA.zip

* NOTE: Unlike previous releases where the test binary was attached, this artifact is hosted in brew[1], where the jon-plugins-patch-3.3.0.GA.zip file IS the ER02 build of JON 3.3 EAP plugin pack update 04 and as such will be renamed to jon-plugin-pack-eap-3.3.0.GA-update-05.zip at publication time(unless replaced by a newer build).

[1]https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=554191

Comment 6 Radim Hatlapatka 2017-05-04 08:59:47 UTC
Verified with EAP 7.1.0.DR17 and jon-plugin-pack-eap-3.3.0.GA-update-05.zip [1]

md5sums
7e2ce4282ebf28ae677df8d209fe5ee0  jon-plugins-patch-3.3.0.GA.zip
6bce7b902de385e590f65c4593454539 rhq-jboss-as-7-plugin-4.12.0.JON330GA.jar