Rajesh Battala created CLOUDSTACK-7654:
------------------------------------------
Summary: createtmplt.sh (invoked by cloud-install-sys-tmplt) is
not able to seed zipped templates
Key: CLOUDSTACK-7654
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7654
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Install and Setup
Affects Versions: 4.5.0
Reporter: Rajesh Battala
Assignee: Rajesh Battala
Priority: Critical
Fix For: 4.5.0
I tried to seed the hyper-v template which is now in zipped format and the
script seems to be failing to do the same although there is no explicit error
message.
Template used : from jenkins job
Steps:
=====
1. Mount the secondary storage in a local mount point
2. Seed the system vm template using
/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
"/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
-m /temp -u
http://10.102.192.128/templates/systemvm64template-master-hyperv.vhd.zip -h
hyperv"
3. Verify after the set up is brought up
Result
=====
System VMs fail to come up since the system vm template in the secondary
storage is corrupted. Following is the error message from Hyper-V install:
"Failed to open attachment
'\\smb19\hyperv-share\sowmya-ps1\9e5ee642-ce2a-44fc-bb65-690936634b0f.vhd'.
Error: 'The file or directory is corrupted and unreadable"
The cloud-install-sys-tmplt seems to invoke the createtmplt.sh script to
uncompress and copy the template to secondary storage. But is probably failing
to uncompress.
While executing the script, I get the following message which implies that it
is failing to uncompress the zipped file:
"File
/usr/share/cloudstack-common/scripts/storage/secondary/2618f45e-c2fc-445b-81cd-b93906d23dda.vhd
does not appear to be compressed"
Further, when we manually unzip the above zipped template file and launch a VM
from the unzipped vhd, it launches the VM properly. This implies that it is
either not un compressed or somewhere corrupting the file before copying over
to the secondary storage.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)