pci-passthrough-whitelist to allow regexps

Bug #1786283 reported by Alvaro Uria
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Charm
Triaged
Wishlist
Unassigned

Bug Description

From Xenial and on, udev renames interfaces to predictable names depending on the physical slot used in the node it runs on.

Such interface names can be: eno1, eno2, enp131s0f0, enp131s0f1, ...

We have run into the situation where multiple "nova-compute-vnf" units have different interfaces attached to physnet2 because of the naming conventions. Workaround has been to allow regular expressions to parse the devname. See sample below.

$ juju config nova-compute-vnf pci-passthrough-whitelist
'[{"devname": "eno2", "physical_network": "physnet1"}, {"devname": "enp(131|216)s0f1",
  "physical_network": "physnet2"}]'

$ sudo egrep pci /etc/nova/nova.conf
pci_passthrough_whitelist = [{"devname": "eno2", "physical_network": "physnet1"}, {"devname": "enp131s0f1", "physical_network": "physnet2"}]

https://docs.openstack.org/nova/queens/configuration/config.html#pci.passthrough_whitelist

I will send a proposal to solve this shortly.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (stable/18.05)

Fix proposed to branch: stable/18.05
Review: https://review.openstack.org/590737

Frode Nordahl (fnordahl)
Changed in charm-nova-compute:
importance: Undecided → Wishlist
status: New → In Progress
assignee: nobody → Alvaro Uría (aluria)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (master)

Fix proposed to branch: master
Review: https://review.openstack.org/619225

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-nova-compute (stable/18.05)

Change abandoned by Alvaro Uría (<email address hidden>) on branch: stable/18.05
Review: https://review.openstack.org/590737
Reason: see https://review.openstack.org/619225

Alvaro Uria (aluria)
Changed in charm-nova-compute:
assignee: Alvaro Uría (aluria) → nobody
Alvaro Uria (aluria)
Changed in charm-nova-compute:
status: In Progress → New
Changed in charm-nova-compute:
status: New → Triaged
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.