Submitted by aabouzaid on Sun, 04/26/2015 - 12:26
Hello,
After new update of Cloudmin -version 8.1- "Create Image" not working if "Compress image file?" is "Yes" (Working fine without compression).
Actually, the script make image and remove it in clean up process! (script do this directly after checking md5sum).
Also I've tried command line back-end which located in: /usr/share/webmin/server-manager/create-image.pl
But get the same result. (No image and no erros at all)
info:
- System: Ubuntu 12.04.5 LTS
- Cloudmin: 8.1.gpl
- Webmin: 1.740
- Perl: 5.14.2
Thanks a lot.
Status:
Active
Comments
Submitted by JamieCameron on Sun, 04/26/2015 - 16:06 Comment #1
Which virtualization type are you using there - Xen, KVM or something else?
Submitted by aabouzaid on Mon, 04/27/2015 - 06:12 Comment #2
Xen 4.1
Thanks Jamie.
Submitted by aabouzaid on Mon, 04/27/2015 - 10:08 Comment #3
I think the cause of issue are "masterdir" and "tempdir" variables.
For some reason both have the same value, so in this script:
/usr/share/webmin/server-manager/xen-type-lib.pl
When change this line:
"rm -f ".quotemeta("$tempdir/$gzfile"));
to:
"ls ".quotemeta("$tempdir/$gzfile"));
The script will printout "masterdir" which is the same of "tempdir" (/var/webmin/server-manager/). Also this happen if you set other location with "--storage" option from command line.
Submitted by JamieCameron on Mon, 04/27/2015 - 18:43 Comment #4
That could be it - what error do you get in Cloudmin when creating an un-compressed Xen image though?
Submitted by aabouzaid on Tue, 04/28/2015 - 07:14 Comment #5
No errors at all, every thing working to the end successfully, but image file not exist anywhere (No errors in web interface nor command line script).
Submitted by JamieCameron on Tue, 04/28/2015 - 19:08 Comment #6
Does the image show up on the New System Images page?
Also, are you trying to create it in some custom storage location, or just in the default directory on the master system?
Submitted by aabouzaid on Wed, 04/29/2015 - 09:27 Comment #7
Yes, image shows in menu because ".img" file exist in "/var/webmin/server-manager/" (.img file size is 336 bytes!) but ".gz" that actually has the data not exist.
Image made from LVM partition on the master and saved in default directory on the same server. And this feature was working fine unil last update "8.1gpl".
Attached image creation if you need it (has no errors as you see).
Submitted by JamieCameron on Wed, 04/29/2015 - 21:49 Comment #8
We just released the 8.2 update - can you check if it fixes this?
Submitted by aabouzaid on Sun, 05/03/2015 - 14:06 Comment #9
Thanks a lot Jamie, I will update to new version and inform you with result.