Bug 2077907 - vmconsole-proxy-helper.cer not refreshed by engine-setup
Summary: vmconsole-proxy-helper.cer not refreshed by engine-setup
Keywords:
Status: CLOSED DUPLICATE of bug 1988496
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-22 14:47 UTC by Andreas Bleischwitz
Modified: 2022-04-22 15:01 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-22 15:01:29 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-45852 0 None None None 2022-04-22 14:48:39 UTC

Description Andreas Bleischwitz 2022-04-22 14:47:35 UTC
Description of problem:
Serial console connection wasn't working after some time. Further analysis showed that the engine.log stated the following:

~~~
2022-04-22 16:05:59,267+02 ERROR [org.ovirt.engine.core.services.VMConsoleProxyServlet] (default task-322) [] Error validating ticket: : sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
....
~~~

Following the path of vmconsole-proxy, I found that /etc/pki/ovirt-engine/certs/vmconsole-proxy-helper.cer expired:

~~~
# openssl x509 -in /etc/pki/ovirt-engine/certs/vmconsole-proxy-helper.cer -noout -dates
notBefore=Dec  3 14:35:40 2020 GMT
notAfter=Jan  6 14:35:40 2022 GMT
~~~

Setting OVESETUP_VMCONSOLE_PROXY_CONFIG/vmconsoleProxyConfig=bool to False and re-running engine-setup with --reconfigure-optional-components didn't re-create that expired certificate.

Version-Release number of selected component (if applicable):
rhvm-4.4.10.7-0.4.el8ev.noarch

How reproducible:
Always (after 2 years)

Steps to Reproduce:
1. Install rhv, enable vmconsole
2. step-tick clock 2+ years ahead
3. see ssh-vmconsole connection failing even after re-running engine-setup

Actual results:
engine-setup misses to update vmconsole-proxy-helper.cer

Expected results:
engine-setup checks validity of vmconsole-proxy-helper.cer and re-creates if required.

Additional info:

Comment 1 Andreas Bleischwitz 2022-04-22 15:01:29 UTC

*** This bug has been marked as a duplicate of bug 1988496 ***


Note You need to log in before you can comment on or make changes to this bug.