I have seen this behaviour sometimes on Solaris. It might be worth to add
exec_timeout to the promise.
bundle agent remote_promises
{
commands:
CF_RA_ADMIN::
"/usr/bin/date"
contain => timeout_after_a_min;
}
body contain timeout_after_a_min {
exec_timeout => "60";
}
Cheers,
--Nakarin
On Aug 3, 2010, at 2:27 PM, Lamballais Gildas wrote:
> Hi,
>
> On SunOS 5.8 server, when I try to kept some commands promise, it seems that
> timeout makes some noise …
>
> Sometimes it works :
> cf3 -> cf3 Promise handle:
> cf3 -> cf3 Promise made by: /usr/bin/date
> cf3 -> cf3 .........................................................
> cf3 -> cf3
> cf3 -> cf3 -> Executing '/usr/bin/date' ...(timeout=-678,owner=-1,group=-1)
> cf3 -> cf3 -> (Setting umask to 77)
> cf3 -> cf3 cf3: Time out
> cf3 -> cf3 -> Finished script - succeeded /usr/bin/date
> cf3 -> cf3 Q: "...r/bin/date": Tue Aug 3 14:18:48 MEST 2010
> cf3 -> cf3 I: Last 1 QUOTEed lines were generated by promiser "/usr/bin/date"
> cf3 -> cf3 I: Report relates to a promise with handle ""
> cf3 -> cf3 -> Completed execution of /usr/bin/date
>
> Sometimes, it does not:
> cf3 -> cf3 -> Executing '/usr/bin/date' ...(timeout=-678,owner=-1,group=-1)
> cf3 -> cf3 -> (Setting umask to 77)
> cf3 -> cf3 Time out of process 28084
> cf3 -> cf3 Command pipe /usr/bin/date
> cf3 -> cf3 !!! System reports error for ferror: "Interrupted system call"
> cf3 -> cf3 I: Report relates to a promise with handle ""
> cf3 -> cf3 Received signal 2 (SIGINT) while doing
> [lock.remote_promises.commands.._usr_bin_date_4554_MD5=631414a70ed7f29173d7a8e95695a492]
> cf3 -> cf3 Logical start time Tue Aug 3 14:23:09 2010
> cf3 -> cf3 This sub-task started really at Tue Aug 3 14:23:12 2010
> cf3 -> cf3 Trying to remove lock - try
> lock.remote_promises.commands.._usr_bin_date_4554_MD5=631414a70ed7f29173d7a8e95695a492
>
> and I’ve got some defunct process on the server:
> 27911 /var/cfengine/bin/cf-agent -v --inform -DCF_RA_ADMIN
> 27921 <defunct>
>
> Here is the simple bundle agent :
> bundle agent remote_promises
> {
>
> commands:
> CF_RA_ADMIN::
> "/usr/bin/date";
>
> }
>
> Could you help?
>
> Gildas
>
>
>
> Ce message et les pièces jointes sont confidentiels et réservés à l'usage
> exclusif de ses destinataires. Il peut également être protégé par le secret
> professionnel. Si vous recevez ce message par erreur, merci d'en avertir
> immédiatement l'expéditeur et de le détruire. L'intégrité du message ne
> pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne
> pourra être recherchée quant au contenu de ce message. Bien que les meilleurs
> efforts soient faits pour maintenir cette transmission exempte de tout virus,
> l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne
> saurait être recherchée pour tout dommage résultant d'un virus transmis.
>
> This e-mail and the documents attached are confidential and intended solely
> for the addressee; it may also be privileged. If you receive this e-mail in
> error, please notify the sender immediately and destroy it. As its integrity
> cannot be secured on the Internet, the Atos Origin group liability cannot be
> triggered for the message content. Although the sender endeavours to maintain
> a computer virus-free network, the sender does not warrant that this
> transmission is virus-free and will not be liable for any damages resulting
> from any virus transmitted.
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine