The Command pf9ctl cluster prep-node Fails to Onboard The Host Due To Unavailability of The NTP Pack
Problem
The
pf9ctl cluster prep-nodecommand fails to prepare the node so that it can be added to the Platform9 Managed Kubernetes cluster.The below errors are visible in the pf9ctl logs /root/pf9/log/pf9ctl.log.
TASK [ntp : Install NTP] ***************************************************************************************************************************************************************************************************************failed: [localhost] (item=ntp) => {"ansible_loop_var": "item", "changed": false, "failures": ["No package ntp available."], "item": "ntp", "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}Environment
Platform9 Managed Kubernetes - v4.0 and Higher
Cause
The active repository do not provide NTP package which is needed to onboard a node.
Resolution
Follow the steps provided in the Fedora wiki to add the EPEL repository which contains the NTP package.
You can also verify that the EPEL repository is enabled on the system by listing all active repositories using the following command.
# yum repolistAfter adding the EPEL repository install NTP package by running the below command.
# yum install ntpRun the below command to onboard the node.
PreviousHost Onboarding Command "pf9ctl cluster prep-node" fails on task "Enable and start NTP"
NextWorker Node Intermittently Entering Into "Ready, SchedulingDisabled" State
Last updated
