Hello, i have a strange situation. I have Puppet s...
# puppet
o
Hello, i have a strange situation. I have Puppet sever open source 7 and i have RHEL 9 virtual machine (VM). On this VM i installed Puppet agent and it was working fine. Then this VM was moved to another network and its hostname was changed. Now when i logged into this VM, it's new hostname is "a-dfweq-pgk-001". I went to Puppet server and checked - there is no certificate for this hostname. Then i returned to client VM and stopped puppet service and removed /etc/puppetlabs/puppet/ssl directory completely and after that i executed "puppet agent -t". Usually it should make a new CSR and contact Puppet server to auto sign certificate. But right now i have next error:
Copy code
a-dfweq-pgk-001 /etc/puppetlabs/puppet # puppet agent -t
Error: Connection to https://d-dfweq-vua-011.example.com:8140/puppet-ca/v1 failed, trying next route: Request to https://d-dfweq-vua-011.example.com:8140/puppet-ca/v1 failed after 0.005 seconds: Connection reset by peer - SSL_connect
Wrapped exception:
Connection reset by peer - SSL_connect
Error: No more routes to ca
Error: No more routes to ca
I can see that puppet agent didn't created certificates:
Copy code
a-dfweq-pgk-001 /etc/puppetlabs/puppet # tree ssl
ssl
├── certificate_requests
├── certs
├── private
├── private_keys
└── public_keys
What interesting when i check on the client VM nslookup, ping, and nc -vz d-dfweq-vua-011.example.com 8140 everything is ok. I even checked tcpdump on Puppet server -> traffic is going ok in both directions. Also i checked SELinux, restarted puppetserver service, checked puppet.conf on client VM. Could you please help me to fix this issue? (also i was using ChatGPT to troubleshoot it, followed all suggestions and it is still not resolved)
✅ 1