When a discovery is run the initial Management IP chosen for a node will be the IP that the node was discovered with.
Oftentimes these 'Discovery' IPs are not suitable as 'Management' IPs.
To resolve this you can nominate one or more management subnets. If a node has an IPs in one those subnets then that IP will be used as the node's Management IP.
To configure management subnets:
- Edit: /opt/wildfly/standalone/deployments/hgs.ear/lib/common.jar/runtime.properties
- Set the management subnets property to list management subnets (with each subnet separated by a comma) for example:
- discovery.management-subnets=10.0.1.0/24, 192.168.5.0/24
- Restart the service:
- sudo service wildfly restart