[jboss-jira] [JBoss JIRA] (WFCORE-4441) Changes made via CLI in static-discovery are not reflected in host.xml
Brian Stansberry (Jira)
issues at jboss.org
Wed Apr 24 11:37:01 EDT 2019
Brian Stansberry created WFCORE-4441:
----------------------------------------
Summary: Changes made via CLI in static-discovery are not reflected in host.xml
Key: WFCORE-4441
URL: https://issues.jboss.org/browse/WFCORE-4441
Project: WildFly Core
Issue Type: Bug
Components: Management
Affects Versions: 8.0.0.Final, 9.0.0.Beta3
Reporter: Brian Stansberry
Assignee: Jeff Mesnil
The value from this operation is not persisted in the host xml file, nor is it reflected in a read-resource response:
/host=slave/core-service=discovery-options/static-discovery=primary:write-attribute(name=port,value=9999)
It also doesn't put the HC in reload-required state.
This works:
/host=slave/core-service=discovery-options:write-attribute(name=options,value=[{static-discovery={name=primary,protocol="${jboss.domain.master.protocol:remote+http}",host="${jboss.domain.master.address}",port=9999}}]
The /host=slave/core-service=discovery-options/static-discovery=* resources are meant to be a kind of alias for elements in that 'options' list to make it easier to manipulate the details. But that linkage has a bug. (Probably several.)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list