Bug ID 1591585: Sshd, httpd, rsync crashes with bunch of whitespaces in /etc/hosts file

Last Modified: Jan 30, 2025

Affected Product(s):
F5OS F5OS-C(all modules)

Known Affected Versions:
F5OS-C 1.5.1, F5OS-C 1.6.2

Fixed In:
F5OS-C 1.8.0

Opened: Jun 04, 2024

Severity: 3-Major

Symptoms

When VELOS system controllers fail over, OMD rewrites /etc/hosts on each controller to move around where the 'etcd3.chassis.local' name is assigned. When this occurs an extra space character is added to the controller-1.chassis.local and controller-2.chassis.local lines. If you add enough whitespace to /etc/hosts (uncertain how much, but megabytes will do it), it starts causing daemons to crash in getnameinfo() calls as they try to resolve the local system IP to a hostname.

Impact

Sshd, httpd, rsync crashes when the whitespace in /etc/hosts becomes excessive.

Conditions

VELOS System controllers fails over. Extra space characters are added after controller-X.chassis.local.

Workaround

Run below command in bash to remove extra space in etc/hosts file. sed -i 's/[[:space:]]\+$//' /etc/hosts

Fix Information

Fixed C-1.8.0

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips