FAQ
Hi,

I'm new to the group but not as new to Puppet. I've used the open source
version at work for a while and taken the Puppet Fundamentals course.

I set up a couple of CentOS 6.4 VMs that I'm using to have a look at PE
3.0.1. One is master.localdomain and one is agent1.localdomain. I'm running
them in Virtualbox, both have a NAT adapter and a second host adapter
that's in 192.168.100.0.

Things are working well in general but I have one issue that's coming up on
both hosts during agent runs. Whenever there's a file that Puppet manages
that needs to get updated, it fails with these errors:

Error: Could not back up /etc/ssh/ssh_config: getaddrinfo: Name or service
not known
Error: Could not back up /etc/ssh/ssh_config: getaddrinfo: Name or service
not known
Error: /Stage[main]/Ssh/File[/etc/ssh/ssh_config]/content: change from
{md5}af4cb8f2c52f0e44575d64cc20d9bc65 to
{md5}5f7d05d43959932df5c63197cf3e963f failed: Could not back up
/etc/ssh/ssh_config: getaddrinfo: Name or service not known

I did some Googling and it sounded like the getaddrinfo errors usually have
to do with the agent not being able to resolve "puppet," but mine
definitely can. The hosts file I have set up for both looks like:

# HEADER: This file was autogenerated at 2013-08-26 18:22:18 -0700
# HEADER: by puppet. While it can still be managed manually, it
# HEADER: is definitely not recommended.
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.100.2 master puppet master.localdomain puppet.localdomain
192.168.100.3 agent1 agent1.localdomain

Both hosts can ping the names puppet, agent1.localdomain and
master.localdomain and get responses from the correct IPs.

I'm scratching my head at this point. It looks like the host is failing to
find the location to back the files up to on the local host? I don't see
how that could be though.

Also I actually had this same basic setup before but with only one bridged
adapter per VM, using the same CentOS setup, same version of PE, etc. I
didn't have this problem then. What I didn't like about that setup is that
it depended on the addressing of my home network, and I read about doing
the combination of NAT and host only adapters as a way to get Internet
access and still have a private network where you control the addresses. So
the fact that it worked with a different network setup makes me thing
that's to blame but I can't see what's wrong.

On each of the hosts eth0 is the NAT adapter and eth1 is the host only.
Here's what the agent host looks like:

rich@agent1:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:00:27:AB:08:67
           inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
           inet6 addr: fe80::a00:27ff:feab:867/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
           RX packets:86 errors:0 dropped:0 overruns:0 frame:0
           TX packets:94 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:8012 (7.8 KiB) TX bytes:7260 (7.0 KiB)

rich@agent1:~$ ifconfig eth1
eth1 Link encap:Ethernet HWaddr 08:00:27:F3:69:37
           inet addr:192.168.100.3 Bcast:192.168.100.255 Mask:255.255.255.0
           inet6 addr: fe80::a00:27ff:fef3:6937/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
           RX packets:1237 errors:0 dropped:0 overruns:0 frame:0
           TX packets:946 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:467558 (456.5 KiB) TX bytes:407532 (397.9 KiB)

Again, I can ping between the machines on the 192 addresses and they work
fine, and both agents can talk to the master and perform most functions.
The one thing that's failing is backing up changed files.

I'm going to append what I get using --trace in case that's helpful.


Thanks,

Rich

---

Error: Could not back up /etc/ssh/ssh_config: getaddrinfo: Name or service
not known
/opt/puppet/lib/ruby/1.9.1/net/http.rb:763:in `initialize'
/opt/puppet/lib/ruby/1.9.1/net/http.rb:763:in `open'
/opt/puppet/lib/ruby/1.9.1/net/http.rb:763:in `block in connect'
/opt/puppet/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
/opt/puppet/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
/opt/puppet/lib/ruby/1.9.1/net/http.rb:763:in `connect'
/opt/puppet/lib/ruby/1.9.1/net/http.rb:756:in `do_start'
/opt/puppet/lib/ruby/1.9.1/net/http.rb:745:in `start'
/opt/puppet/lib/ruby/1.9.1/net/http.rb:1285:in `request'
/opt/puppet/lib/ruby/1.9.1/net/http.rb:1065:in `head'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/network/http/connection.rb:72:in
`request'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/network/http/connection.rb:57:in
`head'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/rest.rb:83:in
`http_request'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/rest.rb:70:in
`http_head'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/rest.rb:112:in
`block in head'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/rest.rb:168:in
`block in do_request'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/request.rb:197:in
`do_request'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/rest.rb:168:in
`do_request'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/rest.rb:111:in `head'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/file_bucket_file/selector.rb:20:in
`head'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/indirection.rb:225:in
`head'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/file_bucket/dipper.rb:44:in
`backup'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/backups.rb:84:in
`backup_file_with_filebucket'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/backups.rb:28:in
`perform_backup_with_bucket'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/backups.rb:15:in
`perform_backup'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/file.rb:817:in
`backup_existing'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/file.rb:628:in
`remove_existing'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/file.rb:728:in `write'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/file/content.rb:144:in
`sync'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:114:in
`apply_parameter'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:62:in
`block in perform_changes'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:60:in
`each'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:60:in
`perform_changes'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:139:in
`evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:48:in `apply'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:83:in
`eval_resource'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:103:in `block (2
levels) in evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:351:in `block in
thinmark'
/opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:350:in `thinmark'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:103:in `block in
evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:382:in `traverse'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:98:in `evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/resource/catalog.rb:146:in
`apply'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:122:in `block in
apply_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:179:in `block in
benchmark'
/opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:178:in `benchmark'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:121:in
`apply_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:179:in `run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:45:in `block (5
levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent/locker.rb:20:in `lock'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:45:in `block (4
levels) in run'
/opt/puppet/lib/ruby/1.9.1/sync.rb:227:in `sync_synchronize'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:45:in `block (3
levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:119:in `with_client'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:42:in `block (2
levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:84:in `run_in_fork'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:41:in `block in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:in `call'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:in
`controlled_run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:39:in `run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:353:in
`onetime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:327:in
`run_command'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:364:in `block (2
levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:456:in
`plugin_hook'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:364:in `block in
run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:504:in `exit_on_fail'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:364:in `run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:132:in
`run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:86:in
`execute'
/opt/puppet/bin/puppet:4:in `<main>'
Error: Could not back up /etc/ssh/ssh_config: getaddrinfo: Name or service
not known
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/file_bucket/dipper.rb:52:in
`rescue in backup'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/file_bucket/dipper.rb:36:in
`backup'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/backups.rb:84:in
`backup_file_with_filebucket'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/backups.rb:28:in
`perform_backup_with_bucket'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/backups.rb:15:in
`perform_backup'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/file.rb:817:in
`backup_existing'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/file.rb:628:in
`remove_existing'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/file.rb:728:in `write'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/file/content.rb:144:in
`sync'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:114:in
`apply_parameter'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:62:in
`block in perform_changes'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:60:in
`each'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:60:in
`perform_changes'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:139:in
`evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:48:in `apply'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:83:in
`eval_resource'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:103:in `block (2
levels) in evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:351:in `block in
thinmark'
/opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:350:in `thinmark'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:103:in `block in
evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:382:in `traverse'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/transaction.rb:98:in `evaluate'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/resource/catalog.rb:146:in
`apply'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:122:in `block in
apply_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:179:in `block in
benchmark'
/opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:178:in `benchmark'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:121:in
`apply_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:179:in `run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:45:in `block (5
levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent/locker.rb:20:in `lock'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:45:in `block (4
levels) in run'
/opt/puppet/lib/ruby/1.9.1/sync.rb:227:in `sync_synchronize'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:45:in `block (3
levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:119:in `with_client'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:42:in `block (2
levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:84:in `run_in_fork'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:41:in `block in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:in `call'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:179:in
`controlled_run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/agent.rb:39:in `run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:353:in
`onetime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application/agent.rb:327:in
`run_command'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:364:in `block (2
levels) in run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:456:in
`plugin_hook'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:364:in `block in
run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:504:in `exit_on_fail'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/application.rb:364:in `run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:132:in
`run'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:86:in
`execute'
/opt/puppet/bin/puppet:4:in `<main>'
Error: /Stage[main]/Ssh/File[/etc/ssh/ssh_config]/content: change from
{md5}af4cb8f2c52f0e44575d64cc20d9bc65 to
{md5}5f7d05d43959932df5c63197cf3e963f failed: Could not back up
/etc/ssh/ssh_config: getaddrinfo: Name or service not known


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Rich Burroughs at Aug 27, 2013 at 3:29 am
    Ahh nevermind I got this figured out.

    I had copied over my site.pp from the previous install and I changed the
    hostname of the master on the new setup. The one in the filebucket in
    site.pp no longer exists. I changed it to "puppet" and it's working now.


    Rich

    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedAug 27, '13 at 1:44a
activeAug 27, '13 at 3:29a
posts2
users1
websitepuppetlabs.com

1 user in discussion

Rich Burroughs: 2 posts

People

Translate

site design / logo © 2022 Grokbase