Bug 1872726 - [3.11] /var/log/containers log symlinks are missing for some pods
Summary: [3.11] /var/log/containers log symlinks are missing for some pods
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 3.11.z
Assignee: Peter Hunt
QA Contact: MinLi
URL:
Whiteboard:
Depends On: 1823406 1878795
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-26 13:56 UTC by Peter Hunt
Modified: 2024-03-25 16:21 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1823406
Environment:
Last Closed: 2020-11-18 14:09:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift origin pull 25447 0 None closed Bug 1872726: [3.11] Upstream: 89160: Remove potentially unhealthy symlink only for dead containers 2021-02-09 02:59:18 UTC
Red Hat Product Errata RHBA-2020:5107 0 None None None 2020-11-18 14:10:44 UTC

Comment 6 Oscar Casal Sanchez 2020-10-20 16:44:40 UTC
Hello! 

Do we have any advances on this? I can see that the PR is approved, but not more movements on it. Could we know anything?


Regards,
Oscar

Comment 7 Peter Hunt 2020-10-23 21:03:22 UTC
something's gone wrong with the unit tests and crio tests. I haven't had time to investigate, and may need to call reinforcements to help. Thanks for your patience

Comment 14 MinLi 2020-11-16 09:38:06 UTC
verified in version: 
oc v3.11.317
kubernetes v1.11.0+d4cacc0

run the following script and found no cases:
#!/bin/bash 
docker ps -q | while read line;
do
  if [ `find /var/log/containers -name *$line* | wc -l` = "0" ]
  then
    name=`docker inspect  $line  | grep "Name"  | head -n 1 | cut -d ":" -f 2 | head -c 6`
    if [ $name != '"/k8s' ]
    then
      docker inspect  $line | grep "Name" | head -n 1 
    fi
  fi  
done

Comment 16 errata-xmlrpc 2020-11-18 14:09:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 3.11.318 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:5107

Comment 20 kfyfe 2022-08-18 16:34:42 UTC
Adding my comments from Case 03292252

Also to add more clarification I am the OCP TAM for this customer. The key to this case is they are looking for guidance in developing a custom solution to re-create the sym links as they are worried that their existing custom deployments could possibly break with an upgrade. So what they are looking for is a way, if possible to have a custom script (much like the one provided here that can be modified to re-create those links and possibly be incorporated into a cron job to run at whatever times they deem are safe to run)

Thanks!

Kenan Fyfe


Note You need to log in before you can comment on or make changes to this bug.