Bug 1078785
| Summary: | Enabling of metric schedules may not be reflected in monitoring tab | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Heiko W. Rupp <hrupp> |
| Component: | Core Server, Core UI, Monitoring | Assignee: | Jirka Kremser <jkremser> |
| Status: | CLOSED DUPLICATE | QA Contact: | Mike Foley <mfoley> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.10 | CC: | hrupp |
| Target Milestone: | --- | ||
| Target Release: | RHQ 4.11 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-04-15 11:12:45 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
I've already fixed this bug *** This bug has been marked as a duplicate of bug 1081554 *** |
I have a user with mostly view-only rights, but who is able to modify schedules. Now when I go to a resource with no enabled schedules, enable a schedule and then go back to the metrics display no charts do not show up for this user. The server log shows the below. Now when I reload the UI, the metrics show up. Looks like there are no definition ids passed to the query. Apparently the enabled definitions are not updated in the UI. 10:03:37,527 WARN [org.rhq.coregui.server.gwt.MeasurementDataGWTServiceImpl] (http-/0.0.0.0:7443-1) Sending exception to client: [1395309817527] : javax.ejb.EJBException: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected end of subtree [SELECT ms FROM org.rhq.core.domain.measurement.MeasurementSchedule ms WHERE ms.definition.id IN () AND ms.resource.id IN (:resourceIds)] at org.rhq.enterprise.server.measurement.MeasurementDataManagerLocal$$$view124.findLiveData(Unknown Source) [rhq-server.ja r:4.10.0] at org.rhq.coregui.server.gwt.MeasurementDataGWTServiceImpl.findLiveData(MeasurementDataGWTServiceImpl.java:85) [classes:] [..] Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected end of subtree [SEL ECT ms FROM org.rhq.core.domain.measurement.MeasurementSchedule ms WHERE ms.definition.id IN () AND ms.resource.id IN (:reso urceIds)] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1374) [hibernate-entitymanager-4.2.0 .CR1.jar:4.2.0.CR1] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1310) [hibernate-entitymanager-4.2.0 .CR1.jar:4.2.0.CR1] at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:273) [hibernate-entitymanager-4.2.0.CR1.jar:4.2.0.CR1] at org.rhq.enterprise.server.measurement.MeasurementDataManagerBean.findLiveData(MeasurementDataManagerBean.java:897) [rhq -server.jar:4.10.0] at org.rhq.enterprise.server.measurement.MeasurementDataManagerBean.findLiveData(MeasurementDataManagerBean.java:873) [rhq -server.jar:4.10.0]