Bug 1855492 - [4.5][sriov] unlimit the max allowed mtu value in sriov network node policy
Summary: [4.5][sriov] unlimit the max allowed mtu value in sriov network node policy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.5.z
Assignee: zenghui.shi
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On: 1855491
Blocks: 1855496
TreeView+ depends on / blocked
 
Reported: 2020-07-10 00:54 UTC by zenghui.shi
Modified: 2020-07-22 12:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1855491
: 1855496 (view as bug list)
Environment:
Last Closed: 2020-07-22 12:20:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift sriov-network-operator pull 291 0 None closed BUG 1855492: Unlimit max mtu size 2020-08-17 17:39:20 UTC
Red Hat Product Errata RHBA-2020:2956 0 None None None 2020-07-22 12:21:05 UTC

Description zenghui.shi 2020-07-10 00:54:13 UTC
+++ This bug was initially created as a clone of Bug #1855491 +++

Description of problem:


Currently SriovNetworkNodePolicy CRD limits the mtu value to be in the range of:
1 <= mtu <= 9000,  but user may want to set mtu outside of the allowed range, such as 9100. 

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

How reproducible:
always

Steps to Reproduce:
1. create a SriovNetworkNodePolicy CR with mtu set to 9100
2.
3.

Actual results:
SriovNetworkNodePolicy CR is rejected


Expected results:
SriovNetworkNodePolicy CR is accepted

Additional info:

Comment 6 zhaozhanqi 2020-07-16 03:02:14 UTC
Verified this bug on 4.5.0-202007160100.p0

apply policy with mtu is 9200 as below:

apiVersion: sriovnetwork.openshift.io/v1
kind: SriovNetworkNodePolicy
metadata:
  name: intel-netdevice
  namespace: openshift-sriov-network-operator
spec:
  deviceType: netdevice
  nicSelector:
    pfNames:
      - ens1f0
    rootDevices:
      - '0000:3b:00.0'
    vendor: '8086'
  nodeSelector:
    feature.node.kubernetes.io/sriov-capable: 'true'
  numVfs: 5
  mtu: 9200
  priority: 99
  resourceName: intelnetdevice


******************check the node state*****
  - Vfs:
    - deviceID: 154c
      driver: iavf
      mtu: 9200
      pciAddress: 0000:3b:02.0
      vendor: "8086"
      vfID: 0
    - deviceID: 154c
      driver: iavf
      mtu: 9200
      pciAddress: 0000:3b:02.1
      vendor: "8086"
      vfID: 1

Comment 8 errata-xmlrpc 2020-07-22 12:20:42 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:2956


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