----- On Oct 23, 2020, at 7:11 AM, Andrei Borzenkov arvidj...@gmail.com wrote:
>> >> ocf_log info "Issuing forced shutdown (destroy) request for domain >> ${DOMAIN_NAME}." >> out=$(LANG=C virsh $VIRSH_OPTIONS destroy ${DOMAIN_NAME} 2>&1) >> ex=$? >> sleep (10) <============================ (or maybe configurable) >> translate=$(echo $out|tr 'A-Z' 'a-z') >> >> >> What do you think ? >> > > > It makes no difference. You wait 10 seconds before parsing output of > "virsh destroy", that's all. It does not change output itself, so if > output indicates that "virsh destroy" failed, it will still indicate > that after 10 seconds. > > Either you need to repeat "virsh destroy" in a loop, or virsh itself > should be more robust. Hi Andrei, yes, you are right. I saw it alread after sending the E-Mail. I will change that. Bernd Helmholtz Zentrum München Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671 _______________________________________________ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/