Bug 2017656

Summary: VM IP address is "undefined" under VM details -> ssh field
Product: OpenShift Container Platform Reporter: Orel Misan <omisan>
Component: Console Kubevirt PluginAssignee: Yaacov Zamir <yzamir>
Status: CLOSED ERRATA QA Contact: Leon Kladnitsky <lkladnit>
Severity: high Docs Contact:
Priority: high    
Version: 4.8CC: airshad, aos-bugs, cnv-qe-bugs, gouyang, phoracek, tnisan, ycui
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:22:12 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:
Description Flags
Screenshot of VM details -> ssh command field none

Description Orel Misan 2021-10-27 06:53:22 UTC
Created attachment 1837493 [details]
Screenshot of VM details -> ssh command field

Description of problem:
Under virtual machine details screen, there is a ssh command field, the field shows the VM's IP address as "undefined"

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Create a new VM from a template
2. Go to Workloads -> Virtualization -> Virtual Machines tab
3. Select the newly created VM.
4. Go to "Details" tab -> ssh command field (screenshot is attached).

Actual results:
"ssh cloud-user@undefined -p 32129"

Expected results:
ssh cloud-user@<IP address> -p <port>"

Additional info:

Comment 1 Guohua Ouyang 2021-10-28 09:55:38 UTC
Didn't see this problem before and could not reproduce it on QE's cluster.

Comment 2 Tal Nisan 2021-11-01 10:49:07 UTC
Guohua, can you please try on a VM without an IP? (Perhaps by creating it without a network interface?), if the problem reproduces we just need to not display the SSH link for a VM without an IP

Comment 3 Guohua Ouyang 2021-11-01 12:27:51 UTC
Could reproduce the problem when logged in with normal user.

Comment 4 Yaacov Zamir 2021-11-01 15:01:53 UTC
moving to high because of a customer request

Comment 5 Yaacov Zamir 2021-11-01 17:07:33 UTC
None admin user does not know the cluster IP address, it's intentional.
We can't allow a user to get the cluster URL, a user that does not have permissions to get the cluster URL via the UI,
will fall back to a helpful hint "<CLUSTER_URL>" and will acquire in the IP/URL from a different source.

Comment 8 Leon Kladnitsky 2021-11-14 08:15:48 UTC
Verified on 4.10.0-0.nightly-2021-11-09-181140.

Comment 11 errata-xmlrpc 2022-03-10 16:22:12 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.10.3 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.