Bug 2030534 - Node selector/tolerations rules are evaluated too early
Summary: Node selector/tolerations rules are evaluated too early
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.10.0
Assignee: Gilad Lekner
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-09 04:30 UTC by Guohua Ouyang
Modified: 2022-03-10 16:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:32:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
node was found after typing key (708.08 KB, image/gif)
2021-12-09 04:30 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10735 0 None Closed dnf mark install command on 8.4 and later qcow2 images fails with " AttributeError: 'MarkCommand' object has no attribut... 2022-04-12 13:28:11 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:33:11 UTC

Description Guohua Ouyang 2021-12-09 04:30:03 UTC
Created attachment 1845389 [details]
node was found after typing key

Description of problem:
Node selector/tolerations rules are evaluated too early, the node was found even without input value, without value inputed, the VM is not schedulable. 
The node should only be found after typing key and value.

$ oc describe pod virt-launcher-fedora-k7spt
Events:
  Type     Reason            Age   From               Message
  ----     ------            ----  ----               -------
  Warning  FailedScheduling  15s   default-scheduler  0/6 nodes are available: 1 node(s) had taint {key: test}, that the pod didn't tol
erate, 2 node(s) didn't match Pod's node affinity/selector, 3 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't
 tolerate.


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


How reproducible:


Steps to Reproduce:
1. label a node key=test
2. create a vm and add label in node selector by just adding key.
3. start the vm

Actual results:
node was found by just typing key there.

Expected results:
node was only found by typing key=test.

Additional info:

Comment 3 Guohua Ouyang 2022-01-10 03:02:07 UTC
verified on master

Comment 6 errata-xmlrpc 2022-03-10 16:32:46 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.

https://access.redhat.com/errata/RHSA-2022:0056


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