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

After upgrading to MySQL module v15, get an error when setting root_password

Open rychannel opened this issue 1 year ago • 1 comments

Describe the Bug

I get the following error in Impact Analysis, Internal Server Error: org.jruby.exceptions.RuntimeError: (PreformattedError) Evaluation Error: Mysql_user[root@localhost]['password_hash'] contains a Deferred value. It will be converted to the String 'Deferred({'name' => 'mysql::password', 'arguments' => ['somerandompassword234']})' (file: /etc/puppetlabs/code/environments/linux_test_cdpe_ia_1716222107109/modules/mysql/manifests/server/root_password.pp, line: 33)

Expected Behavior

Don't get an error

Steps to Reproduce

Steps to reproduce the behavior: Upgraded to MySQL module v15

Environment

  • Version PE 2023.7.0
  • Platform RHEL 8

Additional Context

rychannel avatar May 20 '24 19:05 rychannel

I believe this is happening when calling the 'mysql::server' class and specifying the root_password parameter

rychannel avatar May 22 '24 18:05 rychannel