Jira (PUP-4858) Puppet fails when A record missing from SRV lookup

1 view
Skip to first unread message

Tim Rosine (JIRA)

unread,
Jul 14, 2015, 3:42:06 PM7/14/15
to puppe...@googlegroups.com
Tim Rosine created an issue
 
Puppet / Improvement PUP-4858
Puppet fails when A record missing from SRV lookup
Issue Type: Improvement Improvement
Affects Versions: PUP 3.7.5
Assignee: Unassigned
Created: 2015/07/14 12:41 PM
Environment:

Using SRV records to load balance and provide fault tolerance across 2 datacenters
CentOS 7
VMWare

Priority: Normal Normal
Reporter: Tim Rosine

When I run puppet agent --test against this SRV record, puppet spews numerous errors because of the lack of an A record for dc2-ppmaster02. This should be managed as if there was an A record (unable to connect), moving along to any partners/fallback servers.

Workarounds until this can be improved:

  1. Remove the SRV RR that does not have a corresponding A record
  2. Add an A record (in some environments the future IP address is unknown until deployment)

;; ANSWER SECTION:
_x-puppet._tcp.puppet-dc2.example.com. 3600 IN SRV 0 10 8140 dc2-ppmaster-01.example.com.
_x-puppet._tcp.puppet-dc2.example.com. 3600 IN SRV 0 10 8140 dc2-ppmaster-02.example.com.
_x-puppet._tcp.puppet-dc2.example.com. 3600 IN SRV 1 10 8140 dc1-ppmaster-02.example.com.
_x-puppet._tcp.puppet-dc2.example.com. 3600 IN SRV 1 10 8140 dc1-ppmaster-01.example.com.
 
;; ADDITIONAL SECTION:
dc1-ppmaster-01.example.com.    3600 IN A       10.1.1.1
dc1-ppmaster-02.example.com.    3600 IN A       10.1.1.2
dc2-ppmaster-01.example.com.    3600 IN A       10.2.1.1

#=> Running: '/usr/bin/puppet agent --test' at 07/14/15 09:50:54
Info: Retrieving pluginfacts
Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for client1.example.com
Info: Applying configuration version '1436881711'
Error: /Stage[main]/Sudo/File[/etc/sudoers]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/sudo/sudoers.rhel6: getaddrinfo: Name or service not known

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.5#64020-sha1:78acd6c)
Atlassian logo

Josh Cooper (JIRA)

unread,
Oct 7, 2015, 8:12:02 PM10/7/15
to puppe...@googlegroups.com
This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4)
Atlassian logo

Josh Cooper (JIRA)

unread,
Oct 7, 2015, 8:13:02 PM10/7/15
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Oct 7, 2015, 8:13:02 PM10/7/15
to puppe...@googlegroups.com

Scott Garman (JIRA)

unread,
May 15, 2017, 5:18:04 PM5/15/17
to puppe...@googlegroups.com
Scott Garman commented on Improvement PUP-4858

Josh Cooper Was this ever fixed?

This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Scott Garman (JIRA)

unread,
May 15, 2017, 5:19:02 PM5/15/17
to puppe...@googlegroups.com

Scott Garman (JIRA)

unread,
May 15, 2017, 5:19:04 PM5/15/17
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
May 21, 2017, 11:40:03 PM5/21/17
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-4858
 
Re: Puppet fails when A record missing from SRV lookup

I don't believe so. Thanks for adding to the SRV epic.

Jacob Helwig (JIRA)

unread,
Dec 4, 2017, 6:03:04 PM12/4/17
to puppe...@googlegroups.com
Jacob Helwig updated an issue
 
Change By: Jacob Helwig
Sub-team: Coremunity
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Josh Cooper (Jira)

unread,
Oct 19, 2022, 11:12:01 PM10/19/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Labels: Easy
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages