The bug seems not happen on 4.12 but on 4.11.
Fixing: https://github.com/kubevirt-ui/kubevirt-plugin/pull/822
Guohua, this bug was originally fixed against 4.12 by https://github.com/kubevirt-ui/kubevirt-plugin/pull/822 and this ticket was used for that. I think we need to clone this if we want it for 4.11, and to correctly set this back to 4.12, as it was originally.
(In reply to Hilda Stastna from comment #3) > Guohua, > > this bug was originally fixed against 4.12 by > https://github.com/kubevirt-ui/kubevirt-plugin/pull/822 and this ticket was > used for that. > I think we need to clone this if we want it for 4.11, and to correctly set > this back to 4.12, as it was originally.
Move this bug to 4.12 and clone new bug to 4.11.2: https://bugzilla.redhat.com/show_bug.cgi?id=2134668
Tested it on latest 4.12 version, expose ssh service get different results for running and stopped VM. - if the VM is running, expose the ssh service get: ssh cloud-user.uit-412-1005.cnv-qe.rhcloud.com -p 30811 - if the VM is stopped, expose the ssh service get: ssh console-openshift-console.apps.uit-412-1005.cnv-qe.rhcloud.com -p 30811
(In reply to Hilda Stastna from comment #8) > Guohua, > > are you sure that the results should be the same? Yes, If the username is not showing in the ssh command while the VM is stopped, it has no reason to copy it because it won't work, then I see no value to show the ssh command section on UI. > I can see in the code - we get the user name by getting the cloud init > credentials - and we need to know the VMI for that. > And we need a running VM for that. Are we missing something? Thanks. Can it just read the username from cloud-init part in the VM YAML?
Thank you, Guohua, for your reply. I will investigate it to find the best solution and will fix that asap.
verified on v4.12.0-1507, the username is showing in the command while VM is running and stopped
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 (Important: OpenShift Virtualization 4.12.0 Images 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-2023:0408