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

AIX service provider returns before service operations are complete

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 4.3.0
    • None
    • None
    • AIX 5-7

    • 3
    • Client 2015-11-11
    • Bug Fix
    • Hide
      In AIX, service state transitions are not atomic. On slower systems, this could cause race conditions when starting, stopping or restarting services, as puppet did not wait for services to conclude their operations before continuing to apply different resources. The SRC service provider has been updated to wait up for up to 60 seconds when changing the state of a service.
      Show
      In AIX, service state transitions are not atomic. On slower systems, this could cause race conditions when starting, stopping or restarting services, as puppet did not wait for services to conclude their operations before continuing to apply different resources. The SRC service provider has been updated to wait up for up to 60 seconds when changing the state of a service.

    Description

      In AIX, when we stop the puppet service with puppet resource service puppet ensure=stopped,
      puppet returns before the service has actually finished stopping. AIX's service manager takes a while to stop the service, and for a brief period puppet doesn't understand what state the service is in:

      -bash-3.2# /opt/puppetlabs/puppet/bin/puppet resource service puppet
      service { 'puppet':
        enable => 'false',
      }
      

      Attachments

        Issue Links

          Activity

            People

              john.duarte John Duarte
              whopper William Hopper
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support