Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10262

Attempt to redefine entity regression

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: PUP 6.12.0
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk 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

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              peiriannydd Trevor Vaughan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support