Jira (PUP-11480) Corrective Change YAML file causes errors when type parameter is a complex type

12 views
Skip to first unread message

Jason Grammenos (Jira)

unread,
Mar 23, 2022, 11:46:03 AM3/23/22
to puppe...@googlegroups.com
Jason Grammenos created an issue
 
Puppet / Bug PUP-11480
Corrective Change YAML file causes errors when type parameter is a complex type
Issue Type: Bug Bug
Assignee: qa
Created: 2022/03/23 8:45 AM
Labels: regression windows
Priority: Critical Critical
Reporter: Jason Grammenos

https://jenkins-modules.puppetlabs.com/view/3.%20windows%20only/view/acl/view/acl%20-%20master/job/forge-windows_puppetlabs-acl_intn-sys_smoke-master/PLATFORM=windows-2008r2-64a,WORKER_LABEL=beaker/20/consoleFull

 
file { 'c:/tmp':
  ensure  => directory,
}
 
user { 'bob':
  ensure     => present,
  groups     => 'Users',
  managehome => true,
  password   => "L0v3Pupp3t!"
}
 
acl { 'c:/tmp':
  permissions  => [
    { identity => 'bob', perm_type => 'allow', rights => ['modify'] },
  ],
}

The permissions property of acl is a hash type. This looks to be killing runs for anyone using acl or another type that has a parameter/property that is a hash type.

The contents of the transactionstore.yaml are as so:

---
resources:
  File[c:/temp]:
    parameters:
      ensure:
        system_value: :directory
  File[c:/temp/deny_full_rights_dir]:
    parameters:
      ensure:
        system_value: :directory
  User[bob]:
    parameters:
      ensure:
        system_value: :present
      password:
        system_value: L0v3Pupp3t!
      groups:
        system_value: BUILTIN\Users,Users
  Acl[c:/temp/deny_full_rights_dir]:
    parameters:
      permissions:
        system_value:
        - !ruby/hash:Puppet::Type::Acl::Ace {}
      inherit_parent_permissions:
        system_value: :true

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Jason Grammenos (Jira)

unread,
Mar 23, 2022, 11:47:02 AM3/23/22
to puppe...@googlegroups.com
Jason Grammenos updated an issue
Change By: Jason Grammenos
https Related to puppetlabs/mysql module
{code
: java}
Error: Transaction store file
/ opt / jenkins-modules. puppetlabs .com / view puppet / 3.%20windows%20only cache / view state / acl transactionstore.yaml is corrupt (( / view opt / acl%20-%20master puppetlabs / job puppet / forge-windows_puppetlabs-acl_intn-sys_smoke-master cache / PLATFORM=windows-2008r2-64a,WORKER_LABEL=beaker state / 20/consoleFull

{code}

file { 'c
transactionstore.yaml) : /tmp' Tried to load unspecified class : Puppet::Provider::MysqlLoginPath::Sensitive); replacing
  ensure  => directory,
}

user { 'bob'
Wrapped exception :
  ensure     => present,
  groups     => 'Users',
  managehome => true,
  password   => "L0v3Pupp3t!"
}

acl { 'c Tried to load unspecified class : /tmp' Puppet : :Provider::MysqlLoginPath::Sensitive
  permissions  => [
    { identity => 'bob', perm_type => 'allow', rights => ['modify'] },
  ],
}
{
code}

The permissions property of acl is a hash type. This looks to be killing runs for anyone using acl or another type that has a parameter/property that is a hash type.

The contents of the transactionstore.yaml are as so:

{code}
{code}

Jason Grammenos (Jira)

unread,
Mar 23, 2022, 11:47:03 AM3/23/22
to puppe...@googlegroups.com

Jason Grammenos (Jira)

unread,
Mar 23, 2022, 11:48:01 AM3/23/22
to puppe...@googlegroups.com
Jason Grammenos updated an issue
Related to puppetlabs/mysql module
{code:java}
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
{code}




The contents of the transactionstore.yaml are as so:

{code}
---
resources:
  File
Mylogin [ c:/temp setup_nagios_mylogin ]:
    parameters:
      ensure:
        system_value:
:directory
  File[c         - : /temp/deny_full_rights_dir]: present
    parameters       host :
      ensure:
        system_value: :directory
  User[bob]         - : localhost
    parameters       mysql_user :
      ensure:
        system_value: :present
      password:         - nagios
        system_value       owner : L0v3Pupp3t!
      groups:
        system_value: BUILTIN\Users,Users
  Acl[c:/temp/deny_full_rights_dir]:         - nagios
    parameters       group :
      permissions:
        system_value:
        -
!ruby/hash:Puppet::Type::Acl::Ace {} nagios
      inherit_parent_permissions:
        system_value: :true
{code}

Jason Grammenos (Jira)

unread,
Mar 23, 2022, 11:48:02 AM3/23/22
to puppe...@googlegroups.com

Jason Grammenos (Jira)

unread,
Mar 23, 2022, 11:50:02 AM3/23/22
to puppe...@googlegroups.com
Jason Grammenos updated an issue
Related to puppetlabs/mysql module
{code:java}
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
{code}


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

snippet
of the transactionstore.yaml are as so:

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

{code}

Josh Cooper (Jira)

unread,
Mar 28, 2022, 3:54:01 PM3/28/22
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages