Failed to apply catalog: Netowork is unreachable - connect(2)

601 views
Skip to first unread message

Anup Singh

unread,
Sep 13, 2013, 5:46:55 PM9/13/13
to puppet...@googlegroups.com
I tried my best to follow the instruction given at the following page however the result is ZERO for the last two months.
I am spending much of my time hitting the wrong corner and it looks like no one know the right answer to the puppet problems. Installing and configuring puppet is a tough jobs
Ok enough of my story.
tried to follow the instructions given in puppet prove of concept but failed:

PuppetMaster

My Error
Error: Failed to apply catalog: Netowork is unreachable - connect(2)
Error: Could not send report: Network is unrechable - connect (2)
logged in as roop 

Test
telnet localhost 8041 (61613 and 443)
connected
telnet learn.localdomain 8041 (61613 and 443)
network is unreachable

puppet agent -t
Failed to apply catalog: Network is Unreachable
Could not send report: Network is Unreachable 

Hosts file 
puppet agent and host have same information in /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.105 lear.localdomain learn puppet.localdomain puppet

Certs 
cd.pem
learnlocaldomain.pem
pe-internal-mcillective-servers.pem
pe-internal-broker.pem
pe-internal-puppet-console-mcillecitve-client.pem

Rahul Khengare

unread,
Sep 16, 2013, 1:41:30 AM9/16/13
to puppet...@googlegroups.com
Hi Anup,
   Try disabling the firewall/ iptables of both the machine puppetserver and puppet client. If you want firewall to be running then add rules for ports 8140, 61613, and 443 in iptalbes.

Commands to add rule in iptables,
# iptables -I INPUT -p tcp --dport <portnumber> -j ACCEPT
# service iptables save
service iptables restart

Thanks and Regards,
Rahul Khengare,
NTT DATA OSS Center, Pune, India.

jcbollinger

unread,
Sep 16, 2013, 9:28:41 AM9/16/13
to puppet...@googlegroups.com


On Friday, September 13, 2013 4:46:55 PM UTC-5, Anup Singh wrote:
Error: Failed to apply catalog: Netowork is unreachable - connect(2)
Error: Could not send report: Network is unrechable - connect (2)
logged in as roop 

Test
telnet localhost 8041 (61613 and 443)
connected
telnet learn.localdomain 8041 (61613 and 443)
network is unreachable



This is not a Puppet problem.  It is a problem with the networking configuration on the client.  The Puppet agent cannot establish a network connection to the master to request a catalog.  There are several possible problems here, among them:
  • No external network interface is configured.  There are many possible reasons for this, such as faulty provisioning, missing NIC driver or firmware, or all NICs disabled in BIOS.
  • NIC is unusable or incorrectly configured.  I've occasionally been bitten by this on laptops that have a switch to disable the NIC's radio -- when the radio is off, no wireless connections can be made.  Alternatively, if the the NIC is configured for DHCP but it gets bad or no configuration from the DHCP server, then it may not be able to reach the network.
  • Strict firewall configuration.
No amount of messing around with Puppet manifests or configs will get you around this.


John


 
Reply all
Reply to author
Forward
0 new messages