Bug 2057633
Summary: | oc rsync reports misleading error when container is not found | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Martin Bukatovic <mbukatov> |
Component: | oc | Assignee: | Filip Krepinsky <fkrepins> |
oc sub component: | oc | QA Contact: | zhou ying <yinzhou> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | aos-bugs, mfojtik, rpalathi |
Version: | 4.10 | ||
Target Milestone: | --- | ||
Target Release: | 4.11.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
additional validations/errors were added to oc rsync when targeted container is not running
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-08-10 10:50:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Martin Bukatovic
2022-02-23 18:44:20 UTC
This could happen when oc rsync tries to fetch data while the target container is being restarted for some reason (liveliness probe failure, high memory utilization, ...). So when checked later, pod, container and tools are present, while the error message complains about missing tools in a container image. thanks for the finding, posted a PR with a fix can't reproduce the issue now : oc version --client Client Version: 4.11.0-0.nightly-2022-06-22-015220 Kustomize Version: v4.5.4 oc rsync --container foo pod/thanos-querier-7d869ccc58-mxlf7:/etc/redhat-release /tmp error: container foo not found in pod thanos-querier-7d869ccc58-mxlf7 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 |