Ask Your Question
2

Puppet orchestartion Error:

asked 2016-07-20 01:52:59 -0500

Deepmangal gravatar image

Error running puppet on node1: node1 is not connected to the PCP broker.

How to resolve this kind of issue?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
3

answered 2016-07-20 03:09:54 -0500

FranzCC gravatar image

Check, that the pxp-agent is running on the node:

Command:

systemctl status pxp-agent.service

pxp-agent.service - PCP Execution Protocol (PXP) Agent
   Loaded: loaded (/lib/systemd/system/pxp-agent.service; enabled)
   Active: active (running) since Thu 2016-06-23 15:10:31 CEST; 3 weeks 5 days ago
 Main PID: 13707 (pxp-agent)
   CGroup: /system.slice/pxp-agent.service
           └─13707 /opt/puppetlabs/puppet/bin/pxp-agent --foreground

If not running, enable the service:
Command:
systemctl enable pxp-agent.service

Check the status again !

If the agent is running but the error's still the same, check the open files of the pxp-agent: Command: lsof -n -c pxp-agent

> pxp-agent 13707 root  cwd    DIR      
> 254,0     4096        2 / pxp-agent
> 13707 root  rtd    DIR             
> 254,0     4096        2 / pxp-agent
> 13707 root  txt    REG             
> 254,0   936680   528710
> /opt/puppetlabs/puppet/bin/pxp-agent
> pxp-agent 13707 root  mem    REG      
> 254,0    84856  1835047
> /lib/x86_64-linux-gnu/libresolv-2.19.so
> pxp-agent 13707 root  mem    REG      
> 254,0    22952  1835041
> /lib/x86_64-linux-gnu/libnss_dns-2.19.so
> pxp-agent 13707 root  mem    REG      
> 254,0    47712  1835042
> /lib/x86_64-linux-gnu/libnss_files-2.19.so
> pxp-agent 13707 root  mem    REG      
> 254,0    10336  2362093
> /usr/lib/x86_64-linux-gnu/gconv/UTF-32.so
> pxp-agent 13707 root  mem    REG      
> 254,0  4084000  2362965
> /usr/lib/locale/locale-archive
> pxp-agent 13707 root  mem    REG      
> 254,0    14664  1835036
> /lib/x86_64-linux-gnu/libdl-2.19.so
> pxp-agent 13707 root  mem    REG      
> 254,0  1738176  1835031
> /lib/x86_64-linux-gnu/libc-2.19.so
> pxp-agent 13707 root  mem    REG      
> 254,0   137440  1835025
> /lib/x86_64-linux-gnu/libpthread-2.19.so
> pxp-agent 13707 root  mem    REG      
> 254,0  1051056  1835037
> /lib/x86_64-linux-gnu/libm-2.19.so
> pxp-agent 13707 root  mem    REG      
> 254,0    31784  1835048
> /lib/x86_64-linux-gnu/librt-2.19.so
> pxp-agent 13707 root  mem    REG      
> 254,0  1612392   528673
> /opt/puppetlabs/puppet/lib/leatherman_locale.so
> pxp-agent 13707 root  mem    REG      
> 254,0   904568   528695
> /opt/puppetlabs/puppet/lib/leatherman_logging.so
> pxp-agent 13707 root  mem    REG      
> 254,0  1090776   528670
> /opt/puppetlabs/puppet/lib/leatherman_json_container.so
> pxp-agent 13707 root  mem    REG      
> 254,0  1174328   528667
> /opt/puppetlabs/puppet/lib/leatherman_util.so
> pxp-agent 13707 root  mem    REG      
> 254,0   483240   528676
> /opt/puppetlabs/puppet/lib/leatherman_file_util.so
> pxp-agent 13707 root  mem    REG      
> 254,0   554856   528660
> /opt/puppetlabs/puppet/lib/leatherman_execution.so
> pxp-agent 13707 root  mem    REG      
> 254,0  1939616   528678
> /opt/puppetlabs/puppet/lib/libcrypto.so.1.0.0
> pxp-agent 13707 root  mem    REG      
> 254,0   442496   525618
> /opt/puppetlabs/puppet/lib/libssl.so.1.0.0
> pxp-agent 13707 root  mem    REG      
> 254,0  1438936   525621
> /opt/puppetlabs/puppet/lib/libcpp-pcp-client.so
> pxp-agent 13707 root  mem    REG      
> 254,0   140928  1835026
> /lib/x86_64-linux-gnu/ld-2.19.so
> pxp-agent 13707 root  mem    REG      
> 254,0    26258  2362096
> /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
> pxp-agent 13707 root    0r   CHR      
> 1,3      0t0     5999 /dev/null
> pxp-agent 13707 root    1u  unix
> 0xffff880036d66800      0t0 31627748
> socket pxp-agent 13707 root    2u 
> unix 0xffff880036d66800      0t0
> 31627748 socket pxp-agent 13707 root  
> 3w   REG              254,0        0 
> 4591085
> /var/log/puppetlabs/pxp-agent/pxp-agent.log
> pxp-agent 13707 root    4u  0000      
> 0,11        0     5995 anon_inode
> pxp-agent 13707 root    5u  0000 ...
(more)
edit flag offensive delete link more

Comments

Thanks for ur reply. This worked. Just needed one more command to start the service: systemctl start pxp-agent.service

Deepmangal gravatar imageDeepmangal ( 2016-07-20 03:44:27 -0500 )edit

Yes of course you have to start the service.
Thing is, using razor ,i had to enable all puppet services after package installation.

FranzCC gravatar imageFranzCC ( 2016-07-20 07:56:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-07-20 01:52:59 -0500

Seen: 231 times

Last updated: Jul 20 '16