Failure while creating the 'SriovNetworkNodePolicy' CR.
Issue
- Below is the
SriovNetworkNodePolicy
CR yaml.
[root@hostname ~]# cat sriovnetnode.yaml
apiVersion: sriovnetwork.openshift.io/v1
kind: SriovNetworkNodePolicy
[...]
nodeSelector:
feature.node.kubernetes.io/network-sriov.capable: 'true'
[...]
- While creating the CR, it is failing with error as below;
[root@hostname ~]# oc create -f sriovnetnode.yaml
Error from server (no matched node is selected by the nodeSelector in CR XXXX): error when creating "sriovnetnode.yaml": admission webhook "operator-webhook.sriovnetwork.openshift.io" denied the request: no matched node is selected by the nodeSelector in CR XXXXX
[root@hostname ~]#
Environment
- OpneShift Container Platform 4.x
- SR-IOV based additional network.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.