| Summary: | RHQ Enterprise Remote CLI 3.0.1.GA throwing SecurityException: org.rhq.core.server.MeasurementConverter's signer information does not match signer information | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Harri Savolainen <hsavolai> |
| Component: | CLI | Assignee: | RHQ Project Maintainer <rhq-maint> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 3.0.1 | CC: | hrupp |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-07 19:27:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 745494 | ||
| Bug Blocks: | |||
|
Description
Harri Savolainen
2011-11-14 17:57:01 UTC
Marking this urgent to indicate it should be checked in JON3.0.0CR1 documenting the behavior in JON CR3. the CLI API has apparently changed, and the script is not valid. however ... i am not getting any "signing" issues. i did some other simple stuff with the CLI ... documented below ... no signing issues. this is not an isue in JON 3 ... and the signing issue has been addressed in JON 2.4 ... so i am closing.
rhqadmin@localhost:7080$ var criteria = new ResourceCriteria();
rhqadmin@localhost:7080$ criteria.addFilterResourceTypeName("RHQ Agent");
rhqadmin@localhost:7080$ var resources = ResourceManager.findResourcesByCriteria(criteria);
rhqadmin@localhost:7080$ var resourcesArray = resources.toArray();
rhqadmin@localhost:7080$ var parent = ProxyFactory.getResource(resourcesArray[0].parentResource.id);
TypeError: Cannot read property "parentResource" from undefined (<Unknown source>#1)
var parent = ProxyFactory.getResource(resourcesArray[0].parentResource.id);
^
rhqadmin@localhost:7080$ println(parent.userLoad.displayValue);
TypeError: Cannot read property "userLoad" from undefined (<Unknown source>#1)
println(parent.userLoad.displayValue);
^
rhqadmin@localhost:7080$
-----------
some simple stuff I did with the CLI ...
rhqadmin@localhost:7080$ println(resources);
PageList[]
rhqadmin@localhost:7080$ println(resources.toArray());
[Ljava.lang.Object;@17a323c0
rhqadmin@localhost:7080$
additionally executed this sample CLI script ... which successfully ran without signing errors
var criteria = new ResourceCriteria();
criteria.addFilterResourceTypeName('JBossAS Server');
var asServers = ResourceManager.findResourcesByCriteria(criteria);
println("this is a test");
println("asServers = " + asServers.size());
if (asServers != null && asServers.size() > 0) {
for (var i = 0; i < asServers.size(); i++) {
var resource = asServers.get(i);
println("resource:" + resource.getName());
if (resource.getName() != null && resource.getName().contains(" RHQ Server")) {
var av = AvailabilityManager.getCurrentAvailabilityForResource(subject, resource.getId());
println("RHQ Server: " + resource.getName() + " [" + resource.getId()
+ "] has a current status from AvailabilityManager of '" + (av != null ?
av.getAvailabilityType() : "null") + "'!");
println("RHQ Server: " + resource.getName() + " [" + resource.getId()
+ "] has a current status from Resource of '" +
(resource.getCurrentAvailability() != null ?
resource.getCurrentAvailability().getAvailabilityType() : "null") + "'!");
}
}
}
re-verified CR4 changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE |