Jira (PUP-2961) Node regexps generate invalid tags

2 views
Skip to first unread message

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:49:07 PM5/18/17
to puppe...@googlegroups.com
Moses Mendoza updated an issue
 
Puppet / Bug PUP-2961
Node regexps generate invalid tags
Change By: Moses Mendoza
Labels: triaged
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Josh Cooper (JIRA)

unread,
Mar 16, 2018, 4:39:03 PM3/16/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Platform Core
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (JIRA)

unread,
Mar 16, 2018, 4:39:04 PM3/16/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sub-team: Coremunity

Josh Cooper (JIRA)

unread,
Jul 16, 2018, 7:19:03 PM7/16/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
{code:puppet}
node /.*-\d+.test.releng.scl3.mozilla.com/ { .. }
{code}

will try to generate the tag "-d.test.releng.scl3.mozilla.com" for matching hosts, and that tag is invalid, leaving the nodes unable to run puppet.

{noformat}
Tue Jul 22 11:13:27 -0700 2014 Puppet (err): Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid tag -d.test.releng.scl3.mozilla.com on node t-snow-r4-0009.test.releng.scl3.mozilla.com
{noformat}

Josh Cooper (Jira)

unread,
Apr 1, 2020, 1:16:02 AM4/1/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-2961
 
Re: Node regexps generate invalid tags

This is no longer an issue:

node /.*-\d+.example.com/ {
  notify { "matched": }
}

produces:

$  bx puppet agent -t --certname www-1.example.com
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for www-1.example.com
Info: Applying configuration version '1585718038'
Notice: matched
Notice: /Stage[main]/Main/Node[__node_regexp__-d.example.com]/Notify[matched]/message: defined 'message' as 'matched'

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages