Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-876

ignore_missing_inputs triggers cf-promises -c run very often

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.3
    • Component/s: cf-promises
    • Labels:
      None

      Description

      When you set ignore_missing_inputs => "true"; and the inputs files are not presented, cf-promises -c will be running very very often (every 2-3 seconds roughly) which is pretty bad. Also it keep updating cf_promises_validated in masterfiles directory so client nodes will try to sync up policy every time cf-agent runs.

      <pre>
      root@d70amd64hub:~# ps -ef | grep -v grep | grep cf-pro
      root 1502 12711 0 11:29 ? 00:00:00 sh -c "/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"
      root 1503 1502 63 11:29 ? 00:00:00 /var/cfengine/bin/cf-promises -c /var/cfengine/inputs/promises.cf
      root 1507 12701 0 11:29 ? 00:00:00 sh -c "/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"
      root 1508 1507 0 11:29 ? 00:00:00 /var/cfengine/bin/cf-promises -c /var/cfengine/inputs/promises.cf
      root@d70amd64hub:~# ps -ef | grep -v grep | grep cf-pro
      root@d70amd64hub:~# ps -ef | grep -v grep | grep cf-pro
      root 1532 12711 0 11:29 ? 00:00:00 sh -c "/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"
      root 1534 1532 0 11:29 ? 00:00:00 /var/cfengine/bin/cf-promises -c /var/cfengine/inputs/promises.cf
      root@d70amd64hub:~# ps -ef | grep -v grep | grep cf-pro
      root@d70amd64hub:~# ps -ef | grep -v grep | grep cf-pro
      root 1547 12711 0 11:29 ? 00:00:00 sh -c "/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"
      root 1548 1547 0 11:29 ? 00:00:00 /var/cfengine/bin/cf-promises -c /var/cfengine/inputs/promises.cf
      root@d70amd64hub:~# ps -ef | grep -v grep | grep cf-pro
      root@d70amd64hub:~# ps -ef | grep -v grep | grep cf-pro
      root 1561 12711 0 11:29 ? 00:00:00 sh -c "/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"
      root 1562 1561 0 11:29 ? 00:00:00 /var/cfengine/bin/cf-promises -c /var/cfengine/inputs/promises.cf
      root@d70amd64hub:~# ps -ef | grep -v grep | grep cf-pro
      root@d70amd64hub:~# ps -ef | grep -v grep | grep cf-pro
      root 1579 12711 0 11:29 ? 00:00:00 sh -c "/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"
      root 1580 1579 39 11:29 ? 00:00:00 /var/cfengine/bin/cf-promises -c /var/cfengine/inputs/promises.cf
      </pre>

      <pre>
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:00 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:00 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:03 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:03 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:03 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:03 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:05 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:05 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:05 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:05 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:05 2013
      root@d70amd64hub:~# cat /var/cfengine/masterfiles/cf_promises_validated && echo
      Thu Sep 5 05:27:08 2013
      </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10025 Volker Hilsheimer (Inactive)
                Reporter:
                a10005 Nakarin Phooripoom (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel