[jboss-jira] [JBoss JIRA] (WFCORE-1377) WFLYCTL0201: Unknown attribute 'server-state' using HTTP management API
Martin Choma (JIRA)
issues at jboss.org
Tue Feb 16 04:09:00 EST 2016
[ https://issues.jboss.org/browse/WFCORE-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Choma moved JBEAP-3429 to WFCORE-1377:
---------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-1377 (was: JBEAP-3429)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Domain Management
(was: Domain Management)
Target Release: (was: 7.backlog.GA)
Affects Version/s: 2.1.0.CR1
(was: 7.0.0.ER5)
> WFLYCTL0201: Unknown attribute 'server-state' using HTTP management API
> -----------------------------------------------------------------------
>
> Key: WFCORE-1377
> URL: https://issues.jboss.org/browse/WFCORE-1377
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 2.1.0.CR1
> Reporter: Martin Choma
> Assignee: Brian Stansberry
>
> Unable to get server-state using http management API
> {noformat}
> [mchoma at localhost bin]$ curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"operation":"read-attribute", "address" : [[{ "host" : "master" },{ "server" : "server-one" }]], "name" : "server-state","json.pretty":1}' -u admin:admin
> HTTP/1.1 401 Unauthorized
> Connection: keep-alive
> WWW-Authenticate: Digest realm="ManagementRealm",domain="/management",nonce="sI2Bu4kJcGgNMTQ1NTYxMDE3OTU2MVc91LWa8HnWzIKZ5I8UIlo=",opaque="00000000000000000000000000000000",algorithm=MD5,qop="auth"
> Content-Length: 77
> Content-Type: text/html
> Date: Tue, 16 Feb 2016 08:09:39 GMT
> HTTP/1.1 500 Internal Server Error
> Connection: keep-alive
> Authentication-Info: nextnonce="sI2Bu4kJcGgNMTQ1NTYxMDE3OTU2MVc91LWa8HnWzIKZ5I8UIlo=",qop="auth",rspauth="8e575a86f8dae40426abd49bbc8f8b8a",cnonce="YmNiNmM4YjA0NmZlYjQ5MzAwMDAyNjIxMDAwODNhODE=",nc=00000001
> Content-Type: application/json; charset=utf-8
> Content-Length: 131
> Date: Tue, 16 Feb 2016 08:09:39 GMT
> {
> "outcome" : "failed",
> "failure-description" : "WFLYCTL0201: Unknown attribute 'server-state'",
> "rolled-back" : true
> {noformat}
> Running analogous CLI command works OK.
> {noformat}
> [domain at 127.0.0.1:9999 /] /host=slave/server=main-three:read-attribute(name=server-state)
> {
> "outcome" => "success",
> "result" => "running"
> }
> {noformat}
> Can't get server status neither with
> {noformat}
> curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"operation":"read-attribute", "address" : [[{ "host" : "master" },{ "server-config" : "server-one" }]], "name" : "status","json.pretty":1}' -u admin:admin
> ...
> "WFLYCTL0201: Unknown attribute 'status'"
> {noformat}
> Issue can be seen in EAP 6, as well.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list