KYPO Networking ansible stage fails when using debian 10 image
If debian-10
image is set for user-defined router
in KYPO CRP, the networking ansible stage always fails with a timeout.
The task/role which is failing attempts to use sudo
on the router. The router freezes (which time-outs the ansible task) and eventually fails with sudo: unable to resolve host
.
This is because the hostname of the machine (which I believe is set up correctly as the openstack prefix
+ name of the machine
), differs from what is stated in the /etc/hosts
file for IP 127.0.1.1
(debian). I tested this on the non-MUNI-KYPO images debian-9-x86_64
and debian-10-x86_64
, which both work as routers and on these, the /etc/hosts
is set up correctly. Upon fixing the hosts file in QEMU version of this image, the issue is resolved.
This may actually be an issue with all custom munikypo images, which would depend on whether /etc/hosts
is updated on them or not.