Why VM live migration in RHV is failing with error "The certificate is not trusted"?
Issue
- Live migration of the VMs in RHV is failing and the below error is logged in the vdsm destination logs:
libvirt.libvirtError: operation failed: Failed to connect to remote libvirt URI qemu+tls://destination.example.com/system: authentication failed: Failed to verify peer's certificate
- Journalctl logs below error:
Dec 20 00:06:02 source journal[3558]: Certificate check failed Certificate failed validation: The certificate is not trusted.
Dec 20 00:06:02 source journal[3558]: authentication failed: Failed to verify peer's certificate
- The certificates of hosts were renewed from the RHV-M portal using the
Enroll Certificate
option. - All the RHV certificates show validity when the certificates are checked using OpenSSL commands.
Environment
- Red Hat Virtualization (RHV) 4.4.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.