Node not Joining Cluster
Problem
Node is not able to join the cluster.
Environment
- Platform9 Managed Kubernetes - All versions
Cause
- Pf9 user permissions issue.
x
2024-08-08 22:09:18,781 - pf9_app.py INFO - Setting the desired service state2024-08-08 22:09:18,781 - pf9_app.py INFO - Setting service state pf9-comms.5.9.3-1192.99bd9ba. Command: sudo systemctl start pf9-comms2024-08-08 22:09:18,788 - pf9_app.py ERROR - Command sudo systemctl start pf9-comms, code=1 stdout= stderr=sudo: you do not exist in the passwd database2024-08-08 22:09:18,789 - pf9_app.py WARNING - Failed to set service pf9-comms to state True2024-08-08 22:09:18,789 - pf9_app_cache.py INFO - Downloading pf9-kube.1.27.13-pmk.2082024-08-08 22:09:18,789 - pf9_app_cache.py INFO - Using previously cached file /var/cache/pf9apps/pf9-kube/1.27.13-pmk.208/pf9-kube-1.27.13-pmk.208.x86_64.deb2024-08-08 22:09:18,789 - pf9_app.py INFO - Removing pf9-kube.1.28.6-pmk.262024-08-08 22:09:18,916 - pf9_app.py INFO - Setting the desired service state2024-08-08 22:09:18,916 - pf9_app.py INFO - Setting service state pf9-nodeletd.1.28.6-pmk.26. Command: sudo systemctl stop pf9-nodeletd2024-08-08 22:09:18,922 - pf9_app.py ERROR - Command sudo systemctl stop pf9-nodeletd, code=1 stdout= stderr=sudo: you do not exist in the passwd database 2024-08-08 22:09:18,922 - pf9_app.py WARNING - Failed to set service pf9-nodeletd to state False2024-08-08 22:09:19,283 - pf9_app_db.py ERROR - Erase command failed : sudo /opt/pf9/hostagent/bin/pf9-apt erase pf9-kube. Return code: 1, stdout: , stderr: sudo: you do not exist in the passwd databaseResolution
- Check pf9 user permissions.
# lslogins pf9 # chage -l pf9# sudo -l -U pf9# ls -l /etc/sudoers /etc/sudoers.d/*# grep "^pf9:" /etc/passwd /etc/shadow# namei -l /var/opt/pf9/hostagent/data.conf- If there is any issue with the pf9 user account and sudoers, fix those permissions.
Was this page helpful?