system registry-image-delete gives unclear responses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Karla Felix |
Bug Description
Brief Description
A couple responses given by system registry-
Delete all tags for an image listed in "system registry-
"system registry-
Severity
<Minor: System/Feature is usable with minor issue>
Steps to Reproduce
Listed in the description
Expected Behavior
Images shouldn't show in the image list after all tags are deleted.
image-delete should only respond positively AFTER confirming the image was in fact deleted.
Actual Behavior
image name shows up in image list after being deleted. checking for tags returns a blank.
Reproducibility
<Reproducible>
System Configuration
Any
Deleted image remains on image list
[sysadmin@
docker.
[sysadmin@
-----------
Image Tag
-----------
latest
-----------
[sysadmin@
Image docker.
[sysadmin@
Running docker registry garbage collect
[sysadmin@
docker.
[sysadmin@
[sysadmin@
system registry-
[sysadmin@
Image some-random-
Alarms
NA
Test Activity
Normal use
Workaround
NA
Changed in starlingx: | |
assignee: | nobody → Karla Felix (kkarolin) |
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 stx.containers |
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/895218 /opendev. org/starlingx/ config/ commit/ 91f523f06a5ad0c a50704a527d097e b877915c72
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 91f523f06a5ad0c a50704a527d097e b877915c72
Author: Karla Felix <email address hidden>
Date: Thu Sep 14 19:08:04 2023 -0300
Add error message to system registry- image-delete
Add an error message to registry- image-delete, currently when users
attempt to delete a non-existent image, the command fails silently.
This review is adding an error message to this operation, now when
the user tries to delete an image that doesn't exist it will be displayed
this message: "No tag found for image: <image_name>"
Also improving 'system registry- image-list' by adding an optional out-untagged" to filter and display only images
argument "--filter-
that have associated tags in the system registry.
Test Plan: image-list' without '--filter- out-untagged' . image-list' with '--filter- out-untagged' and
PASS: Run 'system registry-
PASS: Run 'system registry-
verify if the untagged images are out of the list.
PASS: Delete an image that doesn't exist and verify if it will return
the error message.
PASS: Delete an existing image and verify if it was successfully
deleted.
Closes- Bug:2037552
Signed-off-by: Karla Felix <email address hidden> 22d6bf923235e6d 0cd821b4953
Change-Id: Ibbc25dff5f4c1b