Bug 1259554 - Changing the Storage Node JMX port does not update the JMX connection URL
Summary: Changing the Storage Node JMX port does not update the JMX connection URL
Keywords:
Status: ON_QA
Alias: None
Product: RHQ Project
Classification: Other
Component: Core Server, Storage Node
Version: 4.13
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: RHQ 4.14
Assignee: Thomas Heute
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1259555
TreeView+ depends on / blocked
 
Reported: 2015-09-03 02:58 UTC by John Sanda
Modified: 2022-03-31 04:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1259555 (view as bug list)
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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


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