Bug 2017656 - VM IP address is "undefined" under VM details -> ssh field
Summary: VM IP address is "undefined" under VM details -> ssh field
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.8
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.10.0
Assignee: Yaacov Zamir
QA Contact: Leon Kladnitsky
Depends On:
TreeView+ depends on / blocked
Reported: 2021-10-27 06:53 UTC by Orel Misan
Modified: 2022-03-10 16:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2022-03-10 16:22:12 UTC
Target Upstream Version:

Attachments (Terms of Use)
Screenshot of VM details -> ssh command field (10.74 KB, image/png)
2021-10-27 06:53 UTC, Orel Misan
no flags Details

System ID Private Priority Status Summary Last Updated
Github openshift console pull 10371 0 None Merged Bug 2017656: None admin users gan't fetch api url, fallback gracefully 2021-11-14 08:06:15 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:22:25 UTC

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.


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