[jira] [Commented] (CLOUDSTACK-7654) createtmplt.sh (invoked by cloud-install-sys-tmplt) is not able to seed zipped templates
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14161569#comment-14161569 ] ASF subversion and git services commented on CLOUDSTACK-7654: - Commit 67ff7dac8290560715629241e09fe9fb0359c990 in cloudstack's branch refs/heads/master from [~rajesh_battala] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=67ff7da ] CLOUDSTACK-7654 fixed issues with zip format templates. 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)
[jira] [Commented] (CLOUDSTACK-7654) createtmplt.sh (invoked by cloud-install-sys-tmplt) is not able to seed zipped templates
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14153057#comment-14153057 ] Rajesh Battala commented on CLOUDSTACK-7654: root cause: case matching issue while finding the file type for zipped file 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)
[jira] [Commented] (CLOUDSTACK-7654) createtmplt.sh (invoked by cloud-install-sys-tmplt) is not able to seed zipped templates
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14153052#comment-14153052 ] Rajesh Battala commented on CLOUDSTACK-7654: This issue is reproducible when user tries to register the .zip file and try to create the instance from the template. 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)