Check 127.0.1.1 in /etc/hosts on Ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
High
|
zhubingbing |
Bug Description
Ubuntu/Debian adds the following line in /etc/hosts.
127.0.1.1 <hostname>
https:/
Kolla does not like this line in /etc/hosts and "kolla-ansible deploy" throws the error
"Hostname has to resolve to IP address of api_interface"
$ kolla-ansible deploy
TASK [rabbitmq : fail] *******
failed: [localhost] => (item={u'stdout': u'127.0.1.1 STREAM kolla-ubuntu\
PLAY RECAP *******
localhost : ok=75 changed=23 unreachable=0 failed=1
Command failed ansible-playbook -i /usr/local/
Hence, add a precheck to check if the line "127.0.1.1 <hostname>" does not exist in /etc/hosts on Ubuntu. If it exists, the precheck must fail and the user must remove this line in /etc/hosts and deploy kolla.
"kolla-ansible deploy" passes on Ubuntu if "127.0.1.1 <hostname>" does not exist in /etc/hosts.
Changed in kolla: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Vikram Hosakote (vhosakot) |
milestone: | none → newton-1 |
Changed in kolla: | |
milestone: | newton-1 → newton-2 |
Changed in kolla: | |
milestone: | newton-2 → newton-3 |
Changed in kolla: | |
milestone: | newton-3 → newton-rc1 |
Changed in kolla: | |
milestone: | newton-rc1 → newton-rc2 |
Changed in kolla: | |
assignee: | Vikram Hosakote (vhosakot) → zhubingbing (zhubingbing) |
Changed in kolla: | |
status: | Invalid → In Progress |
importance: | Low → High |
Fixed by https:/ /review. openstack. org/#/c/ 322384/.