Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Duplicate
-
PUP 6.12.0
-
None
-
None
-
Needs Assessment
-
Needs Assessment
Description
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.
Full Repeater
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>
|
Attachments
Issue Links
- relates to
-
PUP-9602 puppet 6 apply fails if puppet types have been generated
-
- Resolved
-