Bug 648784
Summary: | JON241: "java.lang.IllegalStateException" on custom Linux kernel (caused by platform Resource version returned by platform discovery being more than 50 chars in length) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Charles Crouch <ccrouch> | ||||
Component: | No Component | Assignee: | Ian Springer <ian.springer> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Corey Welton <cwelton> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.0.0 | CC: | ccrouch, hbrock, ian.springer, skondkar, smarlow | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 634306 | Environment: | |||||
Last Closed: | 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: | 616081 | ||||||
Attachments: |
|
Description
Charles Crouch
2010-11-02 05:31:55 UTC
Test the "make PC more forgiving" part in JON2.4.1 Ian, Can you please provide the steps to verify the bug? Sunil, I hope Ian can provide better steps than I can. I had installed a custom linux kernel that had a long name (over 50 characters). Last week, I installed Fedora 14 and no longer have the custom kernel. If it was up to me, the steps for testing this, would involve hacking the fixed Java class to use a hacked kernel name that is over 50 characters long. That is probably easier than installing a custom kernel which would be much more hacking. :) Regards, Scott I'm attaching a hacked platform plugin jar whose platform discovery component will return a 100+ character version, specifically: "xxxxxxxxx0xxxxxxxxx1xxxxxxxxx2xxxxxxxxx3xxxxxxxxx4xxxxxxxxx5xxxxxxxxx6xxxxxxxxx7xxxxxxxxx8xxxxxxxxx9This should get truncated." When testing this on the release-3.0.0 branch this should get truncated to 50 characters (i.e. "xxxxxxxxx0xxxxxxxxx1xxxxxxxxx2xxxxxxxxx3xxxxxxxxx4") by the PC and a warning logged. When testing it on the master branch, it should get truncated to 100 characters (i.e. "xxxxxxxxx0xxxxxxxxx1xxxxxxxxx2xxxxxxxxx3xxxxxxxxx4xxxxxxxxx5xxxxxxxxx6xxxxxxxxx7xxxxxxxxx8xxxxxxxxx9") by the PC and a warning logged. Created attachment 471944 [details]
a modified platform plugin to allow testing of the fix for this issue
QA Verified for JON 241. The kernel name gets truncated to 50 characters and throws an appropriate warning in the agent log: 2011-01-05 16:34:54,471 WARN [ResourceDiscoveryComponent.invoker.daemon-1] (rhq.core.pluginapi.inventory.DiscoveredResourceDetails)- Plugin error: Resource version [xxxxxxxxx0xxxxxxxxx1xxxxxxxxx2xxxxxxxxx3xxxxxxxxx4xxxxxxxxx5xxxxxxxxx6xxxxxxxxx7xxxxxxxxx8xxxxxxxxx9This should get truncated.] specified by [ResourceType[id=0, category=Platform, name=Linux, plugin=Platforms]] discovery component is longer than the maximum length (50 - truncating it to 50 characters... Bookkeeping - closing bug - fixed in recent release. Bookkeeping - closing bug - fixed in recent release. Bookkeeping - closing bug - fixed in recent release. |