Bug 1206387 - apply-updates creates rhq-storage directory even if storage node is not installed causing rhqctl to fail install/start
Summary: apply-updates creates rhq-storage directory even if storage node is not insta...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Installer
Version: JON 3.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER01
: JON 3.3.2
Assignee: Simeon Pinder
QA Contact: Filip Brychta
URL:
Whiteboard:
Depends On:
Blocks: 1185375
TreeView+ depends on / blocked
 
Reported: 2015-03-27 00:06 UTC by Larry O'Leary
Modified: 2019-05-20 11:39 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-30 16:11:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1212407 0 unspecified CLOSED RejectedExecutionException during installation of JON server which has been previously patched 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2015:0920 0 normal SHIPPED_LIVE Moderate: Red Hat JBoss Operations Network 3.3.2 update 2015-04-30 20:09:30 UTC

Internal Links: 1212407

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


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