kraft cloud image remove
is inconsistent
#1305
Labels
kind/bug
Something isn't working
priority/medium
Issue which is important, but KraftKit is usable without it also.
Describe the bug
The command
kraft cloud image remove
has shown to be buggy and not consistent with what it should actually do.There are currently two bugs.
1. Now Fully Broken
These three cases should all work, but somehow do not delete the image anymore.
The warning displayed was introduced in e0f4015 as a response to the bug detailed in 2. After that was introduced, somehow images were no longer removed at all.
As it can be seen in e0f4015 the actual deletion happens in the go-sdk not kraftkit.
2. Then Partially Broken
Before these "fixes" were introduced it had an inconsistency problem.
Images were correctly deleted, and usually (50/50) disappeared and no longer showed up in
kraft cloud img ls
. For the rest of the time they still showed up and trying to delete them again resulted in a nastyNOT_FOUND
error from harbor.This was not a harbor issue I think, as the artifacts no longer showed up in the dashboard and I also ran the garbage collector on them. This means that the no-update happened somewhere between Harbor<->Platform. Those images actually disappeared from the list after 2-3 minutes, but that is of course too much.
The fix that caused 1. was done to hide the error and print a prettier message to let people know that there's nothing to worry about.
Steps to reproduce
kraft cloud img rm
itExpected behavior
No response
Which architectures were you using or does this bug affect?
No response
Which operating system were you using or does this bug affect?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: