cablelabs / snaps-openstack

OpenStack installer for SNAPS
Apache License 2.0
9 stars 10 forks source link

duplicate /etc/hosts entries #84

Open bo-quan opened 6 years ago

bo-quan commented 6 years ago

Duplicate entries are created in /etc/hosts file, or the cleanup option did not seem to clean the entries in /etc/hosts file. For example, the following is seen in /etc/hosts file on one control node:

10.197.101.25 COMPUTE252279 10.197.101.26 COMPUTE262953 10.197.101.22 CONTROLLER222142 10.197.101.24 COMPUTE242804 10.197.101.23 COMPUTE232413 10.197.101.25 COMPUTE252228 10.197.101.24 COMPUTE242437 10.197.101.22 CONTROLLER222807 10.197.101.26 COMPUTE262965 10.197.101.23 COMPUTE232859 10.197.101.24 COMPUTE242587 10.197.101.26 COMPUTE262706 10.197.101.22 CONTROLLER222178 10.197.101.23 COMPUTE232536 10.197.101.25 COMPUTE252777 10.197.101.25 COMPUTE252142 10.197.101.22 CONTROLLER222713 10.197.101.23 COMPUTE232278 10.197.101.26 COMPUTE262309 10.197.101.24 COMPUTE242924 10.197.101.26 COMPUTE262857 10.197.101.22 CONTROLLER222347 10.197.101.24 COMPUTE242402 10.197.101.23 COMPUTE232912 10.197.101.25 COMPUTE252923

medberry commented 6 years ago

Completely agree--this part is NOT idempotent. The playbook is using additive lines instead of actively managing etc/hosts.