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

cf-serverd stops auto reloading policy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.3
    • Component/s: None
    • Labels:
      None

      Description

      After a patch from https://cfengine.com/dev/issues/3479, cf-serverd reloads policy nicely every 60s

      The weird thing is it suddenly stops to reload policy for some reason and usually happen acting up once HUB:cf-hub deamon starts talking to CLIENT:cf-serverd

      192.168.2.55 = HUB

      <pre>

      1. Client
        2013-11-29T11:12:31+0100 verbose: USERS 'root'
        2013-11-29T11:12:31+0100 verbose: Host IPs from NAT which we don't verify:
        2013-11-29T11:12:31+0100 verbose: IP '.*example.com'
        2013-11-29T11:12:31+0100 verbose: IP '127.0.0.1'
        2013-11-29T11:12:31+0100 verbose: IP '::1'
        2013-11-29T11:12:31+0100 verbose: IP '192.168.2.55/16'
        2013-11-29T11:15:33+0100 verbose: Accepting a connection
        2013-11-29T11:15:33+0100 verbose: Obtained IP address of '::ffff:192.168.2.55' on socket 7 from accept
        2013-11-29T11:15:33+0100 info: Accepting connection from '::ffff:192.168.2.55'
        2013-11-29T11:15:33+0100 verbose: New connection...(from ::ffff:192.168.2.55:sd 7)
        2013-11-29T11:15:33+0100 verbose: Spawning new thread...
        </pre>

      If you try to change policy in /var/cfengine/inputs/def.cf adding more subnets, it should reload in a minute but it is frozen like this. Updating policy and Keeping running it for 30 minutes only connections from HUB:cf-hub displayed.

      No tunnels are held by both processes.

      <pre>

      1. HUB
        hub55:/var/cfengine/masterfiles # ps ef | grep -v grep | grep cf
        root 15602 1 0 Nov28 ? 00:00:30 /var/cfengine/bin/cf-hub
        root 15615 1 0 Nov28 ? 00:00:13 /var/cfengine/bin/cf-execd
        root 15625 1 0 Nov28 ? 00:03:40 /var/cfengine/bin/cf-serverd
        root 15631 1 0 Nov28 ? 00:00:35 /var/cfengine/bin/cf-monitord
        hub55:/var/cfengine/masterfiles # netstat natp | grep cf
        tcp 0 0 0.0.0.0:5308 0.0.0.0:* LISTEN 15625/cf-serverd
      2. Client
        client64:~ # ps ef | grep -v grep | grep cf
        root 1626 1 0 Nov27 ? 00:00:22 /var/cfengine/bin/cf-execd
        root 1656 1 0 Nov27 ? 00:00:54 /var/cfengine/bin/cf-monitord
        root 23728 23608 0 11:44 pts/1 00:00:00 gdb /var/cfengine/bin/cf-serverd
        root 24125 23728 0 12:04 pts/1 00:00:02 /var/cfengine/bin/cf-serverd -v
        client64:~ # netstat natp | grep cf
        tcp 0 0 0.0.0.0:5308 0.0.0.0:* LISTEN 24125/cf-serverd
        </pre>

      I don't know what is going on here. Please advice.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                a10005 Nakarin Phooripoom (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel