Hostagent Installation Failing Due To Apt Key Being Not Present.

Problem

The host/node will remain Disconnected to Platform9 Management Plane. Within the node Platform9 service hostagent will be in failed state due the package installation failure.

In the hostagent logs, the errors related to package installation can be observed as shown below:

Manual installation if Hostagent package
Copy

Running apt update command manually showed the following warnings:

apt update error:
Copy

Environment

  • Platform9 Managed OpenStack - v5.4 and Higher.
  • Ubuntu Operating system.

Cause

The signatures couldn't be verified because the public key is not available.

Resolution

The error message indicates that when attempting to update or install packages from the repository, the verification of package signatures failed because the public key necessary for verification is not available. In the context of package management, this typically means that the system does not have the necessary cryptographic key to verify the authenticity and integrity of the packages in the repository.

To unblock this, Need to manually add the keys in the affected node:

Solution
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard