Node not Joining Cluster

Problem

Node is not able to join the cluster.

Environment

  • Platform9 Managed Kubernetes - All versions

Cause

  • Pf9 user permissions issue.

2024-08-08 22:09:18,781 - pf9_app.py INFO - Setting the desired service state
2024-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-comms
2024-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 database

2024-08-08 22:09:18,789 - pf9_app.py WARNING - Failed to set service pf9-comms to state True
2024-08-08 22:09:18,789 - pf9_app_cache.py INFO - Downloading pf9-kube.1.27.13-pmk.208
2024-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.deb
2024-08-08 22:09:18,789 - pf9_app.py INFO - Removing pf9-kube.1.28.6-pmk.26
2024-08-08 22:09:18,916 - pf9_app.py INFO - Setting the desired service state
2024-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-nodeletd

Resolution

  • 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.