Bug 2099561

Summary: Prometheus returns HTTP 500 error on /favicon.ico
Product: OpenShift Container Platform Reporter: Simon Pasquier <spasquie>
Component: MonitoringAssignee: Simon Pasquier <spasquie>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: low    
Version: 4.11CC: amuller, anpicker
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 11:18:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Simon Pasquier 2022-06-21 09:00:44 UTC
Description of problem:
The Prometheus HTTP server returns HTTP 500 when requesting /favicon.ico

Version-Release number of selected component (if applicable):
4.11

How reproducible:
Always

Steps to Reproduce:
1. oc port-forward prometheus-k8s-0 9090:localhost:9090
2.curl -v http://localhost:9090/favicon.ico

Actual results:

curl output:

< HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Tue, 21 Jun 2022 08:59:24 GMT
< Content-Length: 18
< 
seeker can't seek

Expected results:

HTTP 200 OK

Additional info:
Fixed upstream in https://github.com/prometheus/prometheus/pull/10888 and v2.36.2.

Comment 3 Junqi Zhao 2022-06-22 02:03:48 UTC
tested with 4.11.0-0.nightly-2022-06-21-151125, followed the steps in comment 0, response code is 200
# curl -v http://localhost:9090/favicon.ico
* About to connect() to localhost port 9090 (#0)
*   Trying ::1...
* Connected to localhost (::1) port 9090 (#0)
> GET /favicon.ico HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:9090
> Accept: */*
> 
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< Content-Length: 15086
< Content-Type: image/x-icon
< Date: Wed, 22 Jun 2022 02:01:27 GMT
.....

Comment 7 errata-xmlrpc 2022-08-10 11:18:49 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security 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/RHSA-2022:5069