Unable To Onboard Host by Running 'pf9ctl cluster prep-node' Command as 'Download Platform9 installe

Problem

  • The " pf9ctl cluster prep-node" command 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.

TASK [pf9-hostagent : Download Platform9 installers] ************************************************************************************* fatal: [localhost]: FAILED! => {"changed": false, "dest": "/tmp/platform9-install-debian.sh", "elapsed": 0, "msg": "Request failed: [urlopen error [Errno 111] Connection refused]", "url": "https://[pmk-fqdn]/clarity/platform9-install-debian.sh"}
  • Below logs are reported /root/pf9/log/pf9ctl.log

2021-01-07 17:55:45,169 - pf9.express - INFO - pf9.expressInitialized2021-01-07 17:55:45,172 - pf9.cluster.commands - INFO - prep-node2021-01-07 17:55:45,172 - pf9.modules.express - ERROR - No active config. Please define or activate a config.NoneType: None

Environment

  • Platform9 Managed Kubernetes - v4.0 and Higher

Cause

Config file ~/pf9/db/express.conf created is invalid.

Resolution

  1. Validate the configuration by running the below command.

# pf9ctl config validate Config [user-domain-url] Validation Successful
  1. If the error persists, recreate the pf9ctl config using the below command.

Last updated