Openstack change IP address of compute node, controller will not change

So, as it turns out, I had copied the nova.conf also from ccloud1 to the others.

I edited it, but forgot the one line my_ip=10.131.39.40, so the controller node was always picking them up as 10.131.39.40 instead of their IP address. Interestingly, it is a quick fix:

On controller:

openstack compute service list
openstack compute service delete ID

Then mod the /etc/nova/nova.conf file on the compute node and then do:

systemctl restart nova-compute
systemctl restart neutron-linuxbridge-agent

Back on the controller, do:

su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

Verify:

openstack hypervisor list

Done.