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

service_policy => "restart" not working

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: Promise type: services
    • Labels:
      None
    • Found in version (details):
      3.5.0b2.2bacbf4

      Description

      I have a test policy that uses the services promise with service_policy => "restart"; (the policy is attached)

      This is according to documentation on the services promises (https://cfengine.com/manuals/cf3-Reference#service_005fpolicy-in-services)

      The result of this policy is:

      <pre>

      1. /var/cfengine/bin/cf-agent -K -f /tmp/test.cf
        !! Invalid service policy for service "ip6tables"
        Promise belongs to bundle 'test' in file '/tmp/test.cf' near line 9
        !! Invalid service policy for service "ip6tables"
        Promise belongs to bundle 'test' in file '/tmp/test.cf' near line 9
        !! Invalid service policy for service "ip6tables"
        Promise belongs to bundle 'test' in file '/tmp/test.cf' near line 9
        </pre>

      service_policy is clearly allowed according to documentation, but seems to be rejected by cf-agent.

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                a10007 Jon Henrik Bjørnstad
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support

                    Summary Panel