Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-8695

Service resource on Windows should handle dependent services.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • Acceptance Criteria:
      Hide

      ensure => stopped or a refresh notification will be able to:

      • Recursively find services that are dependent on the service you want to stop.
      • Stop the dependent services in the correct order
      • Keep track of any services that were stopped that also have a startup type of manual, and the order in which they were stopped
      • Stop or call restart on the primary service

      For restarts only:

      • Should then call start on any services with a manual startup type, that were shut down by the currently running task. It should not restart all dependent services, only those that were earlier shut down by this task run and that will not automatically restart themselves as needed.

      The user should be able to explicitly state whether they want dependent services to be restarted in this fashion, or simply fail using a parameter. The default should be to fail to stop the service and return to the user enough information to reason about which services will be stopped and restarted if they choose to use that parameter and restart the dependent services.

      Show
      ensure => stopped or a refresh notification will be able to: Recursively find services that are dependent on the service you want to stop. Stop the dependent services in the correct order Keep track of any services that were stopped that also have a startup type of manual, and the order in which they were stopped Stop or call restart on the primary service For restarts only: Should then call start on any services with a manual startup type, that were shut down by the currently running task. It should not restart all dependent services, only those that were earlier shut down by this task run and that will not automatically restart themselves as needed. The user should be able to explicitly state whether they want dependent services to be restarted in this fashion, or simply fail using a parameter. The default should be to fail to stop the service and return to the user enough information to reason about which services will be stopped and restarted if they choose to use that parameter and restart the dependent services.
    • QA Risk Assessment:
      Needs Assessment

      Description

       

      Desired Behavior: When a manifest specifies ensure => stopped ** on a service in Windows that has dependent services, the service resource should be capable of stopping the dependent services to ensure that the requested service can be stopped.

      Actual Behavior:

      Currently the service resource does not understand dependent services. If a running service has dependent services that are still running, the stop command will fail.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  william.hurt William Hurt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: