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

reboot: Remove the usage of Win32 gems in the reboot module

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • reboot
    • Modules
    • Customer Feedback
    • Reviewed
    • 43410,43464,43465,43619
    • 4
    • Bug Fix
    • Add to the PE upgrade cautions with what to look out for and how to resolve it based on the outcome of this ticket.
    • Needs Assessment

    Description

      Module Version: Reboot 4.0.0
      Puppet Version: 7.4.1
      OS Name/Version: Windows Server 2019

      Puppet 7 no longer ships the win32 gems, so the tasks that require it will fail to load the gem. The reboot module is listed as compatible with Puppet 7 but still uses the win32 gem in some places, which causes failures in the plans. 

      The Gemfile in the module lists the following https://github.com/puppetlabs/puppetlabs-reboot/blob/main/Gemfile#L51-L55

       

      gems['win32-dir'] = ['<= 0.4.9', require: false] 
      gems['win32-eventlog'] = ['<= 0.6.5', require: false]
      gems['win32-process'] = ['<= 0.7.5', require: false]
      gems['win32-security'] = ['<= 0.2.5', require: false]
      gems['win32-service'] = ['0.8.8', require: false]

       

      The win32/process gem is used in the task, but causes failures since it is missing 

      https://github.com/puppetlabs/puppetlabs-reboot/blob/main/tasks/init.rb#L42

      Desired Behavior:

      The tasks should be functional on Puppet 7 nodes

      Actual Behavior:

      Running the tasks on Puppet 7 nodes fails to load the gems.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jarret.lavallee Jarret Lavallee
              Votes:
              2 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support