Activity log for bug #1903638

Date Who What changed Old value New value Message
2020-11-10 05:28:03 Michał Ajduk bug added bug
2020-11-10 05:28:23 Michał Ajduk bug added subscriber Canonical Field Critical
2020-11-10 06:05:31 Frode Nordahl charm-ovn-chassis: status New Incomplete
2020-11-10 10:09:10 Michał Ajduk description SR-IOV charm configures only OVN SR-IOV mechanism driver which requires capability=switchdev and /sys/class/net/<iface>/phys_switch_id to be readable. Intel X710 driver does not provide readable phys_switch_id. This driver requires switchdev mode for port types direct (SR-IOV VF PT) and direct-physical (PF PT): /usr/lib/python3/dist-packages/neutron/common/ovn/constants.py: EXTERNAL_PORT_TYPES = (portbindings.VNIC_DIRECT, portbindings.VNIC_DIRECT_PHYSICAL, portbindings.VNIC_MACVTAP) /usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py:761 if (vnic_type in ovn_const.EXTERNAL_PORT_TYPES and ovn_const.PORT_CAP_SWITCHDEV not in capabilities): LOG.debug("Refusing to bind port due to unsupported vnic_type: %s " "with no switchdev capability", vnic_type) return However x710 driver in 4.15 and 5.4.0-52 kernel with X710 driver 2.1.14-k and 2.8.20-k (HWE) does not support this mode. Switchdev mode requires: pf_path = "/sys/class/net/%s" % pf_ifname pf_sw_id_file = os.path.join(pf_path, "phys_switch_id") However this operation is not supported in the above mentioned configs: cat: /sys/class/net/ens3f0/phys_switch_id: Operation not supported cat: /sys/class/net/ens3f1/phys_switch_id: Operation not supported The legacy SR-IOV mode is the only supported supported in sriovnicswitch: /usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/mech_sriov/mech_driver/mech_driver.py if (vnic_type == portbindings.VNIC_DIRECT and 'switchdev' in capabilities): LOG.debug("Refusing to bind due to unsupported vnic_type: %s " "with switchdev capability", portbindings.VNIC_DIRECT) return Unfortunately the charm does not start nor allow any config option to start Neutron SR-IOV Agent, using only OVN mechanism driver hence not allowing to use SR-IOV. SR-IOV charm configures only OVN SR-IOV mechanism driver which requires capability=switchdev and /sys/class/net/<iface>/phys_switch_id to be readable. Intel X710 driver does not provide readable phys_switch_id.  This driver requires switchdev mode for port types direct (SR-IOV VF PT) and direct-physical (PF PT): /usr/lib/python3/dist-packages/neutron/common/ovn/constants.py: EXTERNAL_PORT_TYPES = (portbindings.VNIC_DIRECT,                        portbindings.VNIC_DIRECT_PHYSICAL,                        portbindings.VNIC_MACVTAP) /usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py:761         if (vnic_type in ovn_const.EXTERNAL_PORT_TYPES and                 ovn_const.PORT_CAP_SWITCHDEV not in capabilities):             LOG.debug("Refusing to bind port due to unsupported vnic_type: %s "                       "with no switchdev capability", vnic_type)             return However x710 driver in 4.15 and 5.4.0-52 kernel with X710 driver 2.1.14-k and 2.8.20-k (HWE) does not support this mode. Switchdev mode requires:     pf_path = "/sys/class/net/%s" % pf_ifname     pf_sw_id_file = os.path.join(pf_path, "phys_switch_id") However this operation is not supported in the above mentioned configs: cat: /sys/class/net/ens3f0/phys_switch_id: Operation not supported cat: /sys/class/net/ens3f1/phys_switch_id: Operation not supported The legacy SR-IOV mode is the only supported supported in sriovnicswitch: /usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/mech_sriov/mech_driver/mech_driver.py         if (vnic_type == portbindings.VNIC_DIRECT and                 'switchdev' in capabilities):             LOG.debug("Refusing to bind due to unsupported vnic_type: %s "                       "with switchdev capability", portbindings.VNIC_DIRECT)             return Unfortunately the charm does not start start Neutron SR-IOV Agent, using only OVN mechanism driver hence not allowing to use SR-IOV.
2020-11-10 10:15:06 Michał Ajduk summary SR-IOV native OVN driver does not work on Intel X710 neutron-sriov-agent failing to start
2020-11-10 10:28:02 Michał Ajduk charm-ovn-chassis: status Incomplete New
2020-11-10 10:39:20 Frode Nordahl charm-ovn-chassis: status New In Progress
2020-11-10 10:39:23 Frode Nordahl charm-ovn-chassis: importance Undecided High
2020-11-10 10:39:26 Frode Nordahl charm-ovn-chassis: assignee Frode Nordahl (fnordahl)
2020-11-10 18:51:02 OpenStack Infra charm-ovn-chassis: status In Progress Fix Committed
2020-11-16 09:15:53 Frode Nordahl charm-ovn-chassis: status Fix Committed Fix Released
2020-11-16 09:16:00 Frode Nordahl charm-ovn-chassis: assignee Frode Nordahl (fnordahl)
2020-11-16 15:44:12 Michael Skalka removed subscriber Canonical Field Critical
2021-07-21 14:38:11 Nobuto Murata bug added subscriber Nobuto Murata