commit d78310e67a8fcf59465907eddecba4f5145a0a6f
Author: Stephen Finucane <email address hidden>
Date: Wed Oct 10 16:29:40 2018 +0100
Ignore hw_vif_type for direct, direct-physical vNIC types
As part of the fix for bug #1789074, we stopped setting the VIF model to
virtio for a vif_type of 'direct' or 'direct-physical'. However, if
users configured the 'hw_vif_type' image metadata property, the VIF
model would be unconditionally set to whatever the user provided. This
would result in bug #1789074 recurring. Given that the model attribute
is unnecessary for these vNIC types, we can resolve this issue by
simply ignoring the image metadata property when configuring such VIFs.
Change-Id: I3bf5587c3a49c807bb14533dbbea8f72dca2f02b
Signed-off-by: Stephen Finucane <email address hidden>
Closes-bug: #1797146
(cherry picked from commit a235451578ad7af25268e82500dff5ba6a64ea4e)
Reviewed: https:/ /review. opendev. org/667354 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d78310e67a8 fcf59465907edde cba4f5145a0a6f
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit d78310e67a8fcf5 9465907eddecba4 f5145a0a6f
Author: Stephen Finucane <email address hidden>
Date: Wed Oct 10 16:29:40 2018 +0100
Ignore hw_vif_type for direct, direct-physical vNIC types
As part of the fix for bug #1789074, we stopped setting the VIF model to
virtio for a vif_type of 'direct' or 'direct-physical'. However, if
users configured the 'hw_vif_type' image metadata property, the VIF
model would be unconditionally set to whatever the user provided. This
would result in bug #1789074 recurring. Given that the model attribute
is unnecessary for these vNIC types, we can resolve this issue by
simply ignoring the image metadata property when configuring such VIFs.
Change-Id: I3bf5587c3a49c8 07bb14533dbbea8 f72dca2f02b 25268e82500dff5 ba6a64ea4e)
Signed-off-by: Stephen Finucane <email address hidden>
Closes-bug: #1797146
(cherry picked from commit a235451578ad7af