[
https://issues.redhat.com/browse/WFWIP-356?page=com.atlassian.jira.plugin...
]
Jeff Mesnil commented on WFWIP-356:
-----------------------------------
This is not a bug.
check, check-live and check-ready are runtime operations and are not present in admin-only
mode
{code}
[standalone@localhost:9990 /]
/subsystem=microprofile-health-smallrye:read-operation-description(name=check)
{
"outcome" => "success",
"result" => {
"operation-name" => "check",
"description" => "Check both the liveness and readiness of the
application server and its deployments",
"request-properties" => {},
"reply-properties" => {
"type" => OBJECT,
"value-type" => OBJECT
},
"read-only" => false,
"runtime-only" => true
}
}
{code}
When you create an embedded server, it runs in admin-only mode. that's why the
operations are not available.
{code}
./bin/jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or
'help' for the list of supported commands.
[disconnected /] embed-server
[standalone@embedded /] :read-attribute(name=running-mode)
{
"outcome" => "success",
"result" => "ADMIN_ONLY"
}
{code}
Operations :check (-live, -ready) not present in embedded and
admin-only mode
-----------------------------------------------------------------------------
Key: WFWIP-356
URL:
https://issues.redhat.com/browse/WFWIP-356
Project: WildFly WIP
Issue Type: Bug
Components: MP Health
Reporter: Martin Choma
Assignee: Jeff Mesnil
Priority: Major
microprofile-health-smallrye subsystem operations {{:check}}, {{check-live}},
{{check-ready}} not present in embedded or admin-only mode. Is this expected or we should
move this jira to JBEAP bug?
Admin only mode
{code}
:reload(admin-only = true)
/subsystem=microprofile-health-smallrye:check
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0031: No operation named
'check' exists at address [(\"subsystem\" =>
\"microprofile-health-smallrye\")]",
"rolled-back" => true
}
{code}
Embedded mode
{code}
./jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or
'help' for the list of supported commands.
[disconnected /] embed-server
[standalone@embedded /] /subsystem=microprofile-health-smallrye:check-ready
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0031: No operation named
'check-ready' exists at address [(\"subsystem\" =>
\"microprofile-health-smallrye\")]",
"rolled-back" => true
}
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)