Comment 6 for bug 1472675

Revision history for this message
Vasyl Saienko (vsaienko) wrote :

It seems that puppet can't find command and failed at the same second, when it is called.
otherwise if first iteration is failed there should be sleep for 60 seconds

'service apache2 stop || sleep 60 && service apache2 stop'

2015-08-05 02:08:24 +0000 Puppet (debug): Executing '/etc/init.d/apache2 status'
2015-08-05 02:08:24 +0000 Puppet (debug): Executing '/etc/init.d/apache2 status'
2015-08-05 02:08:24 +0000 Puppet (debug): Executing 'service apache2 stop || sleep 60 && service apache2 stop'
2015-08-05 02:08:24 +0000 /Stage[main]/Apache::Service/Service[httpd] (err): Failed to call refresh: Could not stop Service[httpd]: Execution of 'service apache2 stop || sleep 60 && service apache2 stop' returned 1:
2015-08-05 02:08:24 +0000 /Stage[main]/Apache::Service/Service[httpd] (err): Could not stop Service[httpd]: Execution of 'service apache2 stop || sleep 60 && service apache2 stop' returned 1:

[Wed Aug 05 02:08:17.843851 2015] [core:notice] [pid 3108:tid 139876821706624] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 05 02:08:24.625869 2015] [mpm_worker:notice] [pid 3108:tid 139876821706624] AH00295: caught SIGTERM, shutting down
[Wed Aug 05 02:08:43.956296 2015] [mpm_worker:notice] [pid 7642:tid 140534070359936] AH00292: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations

https://paste.mirantis.net/show/863/