Fixes a problem where SR-IOV VF count configuration will fail if a
physical function is in use by a guest when 'puppet apply' is executed.
This change substitutes warnings for failures and skips complaints if a
PCI device is unavailable.
Note: this patch has the side-effect of allowing the same configuration
data on hosts that may *not* or *ever* have PCI SR-IOV devices on the
hardware. Time will tell how evil this is in practice.
Closes-Bug: #1701284
Change-Id: I71edc135432ab2193741c37ce977dd11172401e6
(cherry picked from commit d71697a419f459b8fa4b748a64ac6580b3a82456)
Reviewed: https:/ /review. openstack. org/483919 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=7d50cc90f5d 54b48593b28700a c519d4e367202b
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 7d50cc90f5d54b4 8593b28700ac519 d4e367202b
Author: Brent Eagles <email address hidden>
Date: Tue Jun 27 09:55:37 2017 -0230
Do not fail if PCI device is missing
Fixes a problem where SR-IOV VF count configuration will fail if a
physical function is in use by a guest when 'puppet apply' is executed.
This change substitutes warnings for failures and skips complaints if a
PCI device is unavailable.
Note: this patch has the side-effect of allowing the same configuration
data on hosts that may *not* or *ever* have PCI SR-IOV devices on the
hardware. Time will tell how evil this is in practice.
Closes-Bug: #1701284 193741c37ce977d d11172401e6 8fa4b748a64ac65 80b3a82456)
Change-Id: I71edc135432ab2
(cherry picked from commit d71697a419f459b