Bug 1712401 - [OSP13] Python exception when passing vfid 0 to sriov_vf NIC
Summary: [OSP13] Python exception when passing vfid 0 to sriov_vf NIC
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: os-net-config
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z8
: 13.0 (Queens)
Assignee: Karthik Sundaravel
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks: 1723271
TreeView+ depends on / blocked
 
Reported: 2019-05-21 12:21 UTC by Vadim Khitrin
Modified: 2019-09-03 16:55 UTC (History)
10 users (show)

Fixed In Version: os-net-config-8.4.4-5.el7ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1723271 (view as bug list)
Environment:
Last Closed: 2019-09-03 16:55:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 663531 0 None MERGED Fixed the false InvalidConfigException for vfid=0 2020-10-05 14:20:48 UTC
Red Hat Product Errata RHBA-2019:2624 0 None None None 2019-09-03 16:55:53 UTC

Description Vadim Khitrin 2019-05-21 12:21:28 UTC
Description of problem:
During overcloud deployment, when attempting to configure SR-IOV VF 0, a python exception will be raised.

Example NIC config passed during deployment:
- type: sriov_vf
  vlan_id:
    get_param: InternalApiNetworkVlanID
  device: p7p2
  vfid: 0
  addresses:
    - ip_netmask:
        get_param: InternalApiIpSubnet

os-net-config will fail to run with the following exception which will cause the deployment to fail:
    Traceback (most recent call last):
      File "/usr/bin/os-net-config", line 10, in <module>
        sys.exit(main())
      File "/usr/lib/python2.7/site-packages/os_net_config/cli.py", line 269, in main
        obj = objects.object_from_json(iface_json)
      File "/usr/lib/python2.7/site-packages/os_net_config/objects.py", line 87, in object_from_json
        return SriovVF.from_json(json)
      File "/usr/lib/python2.7/site-packages/os_net_config/objects.py", line 1253, in from_json
        vfid = _get_required_field(json, 'vfid', 'SriovVF')
      File "/usr/lib/python2.7/site-packages/os_net_config/objects.py", line 95, in _get_required_field
        raise InvalidConfigException(msg)
    os_net_config.objects.InvalidConfigException: SriovVF JSON objects require 'vfid' to be configured.

If a VF > 0 supplied, os-net-config will be executed successfully.

Version-Release number of selected component (if applicable):
Puddle: 2019-05-15.1
rpm -qa | grep os-net-config
os-net-config-8.4.4-1.el7ost.noarch

How reproducible:
Always

Steps to Reproduce:
1. Prepare NIC configuration containing SR-IOV VFs
2. Deploy Overcloud
3. Execute os-net-config

Actual results:
os-net-config fails to run causing the deployment to fail.

Expected results:
os-net-config executed successfully.

Additional info:

Comment 13 errata-xmlrpc 2019-09-03 16:55:32 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-2019:2624


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