Bug 2092815 - can't delete the unwanted image from registry by oc-mirror
Summary: can't delete the unwanted image from registry by oc-mirror
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.11
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.0
Assignee: Alex
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-02 10:12 UTC by zhou ying
Modified: 2022-08-10 11:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:15:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc-mirror pull 483 0 None open Bug 2092815: fix(pruning): allows continue-on-error to be used with pruning operat… 2022-06-02 18:33:43 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:16:05 UTC

Description zhou ying 2022-06-02 10:12:17 UTC
Description of problem:
can't delete the unwanted image from registry by oc-mirror 

Version-Release number of selected component (if applicable):
./oc-mirror version 
Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.11.0-202205301910.p0.g4b43175.assembly.stream-4b43175", GitCommit:"4b43175880b66615935e6817c61d43f05ce91a0e", GitTreeState:"clean", BuildDate:"2022-05-30T21:14:55Z", GoVersion:"go1.18", Compiler:"gc", Platform:"linux/amd64"}

How reproducible:
always

Steps to Reproduce:
1. use the configure to mirror the image at the first time:
cat settingconfig.yaml 
apiVersion: mirror.openshift.io/v1alpha2
kind: ImageSetConfiguration
storageConfig:
  registry:
    imageURL: localhost:5000/detest
    skipTLS: false
mirror:
  additionalImages:
  - name: docker.io/library/alpine

./oc-mirror --config settingconfig.yaml docker://localhost:5000/detest --dest-use-http
Checking push permissions for localhost:5000
Found: oc-mirror-workspace/src/publish
Found: oc-mirror-workspace/src/v2
Found: oc-mirror-workspace/src/charts
No metadata detected, creating new workspace
localhost:5000/
  detest/library/alpine
    blobs:
      docker.io/library/alpine sha256:a9cf34276208f96ac1b1df0261e9b57cd830dce0d69baacc06d9734b16e9b0af 1.436KiB
      docker.io/library/alpine sha256:167aa1543edcfc961f880fb6092f1e97d6bc6d071e3452235989f02d162e3a42 1.438KiB
      docker.io/library/alpine sha256:e66264b98777e12192600bf9b4d663655c98a090072e1bab49e233d7531d1294 1.438KiB
      docker.io/library/alpine sha256:96ac9c6717e4bcea54410e5577cda5e92e436f543e992276d77a39616d704c07 1.439KiB
      docker.io/library/alpine sha256:00ffe82f0625133ef6bf1ab5bdfa7d85c15ca5539227123cbbf14a864eb66896 1.444KiB
      docker.io/library/alpine sha256:55144f9f68e28a49543d5b67ab8f778ade4da413d261d9a023144f2d514c4343 1.45KiB
      docker.io/library/alpine sha256:6e30ab57aeeef1ebca8ac5a6ea05b5dd39d54990be94e7be18bb969a02d10a3f 1.452KiB
      docker.io/library/alpine sha256:6366ba92f08e2418e90171f1e34bd86ecd50fdc95953b3f33b8943c143518eca 2.3MiB
      docker.io/library/alpine sha256:af1ac1a73384e058591d04d19bc05a06781cc32d52d4593b468d6cb95eda9858 2.461MiB
      docker.io/library/alpine sha256:79a25ccaf940855872635c06e7614d9b27dd38ffb5a8adfdb9274dfdc0ea0d87 2.485MiB
      docker.io/library/alpine sha256:b3c136eddcbf2003d3180787cef00f39d46b9fd9e4623178282ad6a8d63ad3b0 2.57MiB
      docker.io/library/alpine sha256:d3deabf2a506ef6f5fa7c2a68bf27047574cef9908b30a97ff2d01ae539b089a 2.661MiB
      docker.io/library/alpine sha256:2408cc74d12b6cd092bb8b516ba7d5e290f485d3eb9672efc00f0583730179e8 2.669MiB
      docker.io/library/alpine sha256:bb638a3869eed698f88775c7a48f36f8e22e7c6bbaa98fa1d5678966b619b859 2.672MiB
    manifests:
      sha256:0615cdd745d0b78e7e6ac3a7b1f02e4daefa664eae0324120955f4e4c91bea3f
      sha256:0f3aeb63bb71ccd3ba0020772f5617e50946a4f2713953c3f494203f1544ea03
      sha256:3c66139adbd2513f9fc56eff206513ffc8356b282bed31a4e74c7eb926b850aa
      sha256:4ff3ca91275773af45cb4b0834e12b7eb47d1c18f770a0b151381cd227f4c253
      sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c
      sha256:72af6266bafde8c78d5f20a2a85d0576533ce1ecd6ed8bcf7baf62a743f3b24d
      sha256:83167bc8418071fc178d191ed604f44792c94ad3c3ac26350c29d2445f6a9644
      sha256:c3c58223e2af75154c4a7852d6924b4cc51a00c821553bbd9b3319481131b2e0
      sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c -> latest
  stats: shared=0 unique=14 size=17.83MiB ratio=1.00

phase 0:
  localhost:5000 detest/library/alpine blobs=14 mounts=0 manifests=9 shared=0

info: Planning completed in 5.85s
uploading: localhost:5000/detest/library/alpine sha256:d3deabf2a506ef6f5fa7c2a68bf27047574cef9908b30a97ff2d01ae539b089a 2.661MiB
uploading: localhost:5000/detest/library/alpine sha256:af1ac1a73384e058591d04d19bc05a06781cc32d52d4593b468d6cb95eda9858 2.461MiB
uploading: localhost:5000/detest/library/alpine sha256:b3c136eddcbf2003d3180787cef00f39d46b9fd9e4623178282ad6a8d63ad3b0 2.57MiB
uploading: localhost:5000/detest/library/alpine sha256:79a25ccaf940855872635c06e7614d9b27dd38ffb5a8adfdb9274dfdc0ea0d87 2.485MiB
uploading: localhost:5000/detest/library/alpine sha256:bb638a3869eed698f88775c7a48f36f8e22e7c6bbaa98fa1d5678966b619b859 2.672MiB
uploading: localhost:5000/detest/library/alpine sha256:6366ba92f08e2418e90171f1e34bd86ecd50fdc95953b3f33b8943c143518eca 2.3MiB
uploading: localhost:5000/detest/library/alpine sha256:2408cc74d12b6cd092bb8b516ba7d5e290f485d3eb9672efc00f0583730179e8 2.669MiB
sha256:72af6266bafde8c78d5f20a2a85d0576533ce1ecd6ed8bcf7baf62a743f3b24d localhost:5000/detest/library/alpine
sha256:0615cdd745d0b78e7e6ac3a7b1f02e4daefa664eae0324120955f4e4c91bea3f localhost:5000/detest/library/alpine
sha256:4ff3ca91275773af45cb4b0834e12b7eb47d1c18f770a0b151381cd227f4c253 localhost:5000/detest/library/alpine
sha256:83167bc8418071fc178d191ed604f44792c94ad3c3ac26350c29d2445f6a9644 localhost:5000/detest/library/alpine
sha256:3c66139adbd2513f9fc56eff206513ffc8356b282bed31a4e74c7eb926b850aa localhost:5000/detest/library/alpine
sha256:c3c58223e2af75154c4a7852d6924b4cc51a00c821553bbd9b3319481131b2e0 localhost:5000/detest/library/alpine
sha256:0f3aeb63bb71ccd3ba0020772f5617e50946a4f2713953c3f494203f1544ea03 localhost:5000/detest/library/alpine
sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c localhost:5000/detest/library/alpine:latest
info: Mirroring completed in 6.84s (2.732MB/s)
Wrote ICSP manifests to oc-mirror-workspace/results-1654160704


2. update the configure and use the oc-mirror command again:
 cat settingconfig.yaml 
apiVersion: mirror.openshift.io/v1alpha2
kind: ImageSetConfiguration
storageConfig:
  registry:
    imageURL: localhost:5000/detest
    skipTLS: false
mirror:
  additionalImages:
  - name: docker.io/library/busybox

`./oc-mirror --config settingconfig.yaml docker://localhost:5000/detest --dest-use-http`
3. check the images in the registry 


Actual results:
2. the second image pushed succeed;
./oc-mirror --config settingconfig.yaml docker://localhost:5000/detest --dest-use-http
Checking push permissions for localhost:5000
Creating directory: oc-mirror-workspace/src/publish
Creating directory: oc-mirror-workspace/src/v2
Creating directory: oc-mirror-workspace/src/charts
localhost:5000/
  detest/library/busybox
    blobs:
      docker.io/library/busybox sha256:0be842af2eaa19648bb4039af279e23c06956e9d03e1c560163804fb4afaf126 1.419KiB
      docker.io/library/busybox sha256:4db06e4c35ea88b7c2c47c8d21ebdd9c2a2a07e008b6791a649634236f5cf76e 1.42KiB
      docker.io/library/busybox sha256:3fb5cabb64693474716b56fde1566e26c28b3ad4d0651abb08183ede272e11eb 1.423KiB
      docker.io/library/busybox sha256:0d4c210896e01f79d5e4874b2b8ffd98eee5feaffbe7ece1384f4f8137f5d58e 1.424KiB
      docker.io/library/busybox sha256:76cb1d5527ace3a937d756e54f2e2cb1f60569ec62e67f93e638351a4f0f30ca 1.425KiB
      docker.io/library/busybox sha256:d2dda0268ec1e608811b79c85ef123572cd5359058b0c735d00928e6e7d42b47 1.425KiB
      docker.io/library/busybox sha256:21202a7cd62eac4533706054c4252f2e0714aa416e489260a8dffd6406855773 1.436KiB
      docker.io/library/busybox sha256:568a8a4244fa82c494b280f39e3a074886a75e7864c639eaf5c5409c13d82546 1.436KiB
      docker.io/library/busybox sha256:9f509842917afa47c9cdfa360d23641e013e8590ca4a476e434bbe9c4fda41be 1.436KiB
      docker.io/library/busybox sha256:c22e2f153da257797e8f5b8477f9686229d4e31431a18c759301b3ef48b565c9 1.436KiB
      docker.io/library/busybox sha256:e241131b06831685699621491e612cc486fc065720caa69035c903f69014223f 707.3KiB
      docker.io/library/busybox sha256:4e20ca0ceaa8399d12ecb31f47868e13ae5355b93727b91f6e642bcf19f10169 718.8KiB
      docker.io/library/busybox sha256:a7d81e793659d295ebed83e6d1df1465370d3ac704ed1cac779bba58dd179a1b 738.4KiB
      docker.io/library/busybox sha256:462eb288b104be5b46b5880520b3dee1dc81a0bf2de71b59e67764bb54e016b9 754.7KiB
      docker.io/library/busybox sha256:e9bbb3cc217f51be8fe02e09b3fff565a1b715808890428d5faa8eab084af5f5 809KiB
      docker.io/library/busybox sha256:e8ba1747fe030c5b3d5ccb3dcf6b9f2bf645cbe8a80d0ec92e380a9293450f0f 884KiB
      docker.io/library/busybox sha256:fcc7f363df9196ab20d356bce23d08205814b64f423a0a3e01c45b4d47437a43 931.3KiB
      docker.io/library/busybox sha256:47c4f3798781999b0db36d8b7eb94030149b0e2b9ef74df01ffb33b9cc22bc6f 937.9KiB
      docker.io/library/busybox sha256:994bbfac345f7433f0133fffd8cb096b7ca3eb4e3c86b80378174da8c3563ac8 1.914MiB
      docker.io/library/busybox sha256:16a50acca45f8211ad887b54a11ecd00d579b91eeddfd396347ee5d69031d094 2.369MiB
    manifests:
      sha256:0e43b68076a79dd1bec23c015529b2ffa39ed9c489dd9180005ebd031ff8c00e
      sha256:1fba0907b71d9a34127a059ecac4f6389eb56279d17ec30642c6cd7cca77da60
      sha256:205a121ea8a7a142e5f1fdb9ad72c70ffc8e4a56efec5b70b78a93ebfdddae87
      sha256:22f7fe66715a5fed9a4068657f2d07d051944b4bcc4bfec287115dfade53da58
      sha256:661c33de8c42863d4b82edf9c75631379650e5aa44151891531e41e8b0ce28f4
      sha256:7dadb89722cb4ed38948cad0a30b3c2c0d83a9605ddcef6b8ccdfe9b26341529
      sha256:966ec2b1a08625a5d0878ec5cf6c4df6e9f722f9cc34ac76996f8d98a23a7cb0
      sha256:aadac55005f0a3cb3a66623bcaae762ce2664377569eecd0c321b7d6fa4f60e9
      sha256:b21b4be8de9bf33c7e8e8bc7f3405e47709472557db6c8925d78d41513965c81
      sha256:e4ce578d572b59a7213eed6bd61ba6c1e61b27e7914b0b271782fa34dd00ee37
      sha256:ebadf81a7f2146e95f8c850ad7af8cf9755d31cdba380a8ffd5930fba5996095
      sha256:ebadf81a7f2146e95f8c850ad7af8cf9755d31cdba380a8ffd5930fba5996095 -> latest
  stats: shared=0 unique=20 size=10.63MiB ratio=1.00

phase 0:
  localhost:5000 detest/library/busybox blobs=20 mounts=0 manifests=12 shared=0

info: Planning completed in 6.66s
uploading: localhost:5000/detest/library/busybox sha256:e9bbb3cc217f51be8fe02e09b3fff565a1b715808890428d5faa8eab084af5f5 809KiB
uploading: localhost:5000/detest/library/busybox sha256:4e20ca0ceaa8399d12ecb31f47868e13ae5355b93727b91f6e642bcf19f10169 718.8KiB
uploading: localhost:5000/detest/library/busybox sha256:994bbfac345f7433f0133fffd8cb096b7ca3eb4e3c86b80378174da8c3563ac8 1.914MiB
uploading: localhost:5000/detest/library/busybox sha256:462eb288b104be5b46b5880520b3dee1dc81a0bf2de71b59e67764bb54e016b9 754.7KiB
uploading: localhost:5000/detest/library/busybox sha256:a7d81e793659d295ebed83e6d1df1465370d3ac704ed1cac779bba58dd179a1b 738.4KiB
uploading: localhost:5000/detest/library/busybox sha256:16a50acca45f8211ad887b54a11ecd00d579b91eeddfd396347ee5d69031d094 2.369MiB
uploading: localhost:5000/detest/library/busybox sha256:47c4f3798781999b0db36d8b7eb94030149b0e2b9ef74df01ffb33b9cc22bc6f 937.9KiB
uploading: localhost:5000/detest/library/busybox sha256:fcc7f363df9196ab20d356bce23d08205814b64f423a0a3e01c45b4d47437a43 931.3KiB
uploading: localhost:5000/detest/library/busybox sha256:e241131b06831685699621491e612cc486fc065720caa69035c903f69014223f 707.3KiB
uploading: localhost:5000/detest/library/busybox sha256:e8ba1747fe030c5b3d5ccb3dcf6b9f2bf645cbe8a80d0ec92e380a9293450f0f 884KiB
sha256:b21b4be8de9bf33c7e8e8bc7f3405e47709472557db6c8925d78d41513965c81 localhost:5000/detest/library/busybox
sha256:e4ce578d572b59a7213eed6bd61ba6c1e61b27e7914b0b271782fa34dd00ee37 localhost:5000/detest/library/busybox
sha256:7dadb89722cb4ed38948cad0a30b3c2c0d83a9605ddcef6b8ccdfe9b26341529 localhost:5000/detest/library/busybox
sha256:0e43b68076a79dd1bec23c015529b2ffa39ed9c489dd9180005ebd031ff8c00e localhost:5000/detest/library/busybox
sha256:661c33de8c42863d4b82edf9c75631379650e5aa44151891531e41e8b0ce28f4 localhost:5000/detest/library/busybox
sha256:205a121ea8a7a142e5f1fdb9ad72c70ffc8e4a56efec5b70b78a93ebfdddae87 localhost:5000/detest/library/busybox
sha256:966ec2b1a08625a5d0878ec5cf6c4df6e9f722f9cc34ac76996f8d98a23a7cb0 localhost:5000/detest/library/busybox
sha256:22f7fe66715a5fed9a4068657f2d07d051944b4bcc4bfec287115dfade53da58 localhost:5000/detest/library/busybox
sha256:1fba0907b71d9a34127a059ecac4f6389eb56279d17ec30642c6cd7cca77da60 localhost:5000/detest/library/busybox
sha256:aadac55005f0a3cb3a66623bcaae762ce2664377569eecd0c321b7d6fa4f60e9 localhost:5000/detest/library/busybox
sha256:ebadf81a7f2146e95f8c850ad7af8cf9755d31cdba380a8ffd5930fba5996095 localhost:5000/detest/library/busybox:latest
info: Mirroring completed in 4.78s (2.327MB/s)
Pruning 1 image(s) from registry
Deleting manifest sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c from repo detest/library/alpine
WARNING: Pruning failed for image "localhost:5000/detest/library/alpine@sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c" with 405 response code
Wrote ICSP manifests to oc-mirror-workspace/results-1654162738


3. The image docker.io/library/alpine and docker.io/library/busybox both in the registry , didn't delete the first image;

curl 127.0.0.1:5000/v2/_catalog
{"repositories":["detest","detest/library/alpine","detest/library/busybox","detest/oc-mirror"]}

oc image info localhost:5000/detest/library/alpine:latest
Warning: the default reading order of registry auth file will be changed from "${HOME}/.docker/config.json" to podman registry config locations in the future version of oc. "${HOME}/.docker/config.json" is deprecated, but can still be used for storing credentials as a fallback. See https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md for the order of podman registry config locations.
error: unable to read image localhost:5000/detest/library/alpine:latest: Get "https://localhost:5000/v2/": http: server gave HTTP response to HTTPS client
[root@localhost deleteimage]# oc image info localhost:5000/detest/library/alpine:latest --insecure 
Warning: the default reading order of registry auth file will be changed from "${HOME}/.docker/config.json" to podman registry config locations in the future version of oc. "${HOME}/.docker/config.json" is deprecated, but can still be used for storing credentials as a fallback. See https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md for the order of podman registry config locations.
error: the image is a manifest list and contains multiple images - use --filter-by-os to select from:

  OS             DIGEST
  linux/amd64    sha256:4ff3ca91275773af45cb4b0834e12b7eb47d1c18f770a0b151381cd227f4c253
  linux/arm/v6   sha256:3c66139adbd2513f9fc56eff206513ffc8356b282bed31a4e74c7eb926b850aa
  linux/arm/v7   sha256:0615cdd745d0b78e7e6ac3a7b1f02e4daefa664eae0324120955f4e4c91bea3f
  linux/arm64/v8 sha256:c3c58223e2af75154c4a7852d6924b4cc51a00c821553bbd9b3319481131b2e0
  linux/386      sha256:72af6266bafde8c78d5f20a2a85d0576533ce1ecd6ed8bcf7baf62a743f3b24d
  linux/ppc64le  sha256:0f3aeb63bb71ccd3ba0020772f5617e50946a4f2713953c3f494203f1544ea03
  linux/s390x    sha256:83167bc8418071fc178d191ed604f44792c94ad3c3ac26350c29d2445f6a9644


Expected results:
3. Should delete image docker.io/library/alpine and only leave image docker.io/library/busybox

Additional info:

Comment 1 Jennifer Power 2022-06-02 12:43:56 UTC
@yinzhou Can you please check that the registry you are testing with allows for deletion?

This message "WARNING: Pruning failed for image "localhost:5000/detest/library/alpine@sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c" with 405 response code" indicates that the registry does not allow deletion. We may need to make this message more apparent or fail out and allow the user to continue without pruning if desired.

Comment 2 zhou ying 2022-06-06 10:50:41 UTC
Jennifer Power:

Thanks , after restart the registry with '-e REGISTRY_STORAGE_DELETE_ENABLED=true' , will delete succeed.

Comment 4 zhou ying 2022-06-10 05:15:55 UTC
checked with latest version , the continue-on-error used with pruning :

oc-mirror --config configset.yaml docker://localhost:5000  --dest-use-http
Checking push permissions for localhost:5000
Found: oc-mirror-workspace/src/publish
Found: oc-mirror-workspace/src/v2
Found: oc-mirror-workspace/src/charts
Found: oc-mirror-workspace/src/release-signatures
localhost:5000/
  library/busybox
    manifests:
      sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c
      sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933
      sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a
      sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83
      sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132
      sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d
      sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc
      sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc
      sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea
      sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992
      sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52
      sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83 -> latest
  stats: shared=0 unique=0 size=0B

phase 0:
  localhost:5000 library/busybox blobs=0 mounts=0 manifests=12 shared=0

info: Planning completed in 6.32s
sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc localhost:5000/library/busybox
sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea localhost:5000/library/busybox
sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a localhost:5000/library/busybox
sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc localhost:5000/library/busybox
sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d localhost:5000/library/busybox
sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933 localhost:5000/library/busybox
sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52 localhost:5000/library/busybox
sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992 localhost:5000/library/busybox
sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c localhost:5000/library/busybox
sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132 localhost:5000/library/busybox
sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83 localhost:5000/library/busybox:latest
info: Mirroring completed in 80ms (0B/s)
Pruning 8 manifest(s) from repository library/alpine
Deleting manifest sha256:0615cdd745d0b78e7e6ac3a7b1f02e4daefa664eae0324120955f4e4c91bea3f from repo library/alpine
Deleting manifest sha256:0f3aeb63bb71ccd3ba0020772f5617e50946a4f2713953c3f494203f1544ea03 from repo library/alpine
Deleting manifest sha256:3c66139adbd2513f9fc56eff206513ffc8356b282bed31a4e74c7eb926b850aa from repo library/alpine
Deleting manifest sha256:4ff3ca91275773af45cb4b0834e12b7eb47d1c18f770a0b151381cd227f4c253 from repo library/alpine
Deleting manifest sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c from repo library/alpine
Deleting manifest sha256:72af6266bafde8c78d5f20a2a85d0576533ce1ecd6ed8bcf7baf62a743f3b24d from repo library/alpine
Deleting manifest sha256:83167bc8418071fc178d191ed604f44792c94ad3c3ac26350c29d2445f6a9644 from repo library/alpine
Deleting manifest sha256:c3c58223e2af75154c4a7852d6924b4cc51a00c821553bbd9b3319481131b2e0 from repo library/alpine
error: error pruning from registry "localhost:5000": [image deletion is not permitted on registry localhost:5000: repo "library/alpine" manifest sha256:0615cdd745d0b78e7e6ac3a7b1f02e4daefa664eae0324120955f4e4c91bea3f: DELETE http://localhost:5000/v2/library/alpine/manifests/sha256:0615cdd745d0b78e7e6ac3a7b1f02e4daefa664eae0324120955f4e4c91bea3f: UNSUPPORTED: The operation is unsupported., image deletion is not permitted on registry localhost:5000: repo "library/alpine" manifest sha256:0f3aeb63bb71ccd3ba0020772f5617e50946a4f2713953c3f494203f1544ea03: DELETE http://localhost:5000/v2/library/alpine/manifests/sha256:0f3aeb63bb71ccd3ba0020772f5617e50946a4f2713953c3f494203f1544ea03: UNSUPPORTED: The operation is unsupported., image deletion is not permitted on registry localhost:5000: repo "library/alpine" manifest sha256:3c66139adbd2513f9fc56eff206513ffc8356b282bed31a4e74c7eb926b850aa: DELETE http://localhost:5000/v2/library/alpine/manifests/sha256:3c66139adbd2513f9fc56eff206513ffc8356b282bed31a4e74c7eb926b850aa: UNSUPPORTED: The operation is unsupported., image deletion is not permitted on registry localhost:5000: repo "library/alpine" manifest sha256:4ff3ca91275773af45cb4b0834e12b7eb47d1c18f770a0b151381cd227f4c253: DELETE http://localhost:5000/v2/library/alpine/manifests/sha256:4ff3ca91275773af45cb4b0834e12b7eb47d1c18f770a0b151381cd227f4c253: UNSUPPORTED: The operation is unsupported., image deletion is not permitted on registry localhost:5000: repo "library/alpine" manifest sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c: DELETE http://localhost:5000/v2/library/alpine/manifests/sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c: UNSUPPORTED: The operation is unsupported., image deletion is not permitted on registry localhost:5000: repo "library/alpine" manifest sha256:72af6266bafde8c78d5f20a2a85d0576533ce1ecd6ed8bcf7baf62a743f3b24d: DELETE http://localhost:5000/v2/library/alpine/manifests/sha256:72af6266bafde8c78d5f20a2a85d0576533ce1ecd6ed8bcf7baf62a743f3b24d: UNSUPPORTED: The operation is unsupported., image deletion is not permitted on registry localhost:5000: repo "library/alpine" manifest sha256:83167bc8418071fc178d191ed604f44792c94ad3c3ac26350c29d2445f6a9644: DELETE http://localhost:5000/v2/library/alpine/manifests/sha256:83167bc8418071fc178d191ed604f44792c94ad3c3ac26350c29d2445f6a9644: UNSUPPORTED: The operation is unsupported., image deletion is not permitted on registry localhost:5000: repo "library/alpine" manifest sha256:c3c58223e2af75154c4a7852d6924b4cc51a00c821553bbd9b3319481131b2e0: DELETE http://localhost:5000/v2/library/alpine/manifests/sha256:c3c58223e2af75154c4a7852d6924b4cc51a00c821553bbd9b3319481131b2e0: UNSUPPORTED: The operation is unsupported.]
[root@localhost deleteimage]# echo $?
1

Comment 6 errata-xmlrpc 2022-08-10 11:15:49 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security update), 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/RHSA-2022:5069


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