puppetlabs-reboot icon indicating copy to clipboard operation
puppetlabs-reboot copied to clipboard

Issue with the onlyif parameter not being recognized.

Open fr3nch13 opened this issue 7 months ago • 0 comments

Describe the Bug

Possible bug when being used with puppetlabs/docker

https://github.com/puppetlabs/puppetlabs-docker/issues/987

Specifically with the file: manifests/service.pp#506

Error:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: no parameter named 'onlyif' (file: /etc/puppetlabs/code/environments/brian_test/modules/docker/manifests/service.pp, line: 506) on Reboot[pending_reboot] (file: /etc/puppetlabs/code/environments/brian_test/modules/docker/manifests/service.pp, line: 506) on node

My module that uses puppetlabs/docker (which uses puppetlabs/reboot) is passing unit testing with 100% code coverage, but actual testing (canary testing, thanks CrowdStrike for the name) is failing with the above error.

Expected Behavior

To accept the onlyif parameter

Steps to Reproduce

Steps to reproduce the behavior:

  1. Use the puppetlabs/docker module on Windows 2019
  2. Deploy the module on a fresh install where the docker module manages everything.
  3. Confirm that the windows.rb from this module is being deployed to the host, along with manifests/service.pp which uses the reboot provider.

Environment

  • Windows 2019 server
  • Puppet server and agent 7.31.0
  • mod 'puppetlabs/docker', :latest (10.0.1)
  • mod 'puppetlabs/pwshlib', :latest (1.1.1)
  • mod 'puppetlabs/reboot', :latest (5.0.0)
  • mod 'puppetlabs/registry', :latest (5.0.1)

Additional Context

Add any other context about the problem here.

fr3nch13 avatar Jul 26 '24 18:07 fr3nch13