Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2015063

Summary: Web console displays "401 Authorization Error" loop during log download
Product: Migration Toolkit for Virtualization Reporter: Maayan Hadasi <mguetta>
Component: Must-GatherAssignee: Marek Aufart <maufart>
Status: CLOSED ERRATA QA Contact: Maayan Hadasi <mguetta>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: medium    
Version: 2.2.0CC: istein, maufart
Target Milestone: ---   
Target Release: 2.2.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: 2021-12-09 19:20:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
mtv-2.2.0-57-forklift-must-gather-api none

Description Maayan Hadasi 2021-10-18 10:33:06 UTC
This bug was initially created as a copy of Bug #2013687

Description of problem:
This  must-gather log seems to be consistent with the UI Network Monitor (the failed must-gather requests) 

From the must-gather log:
[GIN] 2021/10/13 - 14:09:07 | 401 |   15.167394ms |    10.131.1.167 | GET      "/must-gather"
2021/10/13 14:09:09 Unauthorized
2021/10/13 14:09:09 Unauthorized Authorization check - token auth failed.
[GIN] 2021/10/13 - 14:09:09 | 401 |   20.693058ms |    10.131.1.167 | GET      "/must-gather"
[GIN] 2021/10/13 - 14:09:10 | 401 |   17.686284ms |    10.131.1.167 | GET      "/must-gather"
2021/10/13 14:09:10 Unauthorized
2021/10/13 14:09:10 Unauthorized Authorization check - token auth failed.
2021/10/13 14:09:12 Unauthorized
2021/10/13 14:09:12 Unauthorized Authorization check - token auth failed.
[GIN] 2021/10/13 - 14:09:12 | 401 |   24.687227ms |    10.131.1.167 | GET      "/must-gather"
2021/10/13 14:09:14 Unauthorized
2021/10/13 14:09:14 Unauthorized Authorization check - token auth failed.
[GIN] 2021/10/13 - 14:09:14 | 401 |   23.228849ms |    10.131.1.167 | GET      "/must-gather"
2021/10/13 14:09:15 Unauthorized
2021/10/13 14:09:15 Unauthorized Authorization check - token auth failed.
[GIN] 2021/10/13 - 14:09:15 | 401 |   21.072311ms |    10.131.1.167 | GET      "/must-gather"
2021/10/13 14:09:17 Unauthorized
2021/10/13 14:09:17 Unauthorized Authorization check - token auth failed.
[GIN] 2021/10/13 - 14:09:17 | 401 |  152.653259ms |    10.131.1.167 | GET      "/must-gather"
2021/10/13 14:09:19 Unauthorized
2021/10/13 14:09:19 Unauthorized Authorization check - token auth failed.
[GIN] 2021/10/13 - 14:09:19 | 401 |   66.424585ms |    10.131.1.167 | GET      "/must-gather"
2021/10/13 14:09:20 Unauthorized
2021/10/13 14:09:20 Unauthorized Authorization check - token auth failed.
[GIN] 2021/10/13 - 14:09:20 | 401 |   17.992378ms |    10.131.1.167 | GET      "/must-gather"
2021/10/13 14:09:22 Unauthorized
2021/10/13 14:09:22 Unauthorized Authorization check - token auth failed.
[GIN] 2021/10/13 - 14:09:22 | 401 |   25.850551ms |    10.131.1.167 | GET      "/must-gather"
2021/10/13 14:09:23 Unauthorized
2021/10/13 14:09:23 Unauthorized Authorization check - token auth failed.
[GIN] 2021/10/13 - 14:09:23 | 401 |  122.439346ms |    10.131.1.167 | GET      "/must-gather"
2021/10/13 14:09:25 Unauthorized
2021/10/13 14:09:25 Unauthorized Authorization check - token auth failed.



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


How reproducible:
100% (not sure what triggers it)


Steps to Reproduce:
1. deploy a fresh MTV operator and wait for a while
2.
3.

Actual results:



Expected results:


Additional info:

Comment 1 Marek Aufart 2021-10-19 12:18:52 UTC
Since the issue appears when the forklift-must-gather-api service pod is running for a longer time, I wasn't able reliable check if it is really fixed on my dev environment, but the code change should be reasonable and should fix this issue.

2.2 backport PR was just merged https://github.com/konveyor/forklift-must-gather-api/pull/15

Comment 2 Ilanit Stein 2021-10-20 06:08:46 UTC
fixed in 2.2.0-57 / iib:126435

Comment 3 Maayan Hadasi 2021-10-20 14:58:45 UTC
Created attachment 1835176 [details]
mtv-2.2.0-57-forklift-must-gather-api

The issue is reproducible with MTV 2.2.0-57
Attached is must-gather-api pod's log

Comment 4 Maayan Hadasi 2021-11-04 13:47:35 UTC
Looks like the bug was fixed. It was not seen using the recent MTV builds
(currently using MTV 2.2.0-72 / iib:131251)

Moving to VERIFIED

Comment 7 errata-xmlrpc 2021-12-09 19:20:59 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 (MTV 2.2.0 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/RHEA-2021:5066