Bug 1171720 - AS7 upgrade fails if productType is missing
Summary: AS7 upgrade fails if productType is missing
Keywords:
Status: ON_QA
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.13
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.13
Assignee: Thomas Heute
QA Contact:
URL: https://developer.jboss.org/thread/25...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-08 13:24 UTC by Michael Burman
Modified: 2022-03-31 04:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Michael Burman 2014-12-08 13:24:16 UTC
Description of problem: When upgrading the RHQ, we assume in the upgrade process that AS7 / EAP instances have productType defined in the pluginConfiguration. If none is found, the upgrade process dies to NullPointerException.


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


How reproducible: Always


Steps to Reproduce:
1.
2.
3.

Actual results: Upgrade fails and server is shown down.


Expected results: We should detect the missing productType like we do in the inventory process.


Additional info: Workaround is to reinventory the AS7/EAP instance in which case it'll work fine.

Comment 1 Stian Lund 2014-12-09 11:29:01 UTC
Workaround is also to set the "Supports Patching" property manually in RHQ for affected servers, for instance through groups. Then restart the plugin container for the Agent.

Comment 2 Libor Zoubek 2015-01-08 22:19:09 UTC
branch:  master
link:    https://github.com/rhq-project/rhq/commit/ba1627a00
time:    2015-01-08 23:14:23 +0100
commit:  ba1627a00ce8110087f95dc5c15764c3738770d8
author:  Libor Zoubek - lzoubek
message: Bug 1171720 - AS7 upgrade fails if productType is missing

Comment 3 Libor Zoubek 2015-01-10 13:03:25 UTC
Additional commit detecting productType during resource upgrade

branch:  master
link:    https://github.com/rhq-project/rhq/commit/7ab191033
time:    2015-01-10 14:02:11 +0100
commit:  7ab191033f120670bccbe3c573ed6a538d86f1a2
author:  Libor Zoubek - lzoubek
message: Bug 1171720 - AS7 upgrade fails if productType is missing

         Added code which also re-discoveres productType when upgrading
         resource's supportsPatching pluginConfig property in case it's
         null.

Comment 4 Libor Zoubek 2015-01-10 13:05:55 UTC
branch:  master
link:    https://github.com/rhq-project/rhq/commit/4eceea87b
time:    2015-01-10 14:05:12 +0100
commit:  4eceea87bce2fd6a7f96bb33579f467c2f620c39
author:  Libor Zoubek - lzoubek
message: Remove log message


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