cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Battala (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-7654) (invoked by cloud-install-sys-tmplt) is not able to seed zipped templates
Date Tue, 30 Sep 2014 10:48:33 GMT


Rajesh Battala commented on CLOUDSTACK-7654:

root cause: case matching issue while finding the file type for zipped file

> (invoked by cloud-install-sys-tmplt) is not able to seed zipped templates
> ----------------------------------------------------------------------------------------
>                 Key: CLOUDSTACK-7654
>                 URL:
>             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 -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 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

View raw message