Bug 1173479

Summary: 4.13: Native Management Port/Host does not take into account port offset?
Product: [Other] RHQ Project Reporter: Stian Lund <stianlund+bugzilla>
Component: Configuration, Operations, Plugin Container, PluginsAssignee: 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.13   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1175664 (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: 1175664    
Attachments:
Description Flags
Port offset for all server on one host. none

Description Stian Lund 2014-12-12 08:56:36 UTC
Created attachment 967524 [details]
Port offset for all server on one host.

Description of problem:

When upgrading our 4.5.1 RHQ Server to 4.13, there are two new setting under Connection Settings for Jboss AS7:

Native management API host
Native management API port

I also notice that for most of the AS7 servers in inventory after upgrade, this port is set to 9999 for all server instances.

This is wrong, since we run many instances on the same host with port offset 100. So it should be 9999, 10099 and so on.

I tried uninventory of all AS7 on one host and import, and the result was that the Native Port was set correctly for the instances.

However having to do this for potentially hundreds of servers is not something I can easily do.

So the question is:
Is there a bug in discovery that would result it not taking offset into consideration when upgrading servers already in inventory?

Not sure when this connection settings property was introduced but it must have been after 4.5.1? Maybe even just the last releases?


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

RHQ 4.13 
AS7 Agent 4.13

How reproducible:

When upgrading servers this happens to most servers, but not every server.
When doing uninventory and import the servers seem to get the correct native management port.

Steps to Reproduce:
Upgrade servers from older version of RHQ. Might only affect very old (4.5.1) versions.

Actual results:

Management native port set to 9999 for all servers which is wrong according to offset.

Expected results:

Expect management native port to be set correctly.

Additional info:

Comment 1 Libor Zoubek 2014-12-15 16:00:58 UTC
Yes, there is a bug in resource upgrade code, which does not care about native host & port at all right now, so values you get in UI are defaults comming from plugin descriptor.

Comment 2 Libor Zoubek 2015-01-07 14:21:05 UTC
branch:  master
link:    https://github.com/rhq-project/rhq/commit/0832e0af3
time:    2015-01-07 15:17:21 +0100
commit:  0832e0af3505ff5ac07206884d4cdefadeda8267
author:  Libor Zoubek - lzoubek
message: Bug 1173479 - 4.13: Native Management Port/Host does not take into
         account port offset/

         Fixed AS7 resourceUpgrade code to always detect native
         management host/port in case resource is running and defaults
         are set