Bug 1977037

Summary: VNC console stays in Connecting state.
Product: OpenShift Container Platform Reporter: Martin Ouimet <mouimet>
Component: Console Kubevirt PluginAssignee: Yaacov Zamir <yzamir>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: urgent Docs Contact:
Priority: high    
Version: 4.8CC: aos-bugs, cnv-qe-bugs, fdeutsch, glekner, gouyang, mgarrell, sgott, yadu, ycui, yzamir
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: OCP 4.8 use apVersion v1 for virtualMachines CNV 2.6.5 use apiVersion v1aplpha1 for virtualMachines Consequence: OCP 4.8 does not allow none supported virtualMachines to load. Fix: Make OCP 4.8 support both apiVersions Result: OCP 4.8 does allow all supported virtualMachines to load.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:36:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1980302    
Attachments:
Description Flags
screenshot of Openshift Console
none
VM definition none

Description Martin Ouimet 2021-06-28 19:32:44 UTC
Created attachment 1795563 [details]
screenshot of Openshift Console

Description of problem:
Cannot connect to VNC console using the Openshift web console and virtctl command

[21-06-28|15:22:37]~>virtctl vnc rhel8-homeless-rabbit
{"component":"","level":"info","msg":"connection timeout: 1m0s","pos":"vnc.go:144","timestamp":"2021-06-28T15:22:38.122078Z"}
Error encountered: exec: "remote-viewer": executable file not found in $PATH



Version-Release number of selected component (if applicable):
Openshift 4.8.0-rc.1
CNV: 2.6.5
Fresh installation deployed with assisted bare metal ( running on baremetal single node deployment (SNO))

How reproducible:


Steps to Reproduce:
1. Install Openshift 4.8.0-rc.1 ( I have not tested another method than Assisted SNO)
2. Install Openshift CNV operator, create HCO
3. Spin a VM 
In my case I imported a RHEL 8.3 ISO as a boot CDROM. 

Actual results:
Import succeed 
Pod virtlauncher is in Running state. 
VM is in running state
Cannot connect to VNC, web UI shows Connecting 

Expected results:
VNC console shows VM display. 

Additional info:

Comment 1 sgott 2021-06-28 21:09:33 UTC
Hi Martin,

Could you attach the yaml file for your VM definition? Also, must-gather output would be very helpful to help us diagnose what happened.

Comment 2 Israel Pinto 2021-06-29 06:35:38 UTC
Hi Martin,

CNV 2.6.5 should be installed on OCP 4.7. What did you install with OCP 4.8 RC-0?

Comment 3 Martin Ouimet 2021-06-29 13:22:22 UTC
Hi, I simply took the version that was in the Operator Hub of the newly installed OCP 4.8. which is 2.6.5... can this issue be related to a mismatch of versions ? Thanks,

Comment 4 Martin Ouimet 2021-06-29 13:24:43 UTC
Created attachment 1795801 [details]
VM definition

Comment 5 Martin Ouimet 2021-06-29 13:26:44 UTC
The VM (see attachment) was created using the VM creating wizard.

Comment 6 sgott 2021-06-30 12:14:00 UTC
Martin,

Could you please confirm that the VM is actually running. The yaml you shared has "Running = false"

Please install virt-viewer in order to confirm behavior of "virtctl vnc"

Comment 7 Jed Lejosne 2021-07-01 15:21:44 UTC
I just installed the latest OCP 4.8 nightly + CNV 2.6.5 + HCO to reproduce this issue and for some reason, in the web UI, "Virtual Machines" does not appear under "Workloads".
I double checked that everything is running fine, I'm not sure what's causing this.
Any idea would be appreciated!
Thanks

Comment 8 sgott 2021-07-01 20:42:45 UTC
Yaacov,

Can you help out Jed? per Comment #7.

Comment 9 Guohua Ouyang 2021-07-02 12:17:49 UTC
(In reply to Jed Lejosne from comment #7)
> I just installed the latest OCP 4.8 nightly + CNV 2.6.5 + HCO to reproduce
> this issue and for some reason, in the web UI, "Virtual Machines" does not
> appear under "Workloads".
> I double checked that everything is running fine, I'm not sure what's
> causing this.
> Any idea would be appreciated!
> Thanks

If it's OCP 4.8 nightly, it should has the fixes that could show virtualization on CNV 2.6.5, it's confirmed that OCP 4.8.0-rc.1 works with CNV 2.6.

ref link: https://bugzilla.redhat.com/show_bug.cgi?id=1977355#c2

Comment 10 Guohua Ouyang 2021-07-02 12:42:07 UTC
Confirmed the issue is reproduced on OCP-4.8.0-rc.1 + 2.6.5.

Comment 11 Jed Lejosne 2021-07-02 17:27:32 UTC
Found rc1 and finally got a repro.
I confirmed that `virtctl vnc` works fine, so the issue must be UI-related...
I also tried creating a VM in the default namespace, in case the namespace was somehow omitted, but no luck there either.

Comment 12 Guohua Ouyang 2021-07-07 02:23:43 UTC
clear the needinfo.

Comment 14 Guohua Ouyang 2021-07-13 08:39:58 UTC
Verified on CNV 2.6.6 + OCP master

Comment 15 mgarrell 2021-07-22 19:06:31 UTC
Merged PR for 4.8 release notes - https://github.com/openshift/openshift-docs/pull/34736

Comment 18 errata-xmlrpc 2021-10-18 17:36:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759

Comment 19 Red Hat Bugzilla 2023-09-15 01:10:41 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days