Bug 1768359 - [sriov] should update to on/off for spoofChk in the template sriovnetwork
Summary: [sriov] should update to on/off for spoofChk in the template sriovnetwork
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.3.0
Hardware: All
OS: All
high
medium
Target Milestone: ---
: 4.3.0
Assignee: Peng Liu
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-04 08:21 UTC by zhaozhanqi
Modified: 2020-01-23 11:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-23 11:10:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift sriov-network-operator pull 113 0 'None' closed BUG 1768359: Keep operator bundle up-to-date 2020-04-24 11:59:19 UTC
Red Hat Product Errata RHBA-2020:0062 0 None None None 2020-01-23 11:10:40 UTC

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


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