Skip to content

Remove attempts to remove LXD image of same name when deleting a unit#74

Merged
beringresearch merged 1 commit intobravetools:masterfrom
Szubie:remove-unit-vs-image
May 25, 2022
Merged

Remove attempts to remove LXD image of same name when deleting a unit#74
beringresearch merged 1 commit intobravetools:masterfrom
Szubie:remove-unit-vs-image

Conversation

@Szubie
Copy link
Collaborator

@Szubie Szubie commented May 25, 2022

When calling the remove command without the -i flag, it is expected that the command would delete units instead of images. However, the command also attempts to remove any host LXD containers with the same name as the unit after deleting the unit.

In most cases, that image will not exist - in theory temporary images should have been cleaned up during build. This leads to "Image alias not found" errors.

Even if there was an issue with leftover images needing to be cleaned up, this function would only help if the unit name and the image name matched, which isn't necessarily the case.

…. However, in most cases, that image will not exist (cleaned up during build). Thus it would cause an error in most cases.
@beringresearch beringresearch merged commit f4f5b4e into bravetools:master May 25, 2022
@Szubie Szubie deleted the remove-unit-vs-image branch May 25, 2022 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants