Skip to content

PKIX path building failed when trying to add a host to the cluster with HTTPS linstor #8963

Open
@0sorkon

Description

@0sorkon
  • Bug Report
COMPONENT NAME
agent
CLOUDSTACK VERSION
controller - 4.18.1.0-shapeblue1
target host agent - 4.18.2.0-shapeblue0
CONFIGURATION

advanced networking
linstror as primary storage (https://storage.primary.company.net:3371)

OS / ENVIRONMENT

ubuntu 22.04

SUMMARY

When trying to add a host to the cluster, the host is added in an alert state. In the management server logs:
2024-04-23 13:47:41,730 WARN [c.c.a.m.AgentManagerImpl] (AgentConnectTaskPool-463:ctx-9e5be0cf) (logid:7611540c) Monitor StoragePoolMonitor says there is an error in the connect process for 64 due to Unable to connect host 64 to storage pool id 1 due to com.cloud.utils.exception.CloudRuntimeException: Unable establish connection from storage head to storage pool 1 due to javax.ws.rs.ProcessingException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

The other few hosts of version 4.18.1.0 were added normally.

Certificates were added to the java keystore before the addition

keytool -import -trustcacerts -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -alias linstor_controller -file /tmp/linstor.crt

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions