Worker node with more than 1 sriov/vfio interface fails to enable

Bug #1831077 reported by Brent Rowsell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Steven Webster

Bug Description

Brief Description
-----------------
I provisioned a worker node with 2 sr-iov interfaces with the vfio driver. The node failed to enable
Manifest is failing to apply

2019-05-30T01:45:09.036 ^[[0;36mDebug: 2019-05-30 01:45:08 +0000 template[/usr/share/puppet/modules/platform/templates/partitions.manage.erb]: Bound template variables for /usr/share/puppet/modules/platform/templates/partitions.manage.erb in 0.00 seconds^[[0m
2019-05-30T01:45:09.038 ^[[0;36mDebug: 2019-05-30 01:45:08 +0000 template[/usr/share/puppet/modules/platform/templates/partitions.manage.erb]: Interpolated template /usr/share/puppet/modules/platform/templates/partitions.manage.erb in 0.00 seconds^[[0m
2019-05-30T01:45:09.040 ^[[0;36mDebug: 2019-05-30 01:45:08 +0000 Scope(Platform::Interfaces::Sriov_config[sriov0]): Retrieving template platform/sriov.bind-device.erb^[[0m
2019-05-30T01:45:09.042 ^[[0;36mDebug: 2019-05-30 01:45:08 +0000 template[/usr/share/puppet/modules/platform/templates/sriov.bind-device.erb]: Bound template variables for /usr/share/puppet/modules/platform/templates/sriov.bind-device.erb in 0.00 seconds^[[0m
2019-05-30T01:45:09.044 ^[[0;36mDebug: 2019-05-30 01:45:08 +0000 template[/usr/share/puppet/modules/platform/templates/sriov.bind-device.erb]: Interpolated template /usr/share/puppet/modules/platform/templates/sriov.bind-device.erb in 0.00 seconds^[[0m
2019-05-30T01:45:09.046 ^[[1;31mError: 2019-05-30 01:45:08 +0000 Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Exec[load vfio-pci] is already declared in file /usr/share/puppet/modules/platform/manifests/network.pp:118; cannot redeclare at /usr/share/puppet/modules/platform/manifests/network.pp:118 at /usr/share/puppet/modules/platform/manifests/network.pp:118:5 on node worker-3

Severity
--------
Major

Steps to Reproduce
------------------
See above

Expected Behavior
------------------
Node should enable

Actual Behavior
----------------
See above

Reproducibility
---------------
100%

System Configuration
--------------------
All

Branch/Pull Time/Commit
-----------------------
2019-05-29 17:08:35 -0400

Last Pass
---------
N/A, new functionality

Timestamp/Logs
--------------
See above

Test Activity
-------------
Other

tags: added: stx.2.0
tags: added: stx.config
Changed in starlingx:
status: New → Triaged
assignee: nobody → Steven Webster (swebster-wr)
importance: Undecided → High
Ghada Khalil (gkhalil)
tags: added: stx.networking
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/662307

Changed in starlingx:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/662307
Committed: https://git.openstack.org/cgit/starlingx/config/commit/?id=337feafe531cc9861f1dddcada4098d2092ca94c
Submitter: Zuul
Branch: master

commit 337feafe531cc9861f1dddcada4098d2092ca94c
Author: Steven Webster <email address hidden>
Date: Thu May 30 11:06:42 2019 -0500

    Fix: Duplicate puppet resource for SR-IOV VF driver

    This commit fixes a bug which can be seen if more than one interface
    is configured with the same SR-IOV VF driver.

    In this case a duplicate puppet resource error will occur after host
    unlock.

    Closes-Bug: #1831077
    Change-Id: I7eeedfdbba62e1a0c71ce367bd717fdafb44ca63
    Signed-off-by: Steven Webster <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
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.