Ask Your Question
0

Why does the install guide say to remove 127.0.0.1 from /etc/hosts

asked 2015-05-15 13:13:26 -0500

pcarver gravatar image

Why does http://docs.openstack.org/kilo/install-guide/install/apt/content/ch_basic_environment.html#basics-neutron-networking-controller-node (http://docs.openstack.org/kilo/instal...) say "You must remove or comment the line beginning with 127.0.1.1."? This seems odd. What breaks if /etc/hosts contains a localhost line?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-05-17 15:43:41 -0500

annegentle gravatar image

Hi, the reason for that is to ensure the names can resolve. The patch that added that warning indicates the rest of the guide does verification of connectivity using name resolution -- controller, network, compute1.

edit flag offensive delete link more

Comments

Ah, I see. I read this automatically as 127.0.0.1 because that's typically the only 127 IP you ever see. I assumed that the instruction was to remove the standard localhost entry that is always in /etc/hosts. I didn't catch the fact that this is in reference to an erroneous 127.0.1.1 entry.

pcarver gravatar imagepcarver ( 2015-05-28 15:37:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-05-15 13:13:26 -0500

Seen: 279 times

Last updated: May 17 '15