Reassigning IP Addresses
Changing existing IP addresses for operational CI systems is not a typical exercise and has not been tested by Circonus, so if you run into any issues during this work, please notify Support (firstname.lastname@example.org).
In the event that you need to reassign the IP for your Circonus install, update the site.json, rerun hooper (the Circonus Inside management tool) for each zone, and then restart each service. Because change IPs is not commonly done, after running hooper and rebooting each zone it is prudent to verify that all the nodes are working. These procedures are outlined step-by-step below:
- Stop the broker zone.
- Shutdown that host.
- Shutdown all other hosts (to power off).
- Set up the network.
- Start the host with the broker zone.
- Repair the IP address settings in both zones.
- Edit the the active topology files for the data_storage node to update each IP Address. Copy these changes to all other nodes.
- Start each other host and repair the IP address settings.
- The Chef data bag (
site.json) requires one attribute update. The “
web-db” service role has an attribute called “
allowed_subnets”. Change the value of this attribute to match the new network address and CIDR mask.
- If you are changing the subnet masks on the interfaces for the Circonus nodes, no further changes to the
site.jsonshould be necessary. If you are changing the actual IP addresses as well as the netmasks, then there are additional changes needed in
- “ip_address” - Should be set on all entries in
- “domain” - Should be set to the new address of the web-frontend node
- “stream_service_name” on
web-stream- Should be set to the same IP as the
- Once the
allowed_subnetsattribute has been updated and the
site.jsonhas been distributed to all the non-broker nodes, run Hooper on each node, in a specific order, based on the service role:
web-db- This is the only service role affected by the size of the subnet, but the best practice is to update all nodes if when any one node needs to be updated.
- Any remaining nodes in no particular order.
If your installation has multiple roles on each non-broker node, review the
site.jsonand make note of which node has each role to find the correct ordering.
Run Hooper on each node using the following command, where “
<nodename>” is the short name as defined in
site.json in the “
Reassigned IP Address Troubleshooting
Potential issues may arise when reassigning IP Addresses.
The system needs to know the broker’s new IP address in order to connect to it. Use the following procedures:
- Once the
web-frontendsystem is back online, navigate to https://10.124.147.154/admin/broker
- Log in using a super-admin account.
- Use the Search button to pull a list of all brokers.
- From this screen, you can change the IP for the broker(s) in question.
Finally, if historical graphs do not appear after reassigning IP addresses, this could be the result of an issue with Snowth. The Snowth topology is initially set by Hooper but then never touched once it exists, to protect the cluster.
The topology file is an input to a setup process that produces a file in
/opt/circonus/etc/snowth-topo/, which is named for the SHA256 digest of the topology file. It is this file that
snowthd actually uses.
The topology digest is constructed only from the uuid and weight attributes of each node, so changing only the IPs won’t result in a new digest. For completeness, you should change both
/opt/circonus/etc/snowth-topo/<digest> on each node. Do this while the service is stopped. If necessary, you can do a rolling update, but it safest to perform the procedure while the whole cluster shut down.
It is very important that you set each new IP on the correct node - the node uuid in the topology file corresponds to the
"node_id"attribute in the
machinfosection of the