Bug 1882199 - image-registry operator is not available in eu-south-1 and af-south-1 region, error: panic: Invalid region provided
Summary: image-registry operator is not available in eu-south-1 and af-south-1 region,...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 4.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.6.0
Assignee: Oleg Bulatov
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-24 03:23 UTC by Yunfei Jiang
Modified: 2020-10-27 16:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:44:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-image-registry-operator pull 615 0 None closed Bug 1882199: bump aws-sdk-go (v1.34.30) 2020-10-09 03:51:10 UTC
Github openshift image-registry pull 248 0 None closed Bug 1882199: bump aws-sdk-go (v1.34.30) 2020-10-09 03:51:10 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:45:15 UTC

Description Yunfei Jiang 2020-09-24 03:23:13 UTC
Failed to install cluster on eu-south-1 af-south-1 region, due to image-registry error:

oc logs image-registry-7b87d7f456-fn9xk -n openshift-image-registry
time="2020-09-24T02:35:36.847697769Z" level=info msg="start registry" distribution_version=v2.6.0+unknown go.version=go1.15.0 openshift_version=4.6.0-202009221732.p0-e9436f5
time="2020-09-24T02:35:36.848181465Z" level=info msg="caching project quota objects with TTL 1m0s" go.version=go1.15.0
panic: Invalid region provided: af-south-1
goroutine 1 [running]:
github.com/docker/distribution/registry/handlers.NewApp(0x1ed2520, 0xc00012e010, 0xc00039ee00, 0xc0004b7710)
/go/src/github.com/openshift/image-registry/vendor/github.com/docker/distribution/registry/handlers/app.go:127 +0x3155
github.com/openshift/image-registry/pkg/dockerregistry/server/supermiddleware.NewApp(0x1ed2520, 0xc00012e010, 0xc00039ee00, 0x1edb320, 0xc00057d290, 0x1edea00)
/go/src/github.com/openshift/image-registry/pkg/dockerregistry/server/supermiddleware/app.go:96 +0x87
github.com/openshift/image-registry/pkg/dockerregistry/server.NewApp(0x1ed2520, 0xc00012e010, 0x1e9e4e0, 0xc0001325d8, 0xc00039ee00, 0xc0001388c0, 0x0, 0x0, 0xc0004b6210, 0xc00061f818)
/go/src/github.com/openshift/image-registry/pkg/dockerregistry/server/app.go:138 +0x2cd
github.com/openshift/image-registry/pkg/cmd/dockerregistry.NewServer(0x1ed2520, 0xc00012e010, 0xc00039ee00, 0xc0001388c0, 0x0, 0x0, 0x1ef5fc0)
/go/src/github.com/openshift/image-registry/pkg/cmd/dockerregistry/dockerregistry.go:210 +0x1ce
github.com/openshift/image-registry/pkg/cmd/dockerregistry.Execute(0x1e8fc20, 0xc000132028)
/go/src/github.com/openshift/image-registry/pkg/cmd/dockerregistry/dockerregistry.go:164 +0xa3e
main.main()
/go/src/github.com/openshift/image-registry/cmd/dockerregistry/main.go:93 +0x4b3


Version-Release number of the following components: 
4.6.0-0.nightly-2020-09-23-022756

 
How reproducible: 
Always 
 

Steps to Reproduce: 
1. Create 4.6 cluster in  eu-south-1 or af-south-1

Actual results: 
panic: Invalid region provided: af-south-1

Expected results:
image-registry operator is avaliable and cluster can be installed successfully

Additional info:

eu-south-1/af-south-1/ap-east-1 are three regions that has no public RHCOS AMI and are not listed in TUI, but ap-east-1 has no such issue.

Accouding to document [1], the RHCOS AMI image is copied from us-east-1

level=debug msg="aws_ami_copy.imported[0]: Creating..."
<--SNIP-->
level=debug msg="aws_ami_copy.imported[0]: Creation complete after 5m17s [id=ami-05e89e6d157b289e5]"

[1] https://github.com/openshift/enhancements/pull/163/files#diff-b6a7e34af40d81a977a31247b107348eR63

Comment 2 Yunfei Jiang 2020-09-27 08:08:00 UTC
verified on eu-south-1/af-south-1/ap-east-1 regions. PASS.
version: 4.6.0-0.nightly-2020-09-26-202331

Comment 5 errata-xmlrpc 2020-10-27 16:44:57 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 (OpenShift Container Platform 4.6 GA Images), 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-2020:4196


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