plug_vhostuser may fail due to device not found error when setting mtu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
sean mooney | ||
Liberty |
Fix Released
|
Undecided
|
Ihar Hrachyshka | ||
Mitaka |
Fix Released
|
Undecided
|
Matt Riedemann |
Bug Description
Setting the mtu of a vhost-user port with the ip command will cause vms to fail
to boot with a device not found error as vhost-user prots are not represented as
kernel netdevs.
this bug is present in stable/kilo, stable/liberty and master and i would like to ask that it be back ported if accepted
and fixed in master.
when using vhost-user with ovs-dpdk the vhost-user port is plugged into ovs by nova using a non atomic call to linux_net.
the reuse of the create_ovs_vif_port has an untended concequece of introducing an error where
the ip tool is invoked to try and set the mtu on the userspace vhost-user interface which dose not exist
as a kernel netdev.
https:/
this results in the in the call to set_device_mtu throwing an exception as the ip comand exits with code 1
https:/
as a result the second function call to ovs_set_
to resolve this issue i would like to introduce a new function to inux_net.py
create_
and will not set the mtu similar to the impentation in the os-vif vhost-user driver
an alternitive solution would be to add "1" to the retrun code check here https:/
however neither solve the underlying cause.
this was observed with kilo openstack on ubuntu 14.04 with ovs-dpdk deployed with puppet/fule.
description: | updated |
tags: | added: kilo-backport-potential liberty-backport-potential |
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: network |
tags: | added: mitaka-rc-potential |
tags: | added: mitaka-rc-potential |
tags: | removed: mitaka-rc-potential |
tags: | added: mitaka-backport-potential |
tags: | added: mitaka-rc-potential |
no longer affects: | nova/kilo |
tags: | removed: mitaka-rc-potential |
i will try to submit a patch to fix this in then next day or too.