Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-8316

puppetlabs/iis : log_event_on_recycle in applicationpool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Ready for Engineering
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iis, windows
    • Labels:
      None
    • Environment:

      Windows server 2012R2

      Puppet agent: 5.5.4

      Puppetserver: 5.3.5

    • Template:
      MODULES Bug Template
    • Team:
      Windows
    • Sprint:
      Windows Hopper
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: '4.5.0
      Puppet Version: 5.5.4
      OS Name/Version: Windows server 2012 R2

      The param "log_event_on_recycle" doesn't work when there is more than 1 value.

      Desired Behavior:

      Make this parameter works has specified in the documentation:

      Specifies that IIS should log an event when an application pool is recycled. The log_event_on_recycle property must have a bit set corresponding to the reason for the recycle if IIS is to log the event. The log_event_on_recycle property can have one or more of the following possible values: ConfigChange, IsapiUnhealthy, Memory, OnDemand, PrivateMemory, Requests, Schedule and Time. If you specify more than one value, separate them with a comma (,). The default flags for versions of IIS earlier than IIS 10 are Time, Memory, and PrivateMemory; for IIS 10 and later are all values.

      Actual Behavior:

      Works with 1 value:

      // iis_application_pool { 'TS_PRD':
        ensure                  => 'present',
        state                   => 'started',
        managed_pipeline_mode   => 'Integrated',
        managed_runtime_version => 'v4.0',
        enable32_bit_app_on_win64 => false,
        restart_schedule => ['07:00:00'],
        restart_time_limit => '00:00:00',
        log_event_on_recycle => 'Time',
      

      Result:

      // Notice: /Stage[main]/Profile::Windows::xxxxxx/Iis_application_pool[TS_PRD]/log_e
      vent_on_recycle: log_event_on_recycle changed 'ConfigChange' to 'Time'
      Notice: Applied catalog in 29.70 seconds
      

      Check result:

      // PS C:\Users\xxxxx> Get-WebConfigurationProperty -pspath  'MACHINE/WEBROOT/APPHOST'  -filter "system.applicationHost/ap
      plicationPools/add[@name='TS_PRD']/recycling" -name logEventOnRecycle
      Time
      

      With more values:

      // iis_application_pool { 'TS_PRD':
        ensure                  => 'present',
        state                   => 'started',
        managed_pipeline_mode   => 'Integrated',
        managed_runtime_version => 'v4.0',
        enable32_bit_app_on_win64 => false,
        restart_schedule => ['07:00:00'],
        restart_time_limit => '00:00:00',
        log_event_on_recycle => 'Time,Requests,Schedule,Memory,IsapiUnhealthy,OnDemand,ConfigChange,PrivateMemory',}
      

      Results:

      // Notice: /Stage[main]/Profile::Windows::xxxxx/Iis_application_pool[TS_PRD]/log_e
      vent_on_recycle: log_event_on_recycle changed 'Time' to 'Time,Requests,Schedule,
      Memory,IsapiUnhealthy,OnDemand,ConfigChange,PrivateMemory'
      Notice: Applied catalog in 29.45 seconds

      Check result:

      // PS C:\Users\xxxxxx> Get-WebConfigurationProperty -pspath  'MACHINE/WEBROOT/APPHOST'  -filter "system.applicationHost/ap
      plicationPools/add[@name='TS_PRD']/recycling" -name logEventOnRecycle
      Time
      

      Puppet doesn't return any error but the configuration has not been changed. After each puppet run we get the notice above.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Luds Ludovic Jerome
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support