[JBoss JIRA] (WFLY-11933) Error when accessing metrics with RBAC enabled
by Darran Lofthouse (Jira)
[ https://issues.jboss.org/browse/WFLY-11933?page=com.atlassian.jira.plugin... ]
Darran Lofthouse commented on WFLY-11933:
-----------------------------------------
[~cweiler] What user is currently using the console to view the metrics?
As we don't include default users in the distribution I assume this is a user which you have added, after the definition of this user have you assigned any roles?
> Error when accessing metrics with RBAC enabled
> ----------------------------------------------
>
> Key: WFLY-11933
> URL: https://issues.jboss.org/browse/WFLY-11933
> Project: WildFly
> Issue Type: Bug
> Components: Management, MP Metrics
> Affects Versions: 16.0.0.Final
> Reporter: Claudio Weiler
> Assignee: Jeff Mesnil
> Priority: Critical
>
> When RBAC is enabled for management in Wildfly 16, metrics throws exception:
> java.lang.IllegalStateException: WFLYMETRICS0003: Unable to read attribute XAForgetAverageTime on [
> ("subsystem" => "datasources"),
> ("data-source" => "ExampleDS"),
> ("statistics" => "pool")
> ]: "WFLYCTL0216: Management resource '[
> (\"subsystem\" => \"datasources\"),
> (\"data-source\" => \"ExampleDS\"),
> (\"statistics\" => \"pool\")
> ]' not found".
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months
[JBoss JIRA] (WFLY-11933) Error when accessing metrics with RBAC enabled
by Darran Lofthouse (Jira)
[ https://issues.jboss.org/browse/WFLY-11933?page=com.atlassian.jira.plugin... ]
Darran Lofthouse updated WFLY-11933:
------------------------------------
Priority: Major (was: Critical)
> Error when accessing metrics with RBAC enabled
> ----------------------------------------------
>
> Key: WFLY-11933
> URL: https://issues.jboss.org/browse/WFLY-11933
> Project: WildFly
> Issue Type: Bug
> Components: Management, MP Metrics
> Affects Versions: 16.0.0.Final
> Reporter: Claudio Weiler
> Assignee: Jeff Mesnil
> Priority: Major
>
> When RBAC is enabled for management in Wildfly 16, metrics throws exception:
> java.lang.IllegalStateException: WFLYMETRICS0003: Unable to read attribute XAForgetAverageTime on [
> ("subsystem" => "datasources"),
> ("data-source" => "ExampleDS"),
> ("statistics" => "pool")
> ]: "WFLYCTL0216: Management resource '[
> (\"subsystem\" => \"datasources\"),
> (\"data-source\" => \"ExampleDS\"),
> (\"statistics\" => \"pool\")
> ]' not found".
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months
[JBoss JIRA] (WFLY-11933) Error when accessing metrics with RBAC enabled
by Michal Petrov (Jira)
[ https://issues.jboss.org/browse/WFLY-11933?page=com.atlassian.jira.plugin... ]
Michal Petrov commented on WFLY-11933:
--------------------------------------
[~brian.stansberry], what is the expected behavior here? Since the default user likewise cannot access localhost:9990/management I assume we want to show an error message. However from the failure description available to the metric collector it's not clear that the user is not authorized to access the metrics. Secondly is there a scenario where we want the metrics page to throw an error like that? I.e. an exception resulting in HTTP 500 instead of showing the exception message on the page.
> Error when accessing metrics with RBAC enabled
> ----------------------------------------------
>
> Key: WFLY-11933
> URL: https://issues.jboss.org/browse/WFLY-11933
> Project: WildFly
> Issue Type: Bug
> Components: Management, MP Metrics
> Affects Versions: 16.0.0.Final
> Reporter: Claudio Weiler
> Assignee: Jeff Mesnil
> Priority: Critical
>
> When RBAC is enabled for management in Wildfly 16, metrics throws exception:
> java.lang.IllegalStateException: WFLYMETRICS0003: Unable to read attribute XAForgetAverageTime on [
> ("subsystem" => "datasources"),
> ("data-source" => "ExampleDS"),
> ("statistics" => "pool")
> ]: "WFLYCTL0216: Management resource '[
> (\"subsystem\" => \"datasources\"),
> (\"data-source\" => \"ExampleDS\"),
> (\"statistics\" => \"pool\")
> ]' not found".
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months