Puppet: System Administration Automated

Support

Ticket #813 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

puppetmasterd fails to compile manifest without top-level resources: "Did not evaluate top scope"

Reported by: DavidS Assigned to: luke
Priority: high Milestone: misspiggy
Component: library Version:
Severity: major Keywords: HEAD,empty manifest,
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Easy

Description

Using an empty site.pp and no modules, puppetmasterd fails to compile configurations with this error message: err: Did not evaluate top scope

Trace:

/tests/puppet-trunk//lib/puppet/node/configuration.rb:87:in `extract_to_transportable'
/tests/puppet-trunk//lib/puppet/node/configuration.rb:35:in `send'
/tests/puppet-trunk//lib/puppet/node/configuration.rb:35:in `extract'
/tests/puppet-trunk//lib/puppet/network/handler/master.rb:87:in `getconfig'
/usr/share/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in `to_proc'
/tests/puppet-trunk//lib/puppet/network/xmlrpc/processor.rb:52:in `call'
[....]

The pertaining code

        # Retrive the bucket for the top-level scope and set the appropriate metadata.
        unless result = buckets[main.to_s]
            raise Puppet::DevError, "Did not evaluate top scope"   # line 87
        end

Where "main.to_s" evaluates to "Class[main]". Additionally I have played around a bit with the "edges" proc, but even adding a "puts" to the beginning of this function didn't lead to any output. Which leads me to suspect that there is no configuration generated at all. Putting a node definition into the site.pp didn't change anything though. After much experimentation, I found that a site.pp with top-level resources defined do work.

Change History

09/11/07 18:25:44 changed by michael

  • severity changed from normal to major.
  • priority changed from normal to high.
  • complexity changed from Unknown to Easy.
  • milestone set to misspiggy.
  • owner changed from community to luke.
  • stage changed from Unreviewed to Accepted.

10/04/07 00:51:11 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [d4afe39fa1aeb4f4e9d1bcdaf0f924aac2f00584].