Wrong symlinks for "bak" directories cause logrotate failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Sebastian Kalinowski | ||
5.0.x |
Won't Fix
|
High
|
Fuel Python (Deprecated) | ||
5.1.x |
Won't Fix
|
High
|
Fuel Python (Deprecated) | ||
6.0.x |
Won't Fix
|
High
|
Fuel Python (Deprecated) |
Bug Description
From original bug https:/
When /var/log/remote contains "*.bak" directories, the logrotate may fail with "File exist" error and stop rotating all log files for all affected /var/log/
An example https:/
Related bug https:/
Björn Pettersson provided the root cause:
The duplicate symlinks should actually point at the .bak directory and
not where it used to point.
> lrwxrwxrwx 1 root root 29 Feb 2 13:02 /var/log/
> lrwxrwxrwx 1 root root 29 Feb 2 19:32 /var/log/
[root@fuel-juno remote]# ssh -q node-84 ifconfig | grep 172.31
inet addr:172.31.2.91 Bcast:172.31.3.255 Mask:255.255.252.0
The .77 symlink should point to this one:
> drwxr-xr-x 4 root root 4096 Feb 2 19:17 /var/log/
Changed in fuel: | |
assignee: | nobody → Fuel Library Team (fuel-library) |
milestone: | none → 6.1 |
importance: | Undecided → Medium |
tags: | added: to-be-covered-by-tests |
no longer affects: | fuel/6.1.x |
tags: |
added: feature-logging removed: logging |
no longer affects: | fuel/7.0.x |
tags: | added: tricky |
tags: | added: logrotate |
tags: | added: long-haul-testing |
no longer affects: | fuel/6.1.x |
Raised to high as this issue with symlinks affects the cloud operations in a long term