Rate This Document
Findability
Accuracy
Completeness
Readability

Troubleshooting

An Error Is Reported in the HAF Daemon Log

Symptom:

The following error information is recorded in the HAF daemon log:

[ERROR] [ProcessID:1512097] [daemon_recv] TlsAccept:428] [LINK]target TlsAcceptDeal failed. channelID=0

Solution:

Perform the certificate generation operations on both offload nodes and host nodes.

When haf-tool Is Used to Generate Certificates, the Generation Fails Occasionally

Symptom:

When haf-tool is used to generate a certificate, an error occurs occasionally. The error information is as follows:

/home/omm/haf-install/haf-host/tools/scripts/csr_gen.sh generate host csr failed

Solution:

Generally, this error occurs because the following host scripts have been sourced when the service is started. As a result, the OpenSSL command version conflicts with the local OpenSSL command version. When running the preceding certificate generation command, restart a shell.

Could Not Find the core File During the Running of HAF

Symptom:

When HAF is running, an exception occurs. As a result, the process exits and the coredump file is not found.

Solution:

The core file is generated by the system. HAF does not have the permission to modify the core file. You are advised to check the system configuration file to determine the location where the coredump file is generated.

cat /proc/sys/kernel/core_pattern

Failed to Install HAF in the x86 Environment

Symptom:

The error message "cannot execute binary file: Exec format error" is displayed when HAF is installed in the x86 environment.

Solution:

HAF cannot be installed in the x86 environment. Replace it with the Kunpeng environment.

Insufficient crontab Permission During HAF Installation

Symptom:

An error message "/var/spool/cron/#tmp.client2.XXXXOINOX2: Permission denied" is displayed when installing HAF on offload nodes.

Solution:

  1. Locate the crontab file.
    which crontab

  2. Add the s bit to crontab and change the owner of crontab to root.
    chown root:root /usr/bin/crontab
    chmod u+s /usr/bin/crontab

System Variable Problem During HAF Installation

Symptom:

An error message "failed to generate csr" is displayed during HAF installation on offload nodes.

Possible Cause:

The built-in OpenSSL library is replaced by the libssl.so.1.1 library of HAF. As a result, an error occurs when OpenSSL is running.

Solution:

Check whether the environment variables in /etc/profile import the .so file in the haf directory to the system environment variables. If yes, delete the .so file.