Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Best way to gracefully stop cfengine daemons? Author: msvob...@linkedin.com Link to topic: https://cfengine.com/forum/read.php?3,18070,18113#msg-18113
I have verify => true set in my remote_copy copy_from promise. body copy_from remote_copy(sourcedir,sourceserver) { source => "$(sourcedir)"; servers => { "$(sourceserver)" }; copy_backup => "true"; purge => "true"; trustkey => "true"; compare => "digest"; encrypt => "true"; verify => "true"; } Even with verify set, a client got wacked this morning by a bad data transfer from cf-serverd. Here's the output of cf-execd on the client. Was not able to copy /var/cfengine/masterfiles/generic_cf-agent_policies/config-general/group_manifests_acct_manager/acct-manager.sysops.manifest to /var/cfengine/inputs/config-general/group_manifests_acct_manager/acct-manager.sysops.manifest I: Made in version 'not specified' of '/var/cfengine/inputs/update.cf' near line 58 !! Transmission refused or failed statting /var/cfengine/masterfiles/generic_cf-agent_policies/config-general/group_manifests_acct_manager/acct-manager.qa.manifest Got: !! Transmission refused or failed statting /var/cfengine/masterfiles/cf-agent_modules/%∑t+Óiçláèrõ˛Õ7†...@†j ƒÁcwz´¿≥äfl‹£=êˆòëy‚Ä‹yjâ�...@ut) Got: (Plug-in module /var/cfengine/modules/module_machine_type not found) (Plug-in module /var/cfengine/modules/module_site_env not found) (Plug-in module /var/cfengine/modules/module_public_nic not found) (Plug-in module /var/cfengine/modules/module_determine_hw_chassis not found) So, my /var/cfengine/modules directory was ruined on the client because of the bad transfer. This caused cf-agent to fail, because I rely on executing modules in promises.cf to define classes... Should I bet setting purge to false? Shouldn't cf-agent only be replacing the file "after" a network transfer has happened? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine