Bug 1659925 - Registry pod is still running without error when use invalid S3 bucket
Summary: Registry pod is still running without error when use invalid S3 bucket
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.1.0
Assignee: Corey Daley
QA Contact: Wenjing Zheng
Depends On:
TreeView+ depends on / blocked
Reported: 2018-12-17 08:34 UTC by Wenjing Zheng
Modified: 2019-06-04 10:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2019-06-04 10:41:16 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0758 0 None None None 2019-06-04 10:41:21 UTC

Description Wenjing Zheng 2018-12-17 08:34:23 UTC
Description of problem:
Pod is still running when use invalid S3 bucket, no error to warn.

Version-Release number of selected component (if applicable):
openshift-install v0.7.0-master-6-g8f02020b59147c933a08c5e248a8e2c69dad24ae

How reproducible:

Steps to Reproduce:
1.Edit imageregistries image-registry to use invalid bucket 
2.Check pod status after it restarts

Actual results:
Pod is running without any error in log

Expected results:
It should warn if no available bucket.

Additional info:

Comment 1 Corey Daley 2018-12-23 05:58:07 UTC
This issue will be fixed by https://github.com/openshift/cluster-image-registry-operator/pull/106

If you update the image registry resource with a new bucket name, and it does not exist on S3, it will be created (if we have access to do so), and if we can't create the bucket, and don't have the rights to access it, a condition will be set on the image registry resource which states that.

Comment 2 Corey Daley 2019-01-03 04:48:34 UTC
https://github.com/openshift/cluster-image-registry-operator/pull/106 has merged, can you please check this again and see if it's still an issue?

Comment 3 Wenjing Zheng 2019-01-14 10:11:26 UTC
If I set an invalid bucket name which cannot be created, image-registry pod is still running, but there will be an error message when describe CVO, is it expected?
   Last Transition Time:  2019-01-14T10:00:26Z
    Message:               unable to apply resources: unable to sync storage configuration: InvalidBucketName: The specified bucket is not valid.
                           status code: 400, request id: 39192C2EE4B06A18, host id: eaEQoJ94joa1jkvMcy6+IXMLJBg/3UKtIiGiUC10/DD5wes8Mtf2905zNe49qOu/5Lnj8Tp1Jnc=
    Status:                True
    Type:                  Progressing
    Last Transition Time:  2019-01-14T04:51:20Z
    Status:                False
    Type:                  Failing

Comment 4 Corey Daley 2019-01-15 19:46:55 UTC
Yes, that is expected for now.

Comment 5 Wenjing Zheng 2019-01-16 07:27:52 UTC
Per comment 3 and 4, verify this bug.

Comment 8 errata-xmlrpc 2019-06-04 10:41:16 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.


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