Bug 1259554

Summary: Changing the Storage Node JMX port does not update the JMX connection URL
Product: [Other] RHQ Project Reporter: John Sanda <jsanda>
Component: Core Server, Storage NodeAssignee: Thomas Heute <theute>
Status: ON_QA --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.13CC: hrupp, theute
Target Milestone: ---   
Target Release: RHQ 4.14   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1259555 (view as bug list) Environment:
Last Closed: 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: 1259555    

Description John Sanda 2015-09-03 02:58:02 UTC
Description of problem:
The Storage Node administration exposes the JMX port in both the admin UI and in the CLI. This is the port on which the Storage Node listens for JMX requests. Most management of the Storage Node is done via JMX. If you change the JMX port in the admin UI for example, the underlying connection URL does not get updated. The Storage Node is reported down, and management/monitoring of the Storage Node is broken. This can be fixed by going to the Storage Node resource in the inventory UI, then go to the connection settings, and then update the Manager URL property with the new port. This will fix the JMX connection problem, but the Jmx Port property in the connection settings will still show the original port.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 John Sanda 2015-09-03 03:14:36 UTC
I left out a key detail in the description. The jmx_port property in cassandra-jvm.properties does get updated and the storage node gets restarted so that the port change takes effect. The agent can no longer connect to the storage node via JMX, and it is reported down.

Comment 2 Libor Zoubek 2015-09-03 11:17:57 UTC
jmx_port from cassandra-jvm.properties always shows up on command line. So I think it is not relevant.

I am going to fix resource upgrade code within StorageNodeDiscoveryComponent

Comment 3 Libor Zoubek 2015-09-03 12:17:38 UTC
branch:  master
link:    https://github.com/rhq-project/rhq/commit/021df29a5
time:    2015-09-03 14:14:27 +0200
commit:  021df29a527b6c3e334abe305005038915883314
author:  Libor Zoubek - lzoubek
message: Bug 1259554 - Changing the Storage Node JMX port does not update the JMX 
         connection URL
         Fix upgrade facet impl. of StorageNodeDiscoveryComponent. We're
         now able to detect JMX port change at agent/pc startup time