← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1836389] [NEW] Device role tagging doesn't work for SRIOV PF

 

Public bug reported:

Description
===========

Setting a device role tag on a PF interface has no effect on metadata -
IOW, the PF and its tag doesn't appear in the device metadata at all.

Steps to reproduce
==================

1. Create a PF port:

  openstack port show 6dd3b82f-ce2f-44dd-acd0-62b922a7281a
  <snip>
  | binding_host_id | computeovsdpdk-0.localdomain
  | binding_profile | pci_slot='0000:86:00.0', pci_vendor_info='8086:1572', physical_network='east'
  <snip>

2. Boot a VM with that PF, with a device role tag:

   nova boot TRex --flavor vnfc --image testpmd \
     --nic net-id=8fe3eb35-4eb4-4a9a-9eaf-b97708fef451,tag=mgmt \
     --config-drive True --key-name undercloud \
     --nic port-id=6dd3b82f-ce2f-44dd-acd0-62b922a7281a,tag=east 

3. SSH into the VM and look at the device metadata:

  [root@trex ~]# mount /dev/cdrom /mnt/
  mount: /dev/sr0 is write-protected, mounting read-only
  [root@trex ~]# cd /mnt/openstack/latest/
  [root@trex latest]# jq . meta_data.json 

Expected result
===============

Both tagged network devices to appear in the metadata.

Actual result
=============

Only the "mgmt" NIC appears in the metadata, the "east" PF is missing:

  "devices": [
    {
      "bus": "pci",
      "mac": "fa:16:3e:21:8a:d7",
      "tags": [
        "mgmt"
      ],
      "type": "nic",
      "address": "0000:00:03.0"
    }
  ],

Environment
===========

Originally reported on OSP13/Queens [1].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1724999

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1836389

Title:
  Device role tagging doesn't work for SRIOV PF

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========

  Setting a device role tag on a PF interface has no effect on metadata
  - IOW, the PF and its tag doesn't appear in the device metadata at
  all.

  Steps to reproduce
  ==================

  1. Create a PF port:

    openstack port show 6dd3b82f-ce2f-44dd-acd0-62b922a7281a
    <snip>
    | binding_host_id | computeovsdpdk-0.localdomain
    | binding_profile | pci_slot='0000:86:00.0', pci_vendor_info='8086:1572', physical_network='east'
    <snip>

  2. Boot a VM with that PF, with a device role tag:

     nova boot TRex --flavor vnfc --image testpmd \
       --nic net-id=8fe3eb35-4eb4-4a9a-9eaf-b97708fef451,tag=mgmt \
       --config-drive True --key-name undercloud \
       --nic port-id=6dd3b82f-ce2f-44dd-acd0-62b922a7281a,tag=east 

  3. SSH into the VM and look at the device metadata:

    [root@trex ~]# mount /dev/cdrom /mnt/
    mount: /dev/sr0 is write-protected, mounting read-only
    [root@trex ~]# cd /mnt/openstack/latest/
    [root@trex latest]# jq . meta_data.json 

  Expected result
  ===============

  Both tagged network devices to appear in the metadata.

  Actual result
  =============

  Only the "mgmt" NIC appears in the metadata, the "east" PF is missing:

    "devices": [
      {
        "bus": "pci",
        "mac": "fa:16:3e:21:8a:d7",
        "tags": [
          "mgmt"
        ],
        "type": "nic",
        "address": "0000:00:03.0"
      }
    ],

  Environment
  ===========

  Originally reported on OSP13/Queens [1].

  [1] https://bugzilla.redhat.com/show_bug.cgi?id=1724999

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1836389/+subscriptions


Follow ups