Bug 2190438

Summary: VM - Actions - Copy SSH command misses user name
Product: Container Native Virtualization (CNV) Reporter: Dominik Holler <dholler>
Component: User ExperienceAssignee: Tal Nisan <tnisan>
Status: VERIFIED --- QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.12.3CC: gouyang, ycui
Target Milestone: ---   
Target Release: 4.14.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Dominik Holler 2023-04-28 12:21:50 UTC
Description of problem:
VM - Actions - "Copy SSH command" copies
"virtctl -n dholler ssh undefined@rhel9-nxtj8va0a4fyperf",
while the VM Details shows the expected
"virtctl -n dholler ssh cloud-user@rhel9-nxtj8va0a4fyperf"


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

How reproducible:
100%

Steps to Reproduce:
1. Create a Linux VM
2. Boot it
3. Click on "Actions" "Copy SSH command" 
4. Paste

Actual results:
"virtctl -n dholler ssh undefined@rhel9-nxtj8va0a4fyperf"

Expected results:
"virtctl -n dholler ssh cloud-user@rhel9-nxtj8va0a4fyperf"

Additional info:

Comment 2 Guohua Ouyang 2023-08-02 01:03:45 UTC
verified on kubevirt-console-plugin-rhel9:v4.14.0-2373, now the command look like:
virtctl -n default ssh centos@centos-stream8-organisational-eel --identity-file=<path_to_sshkey>