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

Init script fails to stop/restart cf3 deamons on openvz/lxc hosts (copy of 921)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.6
    • Labels:
      None

      Description

      This is a copy of the ticket https://cfengine.com/bugtracker/view.php?id=921

      ps -a on Openvz and LXC hosts shows the process list of both the host, and any vm's that host is running. So if you run cfengine in your containers (vm's) and also on the bare metal host, you see multiple copies of cf-execd et al running on the host.

      This breaks /etc/init.d/cfengine pretty seriously, in that "status" returns "is running" if the relevant daemon is running in any of the containers, and it can be a lottery which daemon gets stopped when you run "stop".

      If you add -f to the ps call, then the tree shows you the extra processes indented:

      root@hq-srv01:/var/cfengine# ps axf | grep cf-e
      345785 pts/6 S+ 0:00 _ grep cf-e
      344158 ? Ss 0:00 _ /var/cfengine/bin/cf-execd
      343713 ? Ss 0:00 _ /var/cfengine/bin/cf-execd
      345623 ? Ss 0:00 _ /var/cfengine/bin/cf-execd
      344430 ? Ss 0:00 _ /var/cfengine/bin/cf-execd
      201685 ? Ss 0:00 /var/cfengine/bin/cf-execd

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                ncharles Nicolas Charles
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel