Bug 610859
Summary: | Cannot delete "Event Logs" from a JBossAS Server nor Add New "Event Logs" on a JBossAS5 Server. | |||
---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | John Sefler <jsefler> | |
Component: | Events | Assignee: | Lukas Krejci <lkrejci> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sudhir D <sdharane> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 3.0.0 | CC: | cwelton, fdrabek, jshaughn, mazz, rtimaniy, sdharane, skondkar | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | 4.0.0 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 659155 (view as bug list) | Environment: | ||
Last Closed: | 2013-09-01 19:21:19 UTC | Type: | --- | |
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: | 562434 |
Description
John Sefler
2010-07-02 15:39:15 UTC
this is a very bad bug - as it causes inventory sync to blow us (since it does a deepCopy before sending down config and if you added event sources before, this will happen). up'ing priority/severity. we need to fix lines 367 and 429 of the jboss-as-5 plugin's class: ApplicationServerdiscoveryComponent: PropertyMap serverLogEventSource = new PropertyMap("serverLog"); that's using the wrong map name - it must match the descriptor - which is "logEventSource". The workaround is fairly simple. If you see this error, then execute this SQL to rename the bad map properties and the error condition will go away: update rhq_config_property set name = 'logEventSource' where name = 'serverLog' and dtype = 'map' You can log into your database with your favorite SQL client and do this - or, you can log into the RHQ GUI as user "rhqadmin" and invoke that SQL via the "http://localhost:7080/admin/test/sql.jsp" page. A fix will be forthcoming in the jboss-as-5 plugin so this doesn't happen in the future. fix: f99b214e185bab099b59590fe03ee7e04bd95693 Fixed the bad name literal. Did not see other instances of this problem in the other plugins, Verified this on rhq-server-4.0.0-SNAPSHOT build# 415. I was able to successfully delete. Marking this bug as verified. I think I concluded soon. Well, once I click on the delete icon, it ask for confirmation and I click ok. The log file get removed. However, if I refresh or move to another tab and come back, the log file comes back. There is no exception thrown though. Moving back to ON_DEV. I have cherry-picked the fix to release-3.0 branch. commit 6e6182e76428025d6232d4a46ae917dd89b24aec in release-3.0 branch Ok, this is a tricky one. Clicking OK on the connection properties of RHQ Server after deleting the log entry from the event source list doesn't save the configuration, which is not possible to know in any other way than by realizing that there are still the OK and CANCEL buttons instead of "EDIT..." and "HISTORY..." buttons. The reason for the configuration not being saved is a mere validation failure which is not visible because the property in question is in the "Advanced" group of the properties which is collapsed by default in the UI (and doesn't auto-expand if there is a validation error in it). That said, the validation error doesn't happen until an entry is deleted from any list in the given configuration. The validation error happens for integer properties that are unset but is more generic. Any unset property is set to contain empty string after a delete from some property list in the same configuration. This is of course quite severe bug in the configuration component. So there actually are 2 bugs in here, none of which directly relates to events subsystem as such. Both of them stem from the configuration component and thus should express themselves in any configuration editor in the whole of UI. This is a known bug 535056. commit 7e86d4a1c98005e40f864ac5684952e6c1e01d00 Author: Lukas Krejci <lkrejci> Date: Mon Dec 6 15:06:04 2010 +0100 BZ 610859 - Deleting an entry from a property list doesn't confuse the unset properties anymore. Note that this bug only applies to RHQ3. It was caused by a bug in the configuration editor UI component, which we don't use anymore in RHQ4's GWT gui. Removing blocker against jon241 version of this bug Tested on build#167 (Version: 4.1.0-SNAPSHOT Build Number: 5ed2f29) While creating an event log in the Inventory >Connection Settings tab of RHQ Server (JBoss As server), got the IndexOutOfBoundsException. I filed a separate bug#717921 for this. Marking the bug as ON_DEV This issue was kind of forgotten about. Bug 717921 has been verified already, so putting this back to ON_QA for re-testing. Remember that this is only RHQ3 related, so it should be tested with JON 2.4.x. Bulk closing of BZs that have no target version set, but which are ON_QA for more than a year and thus are in production for a long time. |