Bug 1745767 - Machine-config-controller panic on pathological mirror configuration
Summary: Machine-config-controller panic on pathological mirror configuration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Machine Config Operator
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.2.0
Assignee: Miloslav Trmač
QA Contact: Micah Abbott
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-26 21:02 UTC by Miloslav Trmač
Modified: 2019-10-16 06:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-16 06:37:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift machine-config-operator pull 1082 0 None closed Bug 1745767: Fix a corner case in mergedMirrorSets 2020-10-01 15:34:20 UTC
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:37:45 UTC

Description Miloslav Trmač 2019-08-26 21:02:54 UTC
Description of problem:
Per unit tests, given an ImageContentSourcePolicy CRD with
> RepositoryDigestMirrors{
>   Source: "source.example.com",
>   Mirrors: []string{"source.example.com"},
> }

the code creating registries.conf will fail with
> panic: runtime error: index out of range [recovered]
>	panic: runtime error: index out of range
at
> machine-config-operator/pkg/controller/container-runtime-config/helpers.go:309

Proposed fix is https://github.com/openshift/machine-config-operator/pull/1082 .

Comment 3 errata-xmlrpc 2019-10-16 06:37:32 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/RHBA-2019:2922


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