Device role tagging doesn't work for SRIOV PF
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Medium
|
Artom Lifshitz | ||
Queens |
Triaged
|
Medium
|
Unassigned | ||
Rocky |
Triaged
|
Medium
|
Unassigned | ||
Stein |
Triaged
|
Medium
|
Unassigned | ||
Train |
Triaged
|
Medium
|
Unassigned | ||
Ussuri |
In Progress
|
Medium
|
Artom Lifshitz |
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-
<snip>
| binding_host_id | computeovsdpdk-
| binding_profile | pci_slot=
<snip>
2. Boot a VM with that PF, with a device role tag:
nova boot TRex --flavor vnfc --image testpmd \
--nic net-id=
--config-drive True --key-name undercloud \
--nic port-id=
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/
[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:
"tags": [
"mgmt"
],
"type": "nic",
"address": "0000:00:03.0"
}
],
Environment
===========
Originally reported on OSP13/Queens [1].
tags: | added: libvirt |
Fix proposed to branch: master /review. opendev. org/670593
Review: https:/