ops icon indicating copy to clipboard operation
ops copied to clipboard

someone reported getting duplicate disk files when using 'image create'

Open eyberg opened this issue 2 years ago • 1 comments

not sure where the 'disk.raw' is coming from or if it's a tmp file not being removed?

ops image create -c ~/config.json --package mysql_5.7.29 -i mysql-unikernel-test -t gcp
ls -ltr ~/.ops/images/
total 319448
-rw-r--r-- 2 user group 209715200 Aug 19 15:58 mysql-unikernel-test.img
-rw-r--r-- 2 user group 209715200 Aug 19 15:58 disk.raw

eyberg avatar Aug 19 '21 16:08 eyberg

seems like it's being left behind in a few places:

grep -R "disk.raw" * | grep -v vendor
azure/azure_image.go:   symlink := filepath.Join(filepath.Dir(imagePath), "disk.raw")
gcp/gcp_image.go:       symlink := filepath.Join(filepath.Dir(imagePath), "disk.raw")
gcp/gcp_volume.go:      link := filepath.Join(filepath.Dir(lv.Path), "disk.raw")

eyberg avatar Aug 19 '21 16:08 eyberg