Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1206387

Summary: apply-updates creates rhq-storage directory even if storage node is not installed causing rhqctl to fail install/start
Product: [JBoss] JBoss Operations Network Reporter: Larry O'Leary <loleary>
Component: InstallerAssignee: Simeon Pinder <spinder>
Status: CLOSED ERRATA QA Contact: Filip Brychta <fbrychta>
Severity: high Docs Contact:
Priority: unspecified    
Version: JON 3.3.1CC: fbrychta
Target Milestone: ER01   
Target Release: JON 3.3.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-30 16:11:11 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: 1185375    

Description Larry O'Leary 2015-03-27 00:06:46 UTC
Description of problem:
If the apply-updates command is used against a JBoss ON server that has not yet been installed or for one that is standalone--without a storage node--the rhqctl install command will fail and rhqctl start will report startup errors for rhq-storage.

Version-Release number of selected component (if applicable):
3.3.1

How reproducible:
Always

Steps to Reproduce:
1. Extract jon-server-3.3.0.GA.zip to /opt/jboss/on
2. Apply update-01:

       /tmp/jon-server-3.3.0.GA-update-01/apply-updates.sh /opt/jboss/on/jon-server-3.3.0.GA

3. Run the server installer:

       /opt/jboss/on/jon-server-3.3.0.GA/bin/rhqctl install

Actual results:
Install is not performed and the following is displayed:

    21:06:17,366 INFO  [org.jboss.modules] JBoss Modules version 1.3.3.Final-redhat-1
    21:06:17,558 INFO  [org.rhq.server.control.command.Install] The RHQ storage node is already installed in [/opt/jboss/on/jon-server-3.3.0.GA/rhq-storage]. It will not be installed.
    You must set the CASSANDRA_CONF and CLASSPATH vars
    21:06:17,568 INFO  [org.rhq.server.control.command.Install] Pausing to ensure RHQ Storage is initialized prior to RHQ Server installation.


Expected results:
Install is performed as normal with no "You must set the CASSANDRA_CONF and CLASSPATH vars" error.

Additional info:
This is because 3.3.1 contains a new <RHQ_SERVER_HOME>/rhq-storage/bin/cassandra file. This file causes the rhq-storage directory to be created making the rhqctl command think that an rhq-stroage node is installed. 

The apply-updates command needs to only place files in rhq-storage in the even that the directory already exists. If the directory does not exist, any new/backup/deletion of files with the path ./rhq-storage should be skipped.

Comment 3 Filip Brychta 2015-04-16 12:54:33 UTC
Verified on ER01
One issue found captured in bz1212407

Comment 5 errata-xmlrpc 2015-04-30 16:11:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0920.html