Bug 1791379 - Show controller logs has occasional 404 error.
Summary: Show controller logs has occasional 404 error.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Migration Tooling
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.3.0
Assignee: Jeff Ortel
QA Contact: Xin jiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-15 16:56 UTC by Jeff Ortel
Modified: 2020-02-06 20:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-06 20:21:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:0440 0 None None None 2020-02-06 20:21:11 UTC

Description Jeff Ortel 2020-01-15 16:56:12 UTC
Description of problem:

The plan report provided by the /namespaces/<name>/plans/<plan>/pods endpoint occasionally contains an incorrect pod Name after the controller pod itself has been restarted. But instead, displays the previous pod name. As a result, the log URI is also incorrect. When this happens the UI gets a 404 when trying to display the controller logs.


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

4.2


How reproducible:

Random.  Timing based.


Steps to Reproduce:
1. Select a pla (detail) n in the UI.
2. Choose "Logs" in the kebob.
3. Choose "controller"

Actual results:

Reports a 404.


Expected results:

Shows the logs.


Additional info:

Comment 4 Sergio 2020-01-22 11:19:12 UTC
Verified in CAM 1.1 stage

Controller:
    image: registry.stage.redhat.io/rhcam-1-1/openshift-migration-controller-rhel8@sha256:ec015e65da93e800a25e522473793c277cd0d86436ab4637d73e2673a5f0083d
UI:
    image: registry.stage.redhat.io/rhcam-1-1/openshift-migration-ui-rhel8@sha256:ecd81e11af0a17bfdd4e6afce1bf60f422115ed3545ad2b0d055f0fded87e422

After deleting controller pod several times and accessing the controller logs before and after deletion, no 404 error was shown (unless controller pod does not exist at  all, which is expected).

Comment 6 errata-xmlrpc 2020-02-06 20:21:05 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, 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-2020:0440


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