InvalidConfigException is raised when vfid is 0 - NIC Partitioning feature

Bug #1831853 reported by Karthik S
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
In Progress
Medium
Karthik S

Bug Description

During overcloud deployment using NIC Partitioning, if vfid 0 is used then InvalidConfigException is 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.

Karthik S (ksundara)
Changed in tripleo:
assignee: nobody → Karthik S (ksundara)
Revision history for this message
Saravanan KR (skramaja) wrote :
Changed in tripleo:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-net-config 9.4.0

This issue was fixed in the openstack/os-net-config 9.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-net-config 8.5.0

This issue was fixed in the openstack/os-net-config 8.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-net-config 11.1.0

This issue was fixed in the openstack/os-net-config 11.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-net-config 10.4.1

This issue was fixed in the openstack/os-net-config 10.4.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers