Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete "external" volume once build completed? #56

Open
hswong3i opened this issue May 14, 2023 · 1 comment
Open

Delete "external" volume once build completed? #56

hswong3i opened this issue May 14, 2023 · 1 comment

Comments

@hswong3i
Copy link

hswong3i commented May 14, 2023

Refer to #55, I found that the created ISO file under /var/lib/libvirt/images are not deleted once build completed or killed, e.g.:

# ls -al /var/lib/libvirt/images
total 4675616
drwxr-xr-x 2 root root         4096 May 14 18:28 .
drwxr-xr-x 7 root root         4096 May 14 00:16 ..
-rw------- 1 root libvirt 797966336 May 14 17:34 packer-chgambijs9f3qa70okrg-ua-cdrom
-rw------- 1 root libvirt 797966336 May 14 17:37 packer-chganqqjs9f3uqi2nntg-ua-cdrom
-rw------- 1 root libvirt 797966336 May 14 17:43 packer-chgaqaijs9f3j9e53r2g-ua-cdrom
-rw------- 1 root libvirt 797966336 May 14 17:45 packer-chgariqjs9f3li6td620-ua-cdrom
-rw------- 1 root libvirt 797966336 May 14 17:46 packer-chgas32js9f3naheds80-ua-cdrom
-rw------- 1 root libvirt 797966336 May 14 18:21 packer-chgbcgqjs9f4hmrbakng-ua-cdrom

As shown, how may time I retry the build, how may time the ISO being copied from packer cache and keep afterward :-(

@thomasklein94
Copy link
Owner

As coded here, During normal exit conditions, every volume created by the plugin should get deleted except for the artifact.

Can you share the output and logs for a build that fails to clean up afterwards?

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

No branches or pull requests

2 participants