Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
PUP 4.10.9, PUP 5.3.5
-
None
-
-
Platform Core
-
Platform Core KANBAN
-
Customer Feedback
-
Major
-
3 - 25-50% of Customers
-
3 - Serious
-
5 - $$$$$$
-
-
Bug Fix
-
Description
The puppet lookup command evaluates classes that are returned from the ENC when the --compile flag is not specified. This results in failures of the lookup command if the catalog cannot be compiled.
Reproduction Steps
- Install PE or Puppetserver
- Create a class like the one below.
- Classify a node with the class in the classifier
- Run puppet lookup anyhierakey --node <nodename>
A simple class to cause a failure in the lookup is below.
class test (
|
String $myparam,
|
) {
|
file {$myparam:
|
ensure => absent,
|
}
|
}
|
Logs
Using the steps above, we see this output from a lookup.
# puppet lookup anything --node pe-201735-agent.puppetdebug.vlan --debug
|
...
|
Debug: importing '/etc/puppetlabs/code/environments/production/modules/test/manifests/init.pp' in environment production
|
Debug: Automatically imported test from test into production
|
...
|
Error: Could not run: Evaluation Error: Error while evaluating a Resource Statement, Class[Test]: expects a value for parameter 'myparam'
|
Workaround
Add the --node_terminus plain to the command.
# puppet lookup anything --node pe-201735-agent.puppetdebug.vlan --node_terminus plain
|
--- "test"
|