Bug 2013687 - 401 authorization error loop is displayed in web console during log download
Summary: 401 authorization error loop is displayed in web console during log download
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: User Experience
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 2.2.0
Assignee: Fabien Dupont
QA Contact: Amos Mastbaum
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-13 14:17 UTC by Amos Mastbaum
Modified: 2021-12-09 19:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 19:20:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:5066 0 None None None 2021-12-09 19:21:15 UTC

Description Amos Mastbaum 2021-10-13 14:17:17 UTC
Description of problem:

The UI Goes to Load LooP and keeps reloading the same  must-gather (failed 401) requests

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 3 Mike Turley 2021-10-14 14:45:14 UTC
https://github.com/konveyor/forklift-ui/pull/804 fixes the loop when a 401 happens, but doesn't fix the 401.

Comment 4 Marek Aufart 2021-10-15 12:58:57 UTC
I'd suggest move this BZ to POST since the UI loop should be resolved in latest build with backport https://github.com/konveyor/forklift-ui/pull/805


The 401 errors for must-gather could fail QA on must-gather from UI RFE or be a new BZ just for must-gather fomr UI feature (and its backend).

Comment 5 mlehrer 2021-10-17 15:14:39 UTC
Just adding for reference the that I took a har dump of the UI looping, you can import the har via dev tools.
https://drive.google.com/file/d/1RHzETxfH1dimJBNzsAgqrLDc1O-S6gfW/view?usp=sharing

Hopefully the har dump wont be needed per Comment 4

Comment 6 Ilanit Stein 2021-10-18 10:11:09 UTC
Moving bug to ON_QA based on comment #4.
It can be verified on MTV-2.2.0-52.

Comment 7 Amos Mastbaum 2021-10-18 10:30:40 UTC
Verified 2.2.0-50+52 CNV 4.9.0-249

Comment 8 Maayan Hadasi 2021-10-18 10:38:34 UTC
New BZ has been opened for the 401 errors regarding must-gather
Bug 2015063 - 401 errors for must-gather from UI feature

Comment 11 errata-xmlrpc 2021-12-09 19:20:58 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


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