Bug 1320315

Summary: [RFE] Support Infiniband connected mode and custom network options.
Product: Red Hat Enterprise Virtualization Manager Reporter: marc skinner <mskinner>
Component: ovirt-engineAssignee: Nobody <nobody>
Status: CLOSED WONTFIX QA Contact: Michael Burman <mburman>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.6.3CC: danken, dfediuck, logank, lsurette, mskinner, Rhev-m-bugs, srevivo, ykaul
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-23 13:22:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1439238    
Bug Blocks:    

Description marc skinner 2016-03-22 20:13:40 UTC
Description of problem:


When you configure an Infinibnad network in rhev-manager it defaults to datagram mode. This mode only allows for MTU size of 2044. We need to allow for the rhev-manager to configure an IPoIB network with either datagram mode or connected mode. If connected mode is configured, then the user supplied non-default MTU size should be used. If datagram mode is used, the default MTU 2044 should be used.

I wrote a short hook to make this work, but it needs to be integrated into the rhev-manager networking configuration tabs, and supported in vdsm.


----------------------------------------

Using VDSM hooks. T

copy this file into /usr/libexec/vdsm/hooks/after_network_setup

chmod +x on it


cat /usr/libexec/vdsm/hooks/after_network_setup/01-ib-connected-mode.sh

-----------------------


#!/bin/bash

# VDSM hook to force Infiniband mode from default datagram to connected mode
# Configure MTU in Network tab of OVIRT/RHEVM with Custom MTU - should be 66520 for connected mode

echo "TYPE=Infiniband" >> /etc/sysconfig/network-scripts/ifcfg-ib0
echo "CONNECTED_MODE=yes" >> /etc/sysconfig/network-scripts/ifcfg-ib0
/usr/sbin/ifdown ib0
/usr/sbin/ifup ib0

if grep -Fxq connected /sys/class/net/ib0/mode
then
return 0
else
return 1
fi


--

Comment 4 Doron Fediuck 2019-12-23 13:22:52 UTC
Closing old RFEs.
If still needed, please re-open and provide a business justification.