Bug 1323325 - rhqctl status can report storage node as ?running or ?down if locale does not support extended character sets
Summary: rhqctl status can report storage node as ?running or ?down if locale does not...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Core Server
Version: JON 3.3.4
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: DR01
: JON 3.3.6
Assignee: Josejulio Martínez
QA Contact: Sunil Kondkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-01 21:28 UTC by Larry O'Leary
Modified: 2019-10-10 11:45 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-27 15:33:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2217131 0 None None None 2016-04-01 21:28:33 UTC
Red Hat Product Errata RHSA-2016:1519 0 normal SHIPPED_LIVE Critical: Red Hat JBoss Operations Network 3.3.6 update 2016-08-26 00:44:36 UTC

Description Larry O'Leary 2016-04-01 21:28:04 UTC
Description of problem:
Status printed by rhqctl for the storage node can be confusing if the user's terminal does not support a character set which includes the characters ✔ (U+2714 HEAVY CHECK MARK) and ✘ (U+2718 HEAVY BALLOT X). This is because the status is printed as ?running or ?down in the event the extended characters are not supported.

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

How reproducible:
Always

Steps to Reproduce:
1. Execute rhqctl status command using a locale that does not support extended characters:

       LC_CTYPE=C rhqctl status --storage

Actual results:
RHQ Storage Node               (no pid file) is ?down

Expected results:
RHQ Storage Node               (no pid file) is ✘down

Additional info:
This issue does not affect the agent or server because their status decorator is printed by the shell script rather then by Java code:

RHQ Storage Node               (pid 24597  ) is ?running
RHQ Server                     (pid 433    ) is ✔running
JBossAS Java VM child process  (pid 564    ) is ✔running
RHQ Agent                      (pid 1169   ) is ✔running

Comment 1 Josejulio Martínez 2016-04-21 15:21:22 UTC
commit 1054ad0e115bf88a7faba44a6749b58b55565119
Author: Josejulio Martínez <jmartine>
Date:   Wed Apr 20 19:07:30 2016 -0500

    Bug 1323325 - rhqctl status can report storage node as ?running or ?down if locale does not support extended character sets

Comment 3 Simeon Pinder 2016-06-18 01:11:44 UTC
Moving to ON_QA as available to test with JON 3.3.6 DR01 brew build:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=499890

Comment 4 Sunil Kondkar 2016-06-30 14:01:59 UTC
Verified on version : 3.3.0.GA Update 06 Build Number :	675641d:2fcd5b7

Verified on a solaris 10 vm (POSIX locale). Verified that before applying CP6, rhqctl status for storage was displaying below:

RHQ Storage Node               (no pid file) is ?down  
---------------------------------
RHQ Storage Node               (pid 1247   ) is ?running

After applying CP6, it shows:

RHQ Storage Node               (no pid file) is ✘down
------------------------------------------------------
RHQ Storage Node               (pid 19528  ) is ✔running

Comment 5 errata-xmlrpc 2016-07-27 15:33:31 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-2016-1519.html


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