bwsw removed a comment on issue #3838: CS 4.11.2+ SSVM bug when scanning templates URL: https://github.com/apache/cloudstack/issues/3838#issuecomment-578468905 I implemented a workaround in: `/usr/local/cloud/systemvm/scripts/storage/secondary/listvmtmplt.sh` ``` if [ -f $rootdir/template.cache ] then cat $rootdir/template.cache exit 0 fi ``` and build the cache manually on the SSVM from outside (on the storage with the same script in CRON). So, looks like when `listvmtmplt.sh` is run for a long it's killed... ``` root@cs2-secstorage-nfs1:/etc/cron.5min# cat ssvm-workaround-fixit #!/bin/bash REALDIR=/secondary/template/tmpl/ DIR=$(cat /secondary/template/tmpl/location.systemprefix) /opt/bin/listvmtmplt.sh -r $REALDIR | sed "s#$REALDIR#$DIR#g" > /secondary/template/tmpl/template.cache.tmp cp /secondary/template/tmpl/template.cache.tmp /secondary/template/tmpl/template.cache ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
