rohityadavcloud commented on issue #6060: URL: https://github.com/apache/cloudstack/issues/6060#issuecomment-1059728039
This is output of command shared by Wei: ``` > bash -x engine/schema/templateConfig.sh 4.16.1.0 + declare -A templates engine/schema/templateConfig.sh: line 71: declare: -A: invalid option declare: usage: declare [-afFirtx] [-p] [name[=value] ...] + getTemplateVersion 4.16.1.0 + projVersion=4.16.1.0 ++ cut -d- -f1 + version=4.16.1.0 ++ cut -d. -f1 + subversion1=4 ++ cut -d. -f2 + subversion2=16 ++ cut -d. -f3 + minorversion=1 ++ cut -d. -f4 + securityversion=0 + export CS_VERSION=4.16 + CS_VERSION=4.16 + export CS_MINOR_VERSION=1 + CS_MINOR_VERSION=1 + export VERSION=4.16.1 + VERSION=4.16.1 + templates=(["kvm"]="https://download.cloudstack.org/systemvm/${CS_VERSION}/systemvmtemplate-$VERSION-kvm.qcow2.bz2" ["vmware"]="https://download.cloudstack.org/systemvm/${CS_VERSION}/systemvmtemplate-$VERSION-vmware.ova" ["xenserver"]="https://download.cloudstack.org/systemvm/$CS_VERSION/systemvmtemplate-$VERSION-xen.vhd.bz2" ["hyperv"]="https://download.cloudstack.org/systemvm/$CS_VERSION/systemvmtemplate-$VERSION-hyperv.vhd.zip" ["lxc"]="https://download.cloudstack.org/systemvm/$CS_VERSION/systemvmtemplate-$VERSION-kvm.qcow2.bz2" ["ovm3"]="https://download.cloudstack.org/systemvm/$CS_VERSION/systemvmtemplate-$VERSION-ovm.raw.bz2") +++ dirname engine/schema/templateConfig.sh ++ cd -- engine/schema ++ pwd -P + PARENTPATH=/Users/rohit/lab/apache/cloudstack/engine/schema/dist/systemvm-templates/ + mkdir -p /Users/rohit/lab/apache/cloudstack/engine/schema/dist/systemvm-templates/ + METADATAFILE=/Users/rohit/lab/apache/cloudstack/engine/schema/dist/systemvm-templates/metadata.ini + echo + SOURCEFILE=/Users/rohit/lab/apache/cloudstack/engine/schema/dist/systemvm-templates/md5sum.txt + createMetadataFile ++ cat /Users/rohit/lab/apache/cloudstack/engine/schema/dist/systemvm-templates/md5sum.txt + local 'fileData=88fe0da9ebaa27d710af708131b9bf32 systemvmtemplate-4.16.0-hyperv.vhd.zip 2f3747a597396d4ee6a2605648808d1a systemvmtemplate-4.16.0-kvm.qcow2.bz2 38f84087c5d96548c50a2b52a2856fef systemvmtemplate-4.16.0-ovm.raw.bz2 606db78c5d138e96d53b4699e77789b2 systemvmtemplate-4.16.0-vmware.ova 6015c93583c7388e6b3e0e7bc6e3517c systemvmtemplate-4.16.0-xen.vhd.bz2 2d21855fe179a7ce214ffc46c77fac8d systemvmtemplate-4.16.1-hyperv.vhd.zip 5108eeb0547912a41cb2bc508985f89f systemvmtemplate-4.16.1-kvm.qcow2.bz2 d889b6e490018360f93e54240d74bf93 systemvmtemplate-4.16.1-ovm.raw.bz2 f55d3b858b708f3103660d83021cb702 systemvmtemplate-4.16.1-vmware.ova 3ccf327c1b0a9c96c506547bf1a6869a systemvmtemplate-4.16.1-xen.vhd.bz2' + echo -e '[default]\nversion = 4.16.1.0\n' + for i in '"${!templates[@]}"' + section=0 ++ getGenericName 0 +++ echo 0 +++ tr '[:upper:]' '[:lower:]' ++ hypervisor=0 ++ [[ 0 == \o\v\m\3 ]] ++ [[ 0 == \l\x\c ]] ++ [[ 0 == \x\e\n\s\e\r\v\e\r ]] ++ echo 0 + hvName=0 + templatename=systemvm-0-4.16.1 ++ getChecksum '88fe0da9ebaa27d710af708131b9bf32 systemvmtemplate-4.16.0-hyperv.vhd.zip 2f3747a597396d4ee6a2605648808d1a systemvmtemplate-4.16.0-kvm.qcow2.bz2 38f84087c5d96548c50a2b52a2856fef systemvmtemplate-4.16.0-ovm.raw.bz2 606db78c5d138e96d53b4699e77789b2 systemvmtemplate-4.16.0-vmware.ova 6015c93583c7388e6b3e0e7bc6e3517c systemvmtemplate-4.16.0-xen.vhd.bz2 2d21855fe179a7ce214ffc46c77fac8d systemvmtemplate-4.16.1-hyperv.vhd.zip 5108eeb0547912a41cb2bc508985f89f systemvmtemplate-4.16.1-kvm.qcow2.bz2 d889b6e490018360f93e54240d74bf93 systemvmtemplate-4.16.1-ovm.raw.bz2 f55d3b858b708f3103660d83021cb702 systemvmtemplate-4.16.1-vmware.ova 3ccf327c1b0a9c96c506547bf1a6869a systemvmtemplate-4.16.1-xen.vhd.bz2' 4.16.1-0 ++ local 'fileData=88fe0da9ebaa27d710af708131b9bf32 systemvmtemplate-4.16.0-hyperv.vhd.zip 2f3747a597396d4ee6a2605648808d1a systemvmtemplate-4.16.0-kvm.qcow2.bz2 38f84087c5d96548c50a2b52a2856fef systemvmtemplate-4.16.0-ovm.raw.bz2 606db78c5d138e96d53b4699e77789b2 systemvmtemplate-4.16.0-vmware.ova 6015c93583c7388e6b3e0e7bc6e3517c systemvmtemplate-4.16.0-xen.vhd.bz2 2d21855fe179a7ce214ffc46c77fac8d systemvmtemplate-4.16.1-hyperv.vhd.zip 5108eeb0547912a41cb2bc508985f89f systemvmtemplate-4.16.1-kvm.qcow2.bz2 d889b6e490018360f93e54240d74bf93 systemvmtemplate-4.16.1-ovm.raw.bz2 f55d3b858b708f3103660d83021cb702 systemvmtemplate-4.16.1-vmware.ova 3ccf327c1b0a9c96c506547bf1a6869a systemvmtemplate-4.16.1-xen.vhd.bz2' ++ local hvName=4.16.1-0 ++ IFS= ++ read -r line ++ [[ 88fe0da9ebaa27d710af708131b9bf32 systemvmtemplate-4.16.0-hyperv.vhd.zip == *\4\.\1\6\.\1\-\0* ]] ++ IFS= ++ read -r line ++ [[ 2f3747a597396d4ee6a2605648808d1a systemvmtemplate-4.16.0-kvm.qcow2.bz2 == *\4\.\1\6\.\1\-\0* ]] ++ IFS= ++ read -r line ++ [[ 38f84087c5d96548c50a2b52a2856fef systemvmtemplate-4.16.0-ovm.raw.bz2 == *\4\.\1\6\.\1\-\0* ]] ++ IFS= ++ read -r line ++ [[ 606db78c5d138e96d53b4699e77789b2 systemvmtemplate-4.16.0-vmware.ova == *\4\.\1\6\.\1\-\0* ]] ++ IFS= ++ read -r line ++ [[ 6015c93583c7388e6b3e0e7bc6e3517c systemvmtemplate-4.16.0-xen.vhd.bz2 == *\4\.\1\6\.\1\-\0* ]] ++ IFS= ++ read -r line ++ [[ 2d21855fe179a7ce214ffc46c77fac8d systemvmtemplate-4.16.1-hyperv.vhd.zip == *\4\.\1\6\.\1\-\0* ]] ++ IFS= ++ read -r line ++ [[ 5108eeb0547912a41cb2bc508985f89f systemvmtemplate-4.16.1-kvm.qcow2.bz2 == *\4\.\1\6\.\1\-\0* ]] ++ IFS= ++ read -r line ++ [[ d889b6e490018360f93e54240d74bf93 systemvmtemplate-4.16.1-ovm.raw.bz2 == *\4\.\1\6\.\1\-\0* ]] ++ IFS= ++ read -r line ++ [[ f55d3b858b708f3103660d83021cb702 systemvmtemplate-4.16.1-vmware.ova == *\4\.\1\6\.\1\-\0* ]] ++ IFS= ++ read -r line ++ [[ 3ccf327c1b0a9c96c506547bf1a6869a systemvmtemplate-4.16.1-xen.vhd.bz2 == *\4\.\1\6\.\1\-\0* ]] ++ IFS= ++ read -r line + checksum= + downloadurl=https://download.cloudstack.org/systemvm/4.16/systemvmtemplate-4.16.1-ovm.raw.bz2 ++ echo systemvmtemplate-4.16.1-ovm.raw.bz2 + filename=systemvmtemplate-4.16.1-ovm.raw.bz2 + echo -e '[0]\ntemplatename = systemvm-0-4.16.1\nchecksum = \ndownloadurl = https://download.cloudstack.org/systemvm/4.16/systemvmtemplate-4.16.1-ovm.raw.bz2\nfilename = systemvmtemplate-4.16.1-ovm.raw.bz2\n' ``` It appears the bash script is not platform agnostic. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
