Bug 570839
Summary: | Provide ability to make the name of imported tomcat instances unique | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Lami Akagwu <lakagwu> | ||||||||
Component: | Plugins | Assignee: | RHQ Project Maintainer <rhq-maint> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sunil Kondkar <skondkar> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | low | ||||||||||
Version: | unspecified | CC: | cwelton, lkrejci, rtimaniy | ||||||||
Target Milestone: | --- | Keywords: | FutureFeature, Improvement | ||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Enhancement | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2013-09-02 07:15:41 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: | 577848, 625146 | ||||||||||
Attachments: |
|
Description
Lami Akagwu
2010-03-05 15:27:01 UTC
Created attachment 398076 [details]
enable remote update of a resource
Incidentally, progress is being made on the resource naming and presentation already.
In the next major version, the UI will be updated to present any kind of resource list (be it a search result or for example group membership list) in such a way that possible duplicate names will be resolved by specifying the parent path up to a point where it differs.
So in your reproduction steps, you won't see:
Tomcat(8080)
Tomcat(8080)
.. ..
Tomcat(8080)
but rather:
Tomcat(8080) Platform1
Tomcat(8080) Platform2
.. ..
Tomcat(8080) PlatformN
As for the implementation options, I think the option 2. is a very useful extension. I am including a patch to add an ability for the CLI to update the resource remotely.
For the sake of data consistency only the properties editable in the "General Properties" section in the UI are editable remotely using CLI (i.e. only the name, description and location of a resource).
Someone looking for resource name changing ability https://fedorahosted.org/pipermail/rhq-users/2010-July/000093.html Lets go ahead and apply this patch, *and* add tests that its works and has the appropriate security on it. This functionality seems to have been added while addressing a separate issue by commit 38aa7252752eb905b84127662e0149f6d470ba7b. Tested on RHQ-Master build #500 Steps: 1) Installed RHQ server and 2 agents 2) Both agent has Tomcat 5.5 running on port 8899 3) Import all resource in RHQ server Observation: Tomcat server name shows as given below: Tomcat (8899) Platform-1 Tomcat (8899) Platform-2 Tomcat server name can change from 'Summary' -> 'Overview' tab. Created attachment 455409 [details]
screenshot
Hi Lukas, Require steps to test using CLI and what should be expected. Are tomcat servers discover with unique name or it will be fine if user can rename using UI or CLI? Steps for CLI: 1) start up the cli using $CLI_HOME/bin/rhq-cli.sh and do the following steps on in the CLI interface. 2) login rhqadmin rhqadmin localhost 7080 3) var r = ResourceManager.getResource(10001) 4) r.name = "updated" 5) ResourceManager.updateResource(r) 6) var r2 = ResourceManager.getResource(10001) 7) pretty.print(r2) The result of the last statement should print the details of the resource with id 10001 which should have its name set to "updated". Verified on rhq-server-4.0.0-SNAPSHOT build#725. Started the CLI and followed the steps as below: rhqadmin.193.104:7080$ var r = ResourceManager.getResource(11794) rhqadmin.193.104:7080$ r.name = "updated" updated rhqadmin.193.104:7080$ ResourceManager.updateResource(r) Resource: id: 11794 name: updated version: 6.0.26.0 currentAvailability: UP resourceType: Tomcat Server rhqadmin.193.104:7080$ var r2 = ResourceManager.getResource(11794) rhqadmin.193.104:7080$ pretty.print(r2) Resource: id: 11794 name: updated version: 6.0.26.0 currentAvailability: UP resourceType: Tomcat Server This replaced the existing tomcat resource name to 'updated' as shown in attached screenshot. Created attachment 463703 [details]
Screenshot_cli
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago. |