Jira (PUP-9944) Catalog Compilation Fails on Empty Class String

0 views
Skip to first unread message

Michael Hashizume (JIRA)

unread,
Aug 8, 2019, 4:26:06 PM8/8/19
to puppe...@googlegroups.com
Michael Hashizume created an issue
 
Puppet / Task PUP-9944
Catalog Compilation Fails on Empty Class String
Issue Type: Task Task
Assignee: Unassigned
Created: 2019/08/08 1:25 PM
Priority: Normal Normal
Reporter: Michael Hashizume

Hello!

Our team recently upgraded from PE 2017 to PE 2018. After the upgrade, we started encountering this error:

michael.hashizume@bfs-hyperv-1-prod:~$ sudo puppet agent -t
 Info: Using configured environment 'production'
 Info: Retrieving pluginfacts
 Info: Retrieving plugin
 Info: Retrieving locales
 Info: Loading facts
 Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Method call, Cannot use empty string as a class name (file: /etc/puppetlabs/code/environments/production/manifests/site.pp, line: 1, column: 43) on node bfs-hyperv-1-prod.it.puppet.net
 Warning: Not using cache on failed catalog
 Error: Could not retrieve catalog; skipping run

We classify our nodes purely in Hiera. We like this setup because it allows us to keep everything in the codebase, even if nodes only need the base profile applied to them. Our main manifest looks like this:

lookup('classes', Array[String], 'unique').include
 
node default { include profile::base }

And the node's Hiera file looks like this:

--- 
classes: ''

The node is running Puppet 5.3.5, and the Master is on 5.5.16.

Thank you!

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Aug 9, 2019, 5:22:02 PM8/9/19
to puppe...@googlegroups.com
Henrik Lindberg commented on Task PUP-9944
 
Re: Catalog Compilation Fails on Empty Class String

Classes must be an array and an empty string is certainly not an array. You need to change your data file.

---
classes: []

Is how to make the classes key have an empty array value

Reply all
Reply to author
Forward
0 new messages