Change the hostnames of nodes after deployment?

asked 2015-10-09 20:19:31 -0600

5-jason-h gravatar image

Can I change the hostnames of "node1.domain.tld" to "" without breaking services?

It looks like if I do, ill have to change /etc/hosts on every node. But will I break anything?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-10 21:21:15 -0600

vblando gravatar image

If you're using IP on your configurations, then it will not break. You need to edit /etc/openstack-dashboard/local_settings though and modify this line

 ALLOWED_HOSTS = ['', '*', 'localhost', ]

You also need to modify your http config in /etc/httpd/conf.d

don't forget to backup the files before editing :)

edit flag offensive delete link more


I don't have a local_settings file in that directory.

I have found a horizon site apache config file under the sites-enabled directory. Im thinking that if I edit that and then edit the /etc/hosts to match my domain, it should work?

5-jason-h gravatar image5-jason-h ( 2015-10-10 23:37:12 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-10-09 20:19:31 -0600

Seen: 41 times

Last updated: Oct 10 '15