Bug 1175664
| Summary: | Native Management Port/Host does not take into account port offset | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Libor Zoubek <lzoubek> | ||||
| Component: | Plugin -- JBoss EAP 6 | Assignee: | Thomas Heute <theute> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Sunil Kondkar <skondkar> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | JON 3.3.0 | CC: | fbrychta, hrupp, loleary, mfoley, miburman, rhatlapa, skondkar, spinder, theute | ||||
| Target Milestone: | post-GA | Keywords: | Triaged | ||||
| Target Release: | One-off release | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 1173479 | Environment: | |||||
| Last Closed: | 2016-01-28 13:30:03 UTC | 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: | 1173479 | ||||||
| Bug Blocks: | 1181217 | ||||||
| Attachments: |
|
||||||
|
Description
Libor Zoubek
2014-12-18 10:14:59 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 Cherry-picked to release/jon3.3.x:
commit 78a4c7beab8697dfad7ab931b0c50f6244e6087e
Author: Libor Zoubek <lzoubek>
Date: Wed Jan 7 15:12:22 2015 +0100
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
(cherry picked from commit 0832e0af3505ff5ac07206884d4cdefadeda8267)
This is an JBoss EAP plug-in fix. Moving to a future JBoss EAP plug-in pack update target. I added one more commit branch: master link: https://github.com/rhq-project/rhq/commit/4c3f7829e time: 2015-06-05 10:47:03 +0200 commit: 4c3f7829e1d9ce8fc745f8e8d468f44589798e3e author: Libor Zoubek - lzoubek message: Bug 1173479 - 4.13: Native Management Port/Host does not take into ac One more commit to prevent resource upgrade when did not detect any change in native host/port settings. The original issue was, that we introduced nativeHost and nativePort pluginConfig properties and we did not provide resource-upgrade code, to discover those properties. As a consequence, after plugin upgrade (to version wich introduced new propertes (3.3.0)) older AS7 resources were left with default values. Steps to verify (upgrade not required): 1. import EAP6 in default configuration 2. verify resource pluginConfiguration has native host:port set to 127.0.0.1:9999 3. restart your EAP6 with -Djboss.management.native.port=19999 4. restart agent 5. verify resource pluginConfiguration has native host:port set to 127.0.01:19999 Step 4. is required to run our resource-upgrade code, which in case it detects our plugin settings are default (which may or may not mean that those values were previously discovered), it discovers native host/port again. Latest commit 4c3f7829e improves this logic a bit and only marks resource as upgraded in case we detect a change. Steps to verify (upgrade required): 1. have EAP6 with native post shifted 2. import it prior JON 3.3.0 (no native host/port pluginConfiguration properties should exist) 3. upgrade 4. verify native port is discovered correctly. branch: release/jon3.3.x
commit 88e5b648bb1d6780b64cc57fc3853e53e9cdc885
Author: Libor Zoubek <lzoubek>
AuthorDate: Fri Jun 5 10:47:03 2015 +0200
Commit: Simeon Pinder <spinder>
CommitDate: Tue Jun 9 11:52:49 2015 -0400
Bug 1173479 - 4.13: Native Management Port/Host does not take into ac
Moving to MODIFIED.
Installed 3.3.0.GA Update 02 with EAP6 and applied Application Platform Plugin Pack Update-01 Restarting EAP6 with -Djboss.management.native.port=19999 and restarting the agent display the Native Host value as 127.0.0.1 and the Native Port value as 19999 correctly in EAP6->Inventory->Connection Settings. With upgrade steps verified that after upgrade and applying Application Platform Plugin Pack Update-01 , the Native port value displayed is 19999. Screenshot is attached. Created attachment 1039995 [details]
Screenshot
|