[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13969593#comment-13969593
 ] 

Srikanteswararao Talluri edited comment on CLOUDSTACK-6416 at 4/15/14 2:58 PM:
-------------------------------------------------------------------------------

There is a problem with 
tools/appliance/definitions/systemvmtemplate64/postinstall.sh

which gets cloudstack.tar.gz as below

  
snapshot_url="https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=snapshot;h=HEAD;sf=tgz

which fetches latest master. However, 4.2 branch has a different directory 
structure than master branch. Hence, postinstall.sh script is failing to 
include scripts in cloud-scripts.tar

In 4.2: systemvm files are placed under patches folder
cd patches/systemvm/debian/config
Srikanteswararaos-MacBook-Air:config talluri$ ls
etc     opt     root    var

In master: systemvm files are directly placed under root

 cd systemvm/patches/debian/config
Srikanteswararaos-MacBook-Air:config talluri$ ls
etc     opt     root    var

This issue can be fixed by fetching appropriate branch snapshot rather than 
from the latest one.
snapshot_url="https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=snapshot;h=4.2;sf=tgz




was (Author: talluri):
There is a problem with 
tools/appliance/definitions/systemvmtemplate64/postinstall.sh

which gets cloudstack.tar.gz as below

  
snapshot_url="https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=snapshot;h=HEAD;sf=tgz

which fetches latest master. However, 4.2 branch has a different directory 
structure than master branch. Hence, postinstall.sh script is failing to 
include scripts in cloud-scripts.tar

This issue can be fixed by fetching appropriate branch snapshot rather than 
from the latest one.
snapshot_url="https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=snapshot;h=4.2;sf=tgz

Will push this change in a while

> Missing cloud-scripts in systemvm template built from 4.2 branch
> ----------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6416
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6416
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: SystemVM
>    Affects Versions: 4.2.0
>         Environment: 4.2 systemvm template
>            Reporter: Sateesh Chodapuneedi
>            Assignee: Srikanteswararao Talluri
>            Priority: Blocker
>
> cloud-scripts.tar is not built properly with scripts. It was filled up with 
> source code of cloudstack project from ACS git repository. 
> While building systemvm template, in postinstall.sh file, cloudstack source 
> would be downloaded from ACS git repository and patching scripts would be 
> bundled as cloud-scripts.tar after extracting cloudstack source tar ball. 
> Untar operation of source tar ball failed with error "no space left on 
> device". Build script is not failing at this point but this is resulting in 
> mal-formed cloud-scripts.tar.
> cloudstack-HEAD-2a02369/awsapi/src/com/amazon/ec2/DescribeConversionTasksType.java
> tar: /usr/share/cloud/cloud-scripts.tar: Cannot write: No space left on device
> tar: Error is not recoverable: exiting now
> ++ cd /opt
> ++ rm -fr /opt/cloudstack-HEAD-2a02369 /opt/cloudstack.tar.gz 
> cloudstack.tar.gz
> ++ chkconfig --add cloud-early-config
> cloud-early-config: unknown service
> ++ chkconfig cloud-early-config on
> cloud-early-config: unknown service
> ++ chkconfig --add cloud-passwd-srvr
> cloud-passwd-srvr: unknown service
> ++ chkconfig cloud-passwd-srvr off
> cloud-passwd-srvr: unknown service
> ++ chkconfig --add cloud
> cloud: unknown service
> ++ chkconfig cloud off
> cloud: unknown service
> Downloaded system vm template generated by jenkins from 
> http://jenkins.buildacloud.org/view/4.2/job/build-systemvm-4.2/



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to