Bug 2099561 - Prometheus returns HTTP 500 error on /favicon.ico
Summary: Prometheus returns HTTP 500 error on /favicon.ico
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.11
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.11.0
Assignee: Simon Pasquier
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-21 09:00 UTC by Simon Pasquier
Modified: 2022-08-10 11:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:18:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift prometheus pull 136 0 None open Bug 2099561: Bump openshift/prometheus to v2.36.2 2022-06-21 09:01:58 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:18:58 UTC

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


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