Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1768359

Summary: [sriov] should update to on/off for spoofChk in the template sriovnetwork
Product: OpenShift Container Platform Reporter: zhaozhanqi <zzhao>
Component: NetworkingAssignee: Peng Liu <pliu>
Networking sub component: openshift-sdn QA Contact: zhaozhanqi <zzhao>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: high CC: zshi
Version: 4.3.0   
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-23 11:10:30 UTC 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 zhaozhanqi 2019-11-04 08:21:20 UTC
Description of problem:
E1104 08:10:19.992967       1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:126: Failed to list *v1.SriovNetwork: v1.SriovNetworkList.Items: []v1.SriovNetwork: v1.SriovNetwork.Spec: v1.SriovNetworkSpec.SpoofChk: ReadBool: expect t or f, but found ", error found in #10 byte of ...|poofChk":"on","trust|..., bigger context ...|:"z1","resourceName":"intelnetdevice","spoofChk":"on","trust":"off","vlan":0}}],"kind":"SriovNetwork|...
E1104 08:10:20.995795       1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:126: Failed to list *v1.SriovNetwork: v1.SriovNetworkList.Items: []v1.SriovNetwork: v1.SriovNetwork.Spec: v1.SriovNetworkSpec.SpoofChk: ReadBool: expect t or f, but found ", error found in #10 byte of ...|poofChk":"on","trust|..., bigger context ...|:"z1","resourceName":"intelnetdevice","spoofChk":"on","trust":"off","vlan":0}}],"kind":"SriovNetwork|...
Version-Release number of selected component (if applicable):
quay.io/openshift-release-dev/ocp-v4.0-art-dev:v4.2.4-201911010432-ose-sriov-network-operator

How reproducible:
always

Steps to Reproduce:
1. install the sriov operator
2. Create sriovnetwork CR from webconsole, The default value is 'true or 'false for spoofChk and trust. but it cannot be saved with error: Error "Unsupported value: "true": supported values: "on", "off"" for field "spec.spoofChk". So I update it to 'on' and 'off'
  spoofChk: 'on'
  trust: 'off'
3. Check the operator logs

Actual results:
step 3:
See the $description

Expected results:


Additional info:

Comment 1 zhaozhanqi 2019-11-04 10:43:20 UTC
please ignore the $Description, this issue is the template is using 'true' and 'false', but the api only supported 'on/off'.

Comment 2 zhaozhanqi 2019-11-04 10:44:21 UTC
Create sriovnetwork CR from webconsole, The default value is 'true or 'false for spoofChk and trust. but it cannot be saved with error: Error "Unsupported value: "true": supported values: "on", "off"" for field "spec.spoofChk"

Comment 4 zhaozhanqi 2019-11-11 05:19:57 UTC
Verified this bug on latest 4.3 bundle

  }
  vlan: 0
  spoofChk: 'on'
  trust: 'off'
  resourceName: intelnics
  networkNamespace: default

Comment 6 errata-xmlrpc 2020-01-23 11:10:30 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, 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/RHBA-2020:0062