Jira (PUP-10262) Attempt to redefine entity regression

7 views
Skip to first unread message

Trevor Vaughan (JIRA)

unread,
Jan 31, 2020, 3:04:04 PM1/31/20
to puppe...@googlegroups.com
Trevor Vaughan created an issue
 
Puppet / Bug PUP-10262
Attempt to redefine entity regression
Issue Type: Bug Bug
Affects Versions: PUP 6.12.0
Assignee: Unassigned
Components: Compiler
Created: 2020/01/31 12:03 PM
Priority: Normal Normal
Reporter: Trevor Vaughan

Puppet Version: 6.12.0
Puppet Server Version: N/A
OS Name/Version: EL8

When using voxpupuli/firewalld code that works in Puppet , I am getting the following error in Puppet 6. NOTE: The same code works on EL7!

Error: Could not autoload puppet/type/firewalld_service: Attempt to redefine entity 'http://puppet.com/2016.1/runtime/type/firewalld_service'. Set at unknown location
        Error: Could not autoload puppet/type/firewalld_zone: Could not autoload puppet/type/firewalld_service: Attempt to redefine entity 'http://puppet.com/2016.1/runtime/type/firewalld_service'. Set at unknown location
        Error: Parameter before failed on Service[firewalld]: Could not autoload puppet/type/firewalld_zone: Could not autoload puppet/type/firewalld_service: Attempt to redefine entity 'http://puppet.com/2016.1/runtime/type/firewalld_service'. Set at unknown location (file: /etc/puppetlabs/code/environments/production/modules/firewalld/man
ifests/init.pp, line: 79)

This appears to be related to having run puppet generate types on the system.

Removing the .resource_types directory fixes the puppet run but is not an acceptable solution.

Desired Behavior:

Puppet run should succeed

Actual Behavior:

 

Posted above.

Works on EL7 with identical code.

Works on EL8 with Puppet 5 with identical code.

There may be one, or two, errors based on the version of Puppet 6 that is installed.

CC: Henrik Lindberg since this deals with generate types.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Trevor Vaughan (JIRA)

unread,
Jan 31, 2020, 3:05:04 PM1/31/20
to puppe...@googlegroups.com
Trevor Vaughan updated an issue
Change By: Trevor Vaughan
Priority: Normal Blocker

Trevor Vaughan (JIRA)

unread,
Jan 31, 2020, 3:15:04 PM1/31/20
to puppe...@googlegroups.com
Trevor Vaughan updated an issue
*Puppet Version: 6.12.0*
*Puppet Server Version: N/A*
*OS Name/Version: EL8*


When using voxpupuli/firewalld code that works in Puppet , I am getting the following error in Puppet 6. NOTE: The same code works on EL7!
{code:java}
Error: Could not autoload puppet/type/firewalld_service: Attempt to redefine entity 'http://puppet.com/2016.1/runtime/type/firewalld_service'. Set at unknown location
        Error: Could not autoload puppet/type/firewalld_zone: Could not autoload puppet/type/firewalld_service: Attempt to redefine entity 'http://puppet.com/2016.1/runtime/type/firewalld_service'. Set at unknown location
        Error: Parameter before failed on Service[firewalld]: Could not autoload puppet/type/firewalld_zone: Could not autoload puppet/type/firewalld_service: Attempt to redefine entity 'http://puppet.com/2016.1/runtime/type/firewalld_service'. Set at unknown location (file: /etc/puppetlabs/code/environments/production/modules/firewalld/man
ifests/init.pp, line: 79){code}

This appears to be related to having run {{puppet generate}} types on the system.

Removing the .resource_types directory fixes the puppet run but is not an acceptable solution.

*Desired Behavior:*

Puppet run should succeed

*Actual Behavior:*

 

Posted above.

Works on EL7 with identical code.

Works on EL8 with Puppet 5 with identical code.

There may be one, or two, errors based on the version of Puppet 6 that is installed.

CC: [~henrik.lindberg] since this deals with {{generate}} types.

*Full Repeater*
{code:java}
git clone https://github.com/simp/pupmod-simp-pupmod
PUPPET_VERSION='~> 6.0' bundle update
PUPPET_VERSION='~>6.0' BEAKER_destroy=onpass rake beaker:suites
..wait for failure..
cd .vagrant/beaker_vagrant_files/default.yml
vagrant ssh puppet.el8
sudo su -
cd /tmp
grep pupmod::master *.pp* | head -1
puppet apply <whatever the filename was>
<failure>
rm -rf /etc/puppetlabs/code/environments/production/.resource_types
puppet apply <whatever the filename was>
<success>
puppet generate types
puppet apply <whatever the filename was>
<failure>{code}
 

Trevor Vaughan (JIRA)

unread,
Jan 31, 2020, 3:26:03 PM1/31/20
to puppe...@googlegroups.com
Trevor Vaughan commented on Bug PUP-10262
 
Re: Attempt to redefine entity regression

Just did a downgrade loop through all versions of Puppet 6 on EL8 and every version has the bug.

Trevor Vaughan (JIRA)

unread,
Jan 31, 2020, 3:27:06 PM1/31/20
to puppe...@googlegroups.com

Downgraded to 5.5.18 and no issues.

Reply all
Reply to author
Forward
0 new messages