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

Error while evaluating function call, Invalid tag #<puppet:resource:type:...> in defined()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: PUP 4.6.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Puppetserver 2.5.0 on RHEL with Puppet Agent 1.6.2 on Master

    • Template:
    • Sprint:
      Language 2016-09-07

      Description

      With the puppet-agent package for 1.6.2 from the Puppetlabs repositories on a RHEL Puppetmaster (what is up with that being in there for RHEL/Centos but not Debian/... btw?) we get the following error

      Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Invalid tag '#<puppet::resource::type:0x61890ff6>' at /etc/puppetlabs/code/environments/development20/modules/saltweb/manifests/config.pp:692:11 at /etc/puppetlabs/code/environments/development20/common/saltpwportal/manifests/init.pp:18 on node bpobs11.bpo.pwit.com
      

      The relevant line 692 it mentions is

      if(!defined(Saltnagios::Client::Nrpe_Check["vhost_${provider}_${virtual_host}_long_requests"])) {
      

      where character 11 is the start of the function name "defined".

      The type referenced is a defined type. All the variables are defined and the whole bit of code has been working fine for months now (with strict and strict_variables settings on).

      The hex code after #puppet:resource:type (presumably the memory location of the object) changes with every run but the error remains otherwise unchanged.

      A downgrade to 1.6.1 on the Master only fixes this issue.

      We are using Puppetserver 2.5.0-1.el7

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mhoermann Matthias Hörmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support