When the PCI alias was getting translated to a PCI request,
all the white spaces were getting removed. So the pci_passthrough:alias
specified in the flavor never matched the device in pci_alias.
This patch fixes the bug by only stripping the white spaces
at the beginning or the end of the elements
Conflicts:
nova/tests/unit/pci/test_request.py
NOTE(lyarwood): Test conflict caused by the reorganisation of PCI options
as part of I886045ab4e6bdb8418fd1ccdcd811417ecb4ad4a.
Change-Id: I2888b03faf6c25bcb6011db40100d925972c2231
Closes-Bug: #1638200
(cherry picked from commit 9b88e755d93200811487d2f778735869f8fe07af)
Reviewed: https:/ /review. openstack. org/406075 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e58af8e32d4 15e112e491abce9 f4e8b8d882fb80
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit e58af8e32d415e1 12e491abce9f4e8 b8d882fb80
Author: zhaolihui <email address hidden>
Date: Tue Nov 1 16:09:04 2016 +0800
Fix pci_alias that include white spaces
When the PCI alias was getting translated to a PCI request, :alias
all the white spaces were getting removed. So the pci_passthrough
specified in the flavor never matched the device in pci_alias.
This patch fixes the bug by only stripping the white spaces
at the beginning or the end of the elements
Conflicts: tests/unit/ pci/test_ request. py
nova/
NOTE(lyarwood): Test conflict caused by the reorganisation of PCI options 8418fd1ccdcd811 417ecb4ad4a.
as part of I886045ab4e6bdb
Change-Id: I2888b03faf6c25 bcb6011db40100d 925972c2231 11487d2f7787358 69f8fe07af)
Closes-Bug: #1638200
(cherry picked from commit 9b88e755d932008