Bug 1940440 - noobaa migration pod is deleted on failure and logs are not available for inspection
Summary: noobaa migration pod is deleted on failure and logs are not available for ins...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: Multi-Cloud Object Gateway
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: OCS 4.7.0
Assignee: Nimrod Becker
QA Contact: Elad
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-18 12:20 UTC by Danny
Modified: 2021-05-19 09:21 UTC (History)
4 users (show)

Fixed In Version: v4.7.0-318.ci
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-19 09:20:45 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github noobaa noobaa-operator pull 584 0 None open setting upgrade job restartPolicy to never 2021-03-18 12:26:22 UTC
Github noobaa noobaa-operator pull 586 0 None open Backport to 5.7: setting upgrade job restartPolicy to never 2021-03-22 08:24:57 UTC
Red Hat Product Errata RHSA-2021:2041 0 None None None 2021-05-19 09:21:13 UTC

Description Danny 2021-03-18 12:20:26 UTC
Description of problem (please be detailed as possible and provide log
snippets):

when noobaa migration job fails (after all retries failed according to backoff limit), the job pod is deleted and there are no logs available to investigate the failure


Version of all relevant components (if applicable):
OCS 4.7

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
no

Is there any workaround available to the best of your knowledge?
no

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
3

Can this issue reproducible?
only by using a noobaa-core image that was changed to always fail migration

Can this issue reproduce from the UI?
no

If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1.
2.
3.


Actual results:
* the migration job pod is deleted after failure

Expected results:
* when the job fails the pod should be left for investigation 

Additional info:

Comment 2 Danny 2021-03-18 12:28:01 UTC
changed the restartPolicy in the migration job to "Never". this will keep failed pods and not delete them

Comment 7 Elad 2021-03-25 22:54:33 UTC
The migration pod is kept in case of a failure in the migrate job. Verified with v4.7.0-318.ci

See https://bugzilla.redhat.com/show_bug.cgi?id=1938557#c8

Comment 9 errata-xmlrpc 2021-05-19 09:20:45 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 (Moderate: Red Hat OpenShift Container Storage 4.7.0 security, bug fix, and enhancement 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-2021:2041


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