Bug 1924568

Summary: [aws-c2s]Failed to push images to openshift registry with "MethodNotAllowed: The specified method is not allowed against this resource"
Product: OpenShift Container Platform Reporter: XiuJuan Wang <xiuwang>
Component: Image RegistryAssignee: Oleg Bulatov <obulatov>
Status: CLOSED NOTABUG QA Contact: Wenjing Zheng <wzheng>
Severity: high Docs Contact:
Priority: high    
Version: 4.7CC: aos-bugs, obulatov, rmarasch, wewang, wsun, yunjiang
Target Milestone: ---Keywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-21 15:00:09 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 XiuJuan Wang 2021-02-03 08:32:44 UTC
Description of problem:
On the AWS GovCloud/C2S emulation cluster,it's failed to push images to openshift registry with "s3aws: MethodNotAllowed: The specified method is not allowed against this resource"

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2021-01-31-031653

How reproducible:
AWS GovCloud/C2S emulation cluster 

Steps to Reproduce:
1.Push image to image registry
2.
3.

Actual results:
$ oc get builds
NAME         TYPE     FROM          STATUS                               STARTED       DURATION
httpd-ex-1   Source   Git@092fbaa   Failed (PushImageToRegistryFailed)   2 hours ago   1m37s
httpd-ex-2   Source   Git@092fbaa   Failed (PushImageToRegistryFailed)   2 hours ago   47s

$oc -n openshift-image-registry  logs  -f image-registry-67d86c6f7f-w9bxw 

time="2021-02-03T06:27:35.421621196Z" level=error msg="response completed with error" err.code=unknown err.detail="s3aws: MethodNotAllowed: The specified method is not allowed against this resource.\n\tstatus code: 405, request id: 85E87420B2893AD4, host id: IjLcJM++6Ss42jhmy5E2QSyKy52CWKdDfXev1b4u2eSAyB9aO9RvUq0EKuTSDwqM1ApcaR7cW1s=" err.message="unknown error" go.version=go1.15.5 http.request.host="image-registry.openshift-image-registry.svc:5000" http.request.id=887fa03c-a1fe-4aca-bc60-9738c5ef9769 http.request.method=POST http.request.remoteaddr="10.128.2.198:37270" http.request.uri="/v2/y4e9d/httpd-ex/blobs/uploads/?from=openshift%2Fhttpd&mount=sha256%3A199846f31ae5fa065552bd264c2e9c002b4e92e89f73f949724c6353621e1d9c" http.request.useragent="containers/5.10.1 (github.com/containers/image)" http.response.contenttype="application/json; charset=utf-8" http.response.duration=188.301293ms http.response.status=500 http.response.written=123 openshift.auth.user="system:serviceaccount:y4e9d:builder" vars.name=y4e9d/httpd-ex

Expected results:
Could push image to image registry

Additional info: