Skip setting MTU on Windows when plugging devices.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-vif |
Fix Committed
|
Medium
|
Alin Balutoiu | ||
Ocata |
Fix Committed
|
Medium
|
Alin Balutoiu |
Bug Description
calling create_ovs_vif_port on windows has a bug internally where it indirectly calls _set_device_mtu
which executes the following code.
processutils.
if you install oslo_concurrency on windows and test what happens it exits with exit code 2, file not found.
from oslo_concurrency import processutils
>>> processutils.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
env=
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
because errno 2 is allowed in the check_exit_code it does not fail and plugging succeeds.
Changed in os-vif: | |
importance: | Undecided → Medium |
Changed in os-vif: | |
assignee: | nobody → Alin Balutoiu (abalutoiu) |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/441855 /git.openstack. org/cgit/ openstack/ os-vif/ commit/ ?id=f7502923f27 1d1edfc5b623647 8725124f66506c
Committed: https:/
Submitter: Jenkins
Branch: master
commit f7502923f271d1e dfc5b6236478725 124f66506c
Author: Alin Balutoiu <email address hidden>
Date: Mon Mar 6 11:53:02 2017 +0200
vif_plug_ovs: Skip setting MTU on Windows when plugging devices
Hyper-V with OVS does not support setting the MTU
of a Virtual interface externally to the VM.
This change disable the use of ip tool to set
the MTU on the guest interface which will always
fail on Windows.
On Windows based compute nodes, MTU advertisement
and configuration will be delegated to
the guest os via the DHCP mechanism.
Closes-Bug: #1654616
Change-Id: I16b33fedd9773c 37a0368264aecb5 581153ba404