You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module inherited a bug in PDK which causes the docker_stack resource to ungracefully fail with a "wrong number of arguments" error while calling psych's YAML.safe_load.
It looks like this issue was fixed in 2021, however, this module is still using the old way of calling safe_load in both of these resources. Any recent installation of psych (which is a dependency of the PDK) will error out.
Expected Behavior
I should be able to use docker_stack without an error.
Steps to Reproduce
Deploy a docker_stack resource with a version of psych greater than 4 on the host system. You can see the version of the gem installed in /opt/puppetlabs/puppet/lib/ruby/gems/3.2.0/gems although your installed version of ruby may be different.
Environment
Version 9.1
Platform Ubuntu 22
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
After spending 4 hours trying to get the docker module to work I finally found out I'm running in the above bug. Does not work with the latest version of the puppetserver on ubuntu
akremer
changed the title
docker_stack and docker_compose use outdated way of using psych's YAML.safe_load
docker_stack uses outdated way of using psych's YAML.safe_load
Apr 16, 2024
Describe the Bug
This module inherited a bug in PDK which causes the
docker_stack
resource to ungracefully fail with a "wrong number of arguments" error while callingpsych
's YAML.safe_load.See the following issues:
puppetlabs/pdk#1143
ruby/psych#571
It looks like this issue was fixed in 2021, however, this module is still using the old way of calling safe_load in both of these resources. Any recent installation of psych (which is a dependency of the PDK) will error out.
Expected Behavior
I should be able to use docker_stack without an error.
Steps to Reproduce
Deploy a docker_stack resource with a version of psych greater than 4 on the host system. You can see the version of the gem installed in
/opt/puppetlabs/puppet/lib/ruby/gems/3.2.0/gems
although your installed version of ruby may be different.Environment
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: