Possible to create a vf interface with the number of SR-IOV vf is 0 or less.

Bug #1982543 reported by Joohyun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Joohyun

Bug Description

Brief Description
-----------------
When creating a vf interface, it is created even if the number of SR-IOV VF is 0 or less.

Severity
--------
Minor

Steps to Reproduce
------------------
Create a vf interface with the number of SR-IOV VF is 0 or less.

Expected Behavior
------------------
Creation failure

Actual Behavior
----------------
Creation success

Reproducibility
---------------
100%

System Configuration
--------------------
All

Branch/Pull Time/Commit
-----------------------
N/A

Last Pass
---------
N/A

Timestamp/Logs
--------------
N/A

Test Activity
-------------
Sanity

Workaround
----------
N/A

Joohyun (ohjoohyun)
summary: - possible to create a vf interface with the number of SR-IOV vf is 0 or
+ Possible to create a vf interface with the number of SR-IOV vf is 0 or
less.
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/config/+/850857

Changed in starlingx:
status: New → In Progress
Ghada Khalil (gkhalil)
tags: added: stx.networking
Changed in starlingx:
importance: Undecided → Low
assignee: nobody → Joohyun (ohjoohyun)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/850857
Committed: https://opendev.org/starlingx/config/commit/d0ebe605dc6ca5940e5d746f656fcccfbd12f0e6
Submitter: "Zuul (22348)"
Branch: master

commit d0ebe605dc6ca5940e5d746f656fcccfbd12f0e6
Author: Joohyun <email address hidden>
Date: Mon Jul 25 16:08:32 2022 +0900

    Disallow with sriov_numvfs is 0 or less when creating vf interface

    When creating a vf interface, it is created even if the number of SR-IOV VFs is
    0 or less.

    Closes-Bug: 1982543

    Test Plan:
    PASS: Create vf interface with the number of SR-IOV VF is 1 and
          succeed in creation
    PASS: Create vf interface with the number of SR-IOV VF is -1 and
          fail in creation

    Signed-off-by: Joohyun <email address hidden>
    Change-Id: I69ccf8d192fb57c54425e1229ee93a864ebf2573

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.8.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.