[jboss-jira] [JBoss JIRA] (WFCORE-3897) Host starts with server assigned to non-existent server group

Chao Wang (JIRA) issues at jboss.org
Thu May 31 04:52:00 EDT 2018


    [ https://issues.jboss.org/browse/WFCORE-3897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13584852#comment-13584852 ] 

Chao Wang commented on WFCORE-3897:
-----------------------------------

Note down Brian's reply in email and analysis:

{quote}It's a bug that the host starts at all with that misconfiguration. If it's started --admin-only it should boot, to give an admin a chance to correct the misconfiguration. But with this one it boots even not in admin-only. Can you file a JIRA?{quote}

The HC only check required server group existence in server start. In this case, servers are configured to auto-start="false", no error indicates any misconfiguration.

{quote}You can invoke a management write op without restarting in --admin-only, but it has to be one that corrects all issues.  If you have several invalid attributes (e.g. two server-config resources with invalid group attributes) then you need to correct them all in one op, using a batch.{quote}

In admin only mode, use CLI to run example like:
{code:xml}
[domain at localhost:9990 /] batch 
[domain at localhost:9990 / #] /server-group=main-server-group:add(profile=full,socket-binding-group=full-sockets)
[domain at localhost:9990 / #] /system-property=foo:add(value=bar)
[domain at localhost:9990 / #] run-batch
{code}

{quote}It's not a bug that other write ops fail. The system validates its config as part of any write op and if it finds an inconsistent config it will fail and roll back the op.{quote}

> Host starts with server assigned to non-existent server group
> -------------------------------------------------------------
>
>                 Key: WFCORE-3897
>                 URL: https://issues.jboss.org/browse/WFCORE-3897
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 5.0.0.CR1
>            Reporter: Chao Wang
>            Assignee: Chao Wang
>
> Configuring a host with:
>  <server name="server-one" group="main-server-group" auto-start="false"/>
>         <server name="server-two" group="main-server-group" auto-start="false">
>             <socket-bindings port-offset="150"/>
>         </server>
> And no server-goup with that name in the domain.xml, the host starts and all management operations fail.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list