GitHub user monish07022 added a comment to the discussion: Cloudstack Agent 
Alert state

No, Actually it was not there. only old version template is present in apache 
cloudstack. if cloudstack or me manually try to upload a template it is stuck 
in "Copying to 
/mnt/nfs/template/tmpl/1/236//d5cd97a4-037f-4ebe-bbcb-94b7e13e6087.qcow2...could
 take a while"

Logs from cloudstack : it is stucks here.

2026-02-05 10:36:24,510 WARN  [c.c.u.SystemVmTemplateRegistration] 
(qtp1404565079-2731:[ctx-f69ce394, ctx-d6925c2b]) (logid:27634cc2) Process 
[1922174] for command 
[/usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt -u 
d5cd97a4-037f-4ebe-bbcb-94b7e13e6087 -f 
/usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.20.2-x86_64-kvm.qcow2.bz2
 -h kvm -d /tmp/tmp1685831472559745145/template/tmpl/1/236 ] timed out. Output 
is [+ [[ ! -u d5cd97a4-037f-4ebe-bbcb-94b7e13e6087 -f 
/usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.20.2-x86_64-kvm.qcow2.bz2
 -h kvm -d /tmp/tmp1685831472559745145/template/tmpl/1/236 =~ ^-.+ ]]+ 
OPTERR=0+ DISKSPACE=2120000+ getopts h:f:d:u::# OPTION+ case $OPTION in+ 
uflag=1+ uuid=d5cd97a4-037f-4ebe-bbcb-94b7e13e6087+ getopts h:f:d:u::# OPTION+ 
case $OPTION in+ fflag=1+ 
tmpltimg=/usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.20.2-x86_64-kvm.qcow2.bz2+
 getopts h:f:d:u::# OPTION+ case $OPT
 ION in+ hyper=kvm+ getopts h:f:d:u::# OPTION+ case $OPTION in+ 
destdir=/tmp/tmp1685831472559745145/template/tmpl/1/236+ getopts h:f:d:u::# 
OPTION+ [[ kvm == \k\v\m ]]+ ext=qcow2++ which qemu-img+ 
qemuimgcmd=/usr/bin/qemu-img+ 
localfile=d5cd97a4-037f-4ebe-bbcb-94b7e13e6087.qcow2+ sudo mkdir -p 
/tmp/tmp1685831472559745145/template/tmpl/1/236+ [[ 0 -ne 0 ]]+ [[ -f 
/tmp/tmp1685831472559745145/template/tmpl/1/236/template.properties ]]++ sudo 
find /tmp/tmp1685831472559745145/template/tmpl/1/236 -name '*.qcow2'+ 
destfiles=+ [[ '' != '' ]]+ tmpfolder=/tmp/cloud/templates/+ mkdir -p 
/tmp/cloud/templates/+ 
tmplfile=/tmp/cloud/templates//d5cd97a4-037f-4ebe-bbcb-94b7e13e6087.qcow2+ 
touch /tmp/cloud/templates//d5cd97a4-037f-4ebe-bbcb-94b7e13e6087.qcow2+ [[ 0 
-ne 0 ]]++ sudo df -P /tmp/tmp1685831472559745145/template/tmpl/1/236++ awk 
'{print $4}'++ tail -1+ destcap=2761924608+ '[' 2761924608 -lt 2120000 ']'++ df 
-P /tmp/cloud/templates/++ awk '{print $4}'++ tail -1+ localcap=49683108+ '[' 
496831
 08 -lt 2120000 ']'+ [[ 1 == \1 ]]+ sudo cp 
/usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.20.2-x86_64-kvm.qcow2.bz2
 /tmp/cloud/templates//d5cd97a4-037f-4ebe-bbcb-94b7e13e6087.qcow2+ [[ 0 -ne 0 
]]+++ dirname 
/usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt++ 
/usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh -s 2 -d 
'SystemVM Template ( kvm )' -n d5cd97a4-037f-4ebe-bbcb-94b7e13e6087.qcow2 -t 
/tmp/tmp1685831472559745145/template/tmpl/1/236/ -f 
/tmp/cloud/templates//d5cd97a4-037f-4ebe-bbcb-94b7e13e6087.qcow2 -u -v 
-cUncompressing to 
/tmp/cloud/templates//d5cd97a4-037f-4ebe-bbcb-94b7e13e6087.qcow2.tmp (type 
bz2)...could take a long timeCopying to 
/tmp/tmp1685831472559745145/template/tmpl/1/236//d5cd97a4-037f-4ebe-bbcb-94b7e13e6087.qcow2...could
 take a while].


GitHub link: 
https://github.com/apache/cloudstack/discussions/12569#discussioncomment-15704740

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to