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

Corrective Change YAML file causes errors when type parameter is a complex type

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • None
    • None
    • None
    • 2
    • Bug Fix
    • Hide
      Corrective change was serializing a complex type (ace in the ACL module in this case) to a yaml file that was unable to deserialized due to the type itself not handling deserialization well. Instead of handling that failure gracefully, corrective change would fail hard and cause Puppet to error. Now corrective change will fail gracefully. Changes are planned for handling the ACL module's serialization fixes in MODULES-3766.
      Show
      Corrective change was serializing a complex type (ace in the ACL module in this case) to a yaml file that was unable to deserialized due to the type itself not handling deserialization well. Instead of handling that failure gracefully, corrective change would fail hard and cause Puppet to error. Now corrective change will fail gracefully. Changes are planned for handling the ACL module's serialization fixes in MODULES-3766 .

    Description

      Related to puppetlabs/mysql module

      Error: Transaction store file /opt/puppetlabs/puppet/cache/state/transactionstore.yaml is corrupt ((/opt/puppetlabs/puppet/cache/state/transactionstore.yaml): Tried to load unspecified class: Puppet::Provider::MysqlLoginPath::Sensitive); replacing
      Wrapped exception:
      Tried to load unspecified class: Puppet::Provider::MysqlLoginPath::Sensitive
      

        mysql_login_path { 'client':
          ensure   => present,
          owner    => 'root',
          host     => 'localhost',
          user     => 'root',
          password => Sensitive($password),
          port     => 3306,
          require  => [Package[$require_package_name]]
        }
      

      snippet of the transactionstore.yaml are as so:

      2067   Mysql_login_path[client]:
      2068     parameters:
      2069       ensure:
      2070         system_value:
      2071         - present
      2072       host:
      2073         system_value:
      2074         - localhost
      2075       user:
      2076         system_value:
      2077         - root
      2078       password:
      2079         system_value:
      2080         - !ruby/object:Puppet::Provider::MysqlLoginPath::Sensitive
      2081           value: redacted
      2082       port:
      2083         system_value:
      2084         - 3306
      
      

      Attachments

        Issue Links

          Activity

            People

              qa qa
              jason.grammenos.agilitypr Jason Grammenos
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support