Don't assume /etc/hosts exists
Bug #1982837 reported by
Mark Goddard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ansible-collection-kolla |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The baremetal role adds entries to /etc/hosts. If the file does not exist, it will fail:
TASK [baremetal : Ensure localhost in /etc/hosts] *******
fatal: [compute2]: FAILED! => {"changed": false, "msg": "Destination /etc/hosts does not exist !", "rc": 257}
Though surprising, this is possible, and we should not assume that /etc/hosts exists.
Changed in ansible-collection-kolla: | |
importance: | Undecided → Medium |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/c/openstack /ansible- collection- kolla/+ /851027
Review: https:/