Bug 2004193
Summary: | oc is crashing while mirroring registry | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Ross Peoples <rpeoples> | |
Component: | oc | Assignee: | Ross Peoples <rpeoples> | |
Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 4.2.z | CC: | aos-bugs, arghosh, cshepher, erich, jokerman, mfojtik, yinzhou | |
Target Milestone: | --- | Keywords: | Reopened | |
Target Release: | 4.8.z | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
* Previously, there was an unchecked index operation on a slice when using the `--max components` argument. Consequently, the `oc` client returned a `panic: runtime error: slice bounds out of range` error and crashed. This update adds a check to ensure that a value is not requested for an index that is out of range. As a result, when using the `--max-components` argument, the `oc` client will no longer crash. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2004193[*BZ#2004193*])
|
Story Points: | --- | |
Clone Of: | 1786835 | |||
: | 2004194 (view as bug list) | Environment: | ||
Last Closed: | 2021-09-27 19:53:12 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: | ||||
Bug Depends On: | 1786835 | |||
Bug Blocks: | 2004194 |
Description
Ross Peoples
2021-09-14 16:45:44 UTC
retested with latest oc client, can't reproduce now: [root@localhost ~]# ./oc version --client Client Version: 4.8.0-0.nightly-2021-09-21-220555 [root@localhost ~]# ./oc adm catalog mirror registry.redhat.io/redhat/redhat-operator-index:v4.7 localhost:5000 --insecure --filter-by-os="linux/amd64" --max-components=5 Flag --filter-by-os has been deprecated, use --index-filter-by-os instead src image has index label for database path: /database/index.db using database path mapping: /database/index.db:/tmp/863614584 W0922 14:35:52.190226 736818 manifest.go:442] Chose linux/amd64 manifest from the manifest list. wrote database to /tmp/863614584 using database at: /tmp/863614584/index.db 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 (OpenShift Container Platform 4.8.13 bug fix 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/RHBA-2021:3632 |