Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1835770

Summary: [openstack] 409 Conflict error removing Swift storage
Product: OpenShift Container Platform Reporter: Adam Kaplan <adam.kaplan>
Component: Image RegistryAssignee: Ricardo Maraschini <rmarasch>
Status: CLOSED ERRATA QA Contact: Wenjing Zheng <wzheng>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.zCC: aos-bugs, pasik
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Removing the image registry on OpenStack (swift) when content has already been written to the storage. Consequence: Storage for image registry was not being removed and an error was logged (409 http return code). Fix: Removed the storage content before removing the storage solved the issue. Result: Now by removing the internal registry the operator removes its storage completely.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 15:59:18 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:
Attachments:
Description Flags
operator-logs-swift none

Description Adam Kaplan 2020-05-14 13:22:52 UTC
Created attachment 1688445 [details]
operator-logs-swift

Description of problem:

On OpenStack+Swift, the image registry cannot be Removed if images have been pushed & saved on its storage.


Version-Release number of selected component (if applicable): 4.3.z


How reproducible:
Not always

Steps to Reproduce:
1.Import some images to image registry on OpenStack with Swift storage backend
2.Try to remove image registry
3.Try to bring image registry back and check pods under openshift-image-registry

Actual results:

Image registry cannot be removed - status in operator:
  storage:
    swift:
      authURL: https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13000/v3
      authVersion: "3"
      container: qeci-4524-3-8qxr6-image-registry-mayamgwnilbbvwodsclwpiqlhioke
      domain: redhat.com
      regionName: regionOne
      tenant: openshift-qe-jenkins
      tenantID: 542c6ebd48bf40fa857fc245c7572e30
status:
  conditions:
  - lastTransitionTime: "2020-05-11T10:26:58Z"
    message: |-
      Expected HTTP response code [] when accessing [DELETE https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13808/v1/AUTH_542c6ebd48bf40fa857fc245c7572e30/qeci-4524-3-8qxr6-image-registry-mayamgwnilbbvwodsclwpiqlhioke], but got 409 instead
      <html><h1>Conflict</h1><p>There was a conflict when trying to complete your request.</p></html>
    reason: |-
      Expected HTTP response code [] when accessing [DELETE https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13808/v1/AUTH_542c6ebd48bf40fa857fc245c7572e30/qeci-4524-3-8qxr6-image-registry-mayamgwnilbbvwodsclwpiqlhioke], but got 409 instead
      <html><h1>Conflict</h1><p>There was a conflict when trying to complete your request.</p></html>
    status: Unknown
    type: StorageExists

Expected results:

Image registry can be removed.

Additional info:

Comment 1 Oleg Bulatov 2020-05-18 12:24:08 UTC
This exists for a few releases, not a release blocker.

Comment 4 Wenjing Zheng 2020-06-28 09:26:24 UTC
Verified on 4.6.0-0.nightly-2020-06-26-035408.

Comment 6 errata-xmlrpc 2020-10-27 15:59:18 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