Bug 2067246 - [CNV]: Unable to ssh to Virtual Machine post changing Flavor tiny to custom
Summary: [CNV]: Unable to ssh to Virtual Machine post changing Flavor tiny to custom
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.9.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.0
Assignee: Matan Schatzman
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks: 2090124
TreeView+ depends on / blocked
 
Reported: 2022-03-23 15:18 UTC by nsurati
Modified: 2022-10-27 17:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-14 19:29:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11508 0 None Merged Bug 2067246: Removing SSH service selectors to minimum required 2022-07-21 18:40:17 UTC
Red Hat Issue Tracker CNV-17109 0 None None None 2022-10-27 17:59:36 UTC
Red Hat Knowledge Base (Solution) 6838011 0 None None None 2022-03-23 17:04:48 UTC

Description nsurati 2022-03-23 15:18:13 UTC
Description of problem:

Unable to ssh to Virtual Machine post changing Flavor tiny to custom.

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

CNV 4.9

How reproducible:

Always

Steps to Reproduce:

1. Create VM with tiny or medium flavor

2. Try to ssh to VM and it works

3. Change VM flavor to Custom

4. Try to ssh to VM and it stop working


Actual results:

Unable to ssh to virtual machine

Expected results:

ssh to virtual machine should work post flavor change to custom

Additional info:

Basically post flavor change to custom. SVC still have selector "{"flavor.template.kubevirt.io/tiny":"true" [1] However Virt-launcher POD already remove LABEL ""kubevirt.io/size":"tiny". [2] 
 

[1]
# oc get svc fedora-ssh-service -o jsonpath='{..spec.selector..}' | tr -s , '\n'
{"flavor.template.kubevirt.io/tiny":"true"  <--------------
"kubevirt.io/domain":"fedora"
"os.template.kubevirt.io/fedora34":"true"
"vm.kubevirt.io/name":"fedora"
"workload.template.kubevirt.io/server":"true"} true fedora true fedora true


[2]
# oc get po virt-launcher-fedora-98ccw -o jsonpath='{..metadata.labels..}' | tr -s , '\n'
{"kubevirt.io":"virt-launcher"
"kubevirt.io/created-by":"294b69b0-9067-45e9-8fe8-0f3862edd2ad"
"kubevirt.io/domain":"fedora"
"os.template.kubevirt.io/fedora34":"true"
"vm.kubevirt.io/name":"fedora"
"workload.template.kubevirt.io/server":"true"} 294b69b0-9067-45e9-8fe8-0f3862edd2ad fedora true fedora true virt-launcher




Removing ""flavor.template.kubevirt.io/tiny":"true" SELECTOR from svc restore ssh-service

Comment 4 Kedar Bidarkar 2022-05-11 12:16:35 UTC
We think, this is a issue specific to the WebUI. 
Feel free to revert it back to Virtualization component, if you feel otherwise.

Moving to User-experience Component.

Comment 6 Guohua Ouyang 2022-05-25 08:49:34 UTC
note for verify: verify the bug on the new ui kubevirt-plugin and openshift/console

Comment 7 Guohua Ouyang 2022-05-26 02:10:54 UTC
verified on new ui and openshift/console master.
1. reproduced the problem on 4.10.15
2. verified the bug on console master branch, ssh is okay after edit VM flavor to custom.

Comment 11 errata-xmlrpc 2022-09-14 19:29:18 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 (Important: OpenShift Virtualization 4.11.0 Images security and bug fix 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-2022:6526


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