Bug 831369 - [as7] Warnings When Loading Resource Configuration
Summary: [as7] Warnings When Loading Resource Configuration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.5.0
Assignee: Stefan Negrea
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: as7-plugin 835699
TreeView+ depends on / blocked
 
Reported: 2012-06-12 21:20 UTC by Stefan Negrea
Modified: 2013-09-01 10:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 835699 (view as bug list)
Environment:
Last Closed: 2013-09-01 10:18:18 UTC
Embargoed:


Attachments (Terms of Use)

Description Stefan Negrea 2012-06-12 21:20:37 UTC
Description of problem:

Warnings are logged by the agent when loading resource configuration for all the AS7 plugin resources. Here is an example:

12:14:09,940 WARN  [ASConnection] Received 500 (Internal Server Error) response to Operation{operation='read-attribute', address=Address{path: subsystem=transactions,log-store=log-store}, additionalProperties={name=name}} - response body was [{"outcome" : "failed", "failure-description" : "JBAS014792: Unknown attribute name", "rolled-back" : true, "response-headers" : {"process-state" : "reload-required"}}].

The error is harmless. The error is due executing an extra operation to discover the server state (normal, reload required, restart required). The operation executed is :read-attribute with "name" as the name of the attribute. This operation will fail for any sub-resource that does not have "name" in the definition. While the operation fails, it still returns the correct server state. There are no side effects other than log entries.


How reproducible:
Every time

Steps to Reproduce:
1. Discover and import an AS7 server.
2. Select a resource that has configuration available and to the configuration tab.
3. Look in the agent logs and notice the above error.
  
Actual results:
Warning added to the agent log

Expected results:
No warnings in the agent log


Additional info:
The solution, instead of using :read-attribute operation to detect server state, use :whoami. This operation is present on all resources, does not require any attributes, and does return the server state.

Comment 1 Stefan Negrea 2012-06-12 21:24:48 UTC
Updated the plugin to use :whoami to retrieve server state.

master branch commit:
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=9f4bbacfa3212f412db718311ad7c2bd0343cc2f

Comment 2 Heiko W. Rupp 2013-09-01 10:18:18 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.


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