Instead of limiting a number of lines we fetch from container Insights operator should estimate how many bytes would be written (based on available log budget and number of unhealthy containers). This would ensure large log lines don't affect bundle size
Fixed and verified in 4.6.0-0.nightly-2020-06-30-020342 1. Degrade operator so the logs will be collected (https://bugzilla.redhat.com/show_bug.cgi?id=1838973#c3) 2. Enter some pod oc rsh prometheus-k8s-0 3. Write there something like $ yes "Some text" | head -n 100000 > /proc/1/fd/1 4. Verify the log (in that case prometheus_current.log) doesn't exceed 100 lines or https://github.com/openshift/insights-operator/pull/128/files#diff-397c7d21d587358413d334b87528a7cbR215
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 4.6 GA Images), 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:4196