Bug in rdma-core / iWarp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If ipv6 is disabled by adding the line:

GRUB_CMDLINE_LINUX="ipv6.disable=1”

… to /etc/default/grub, running update-grub, and rebooting, then rdma-core will not install on Ubuntu 18.04. Instead it fails with this error:

root@balloon:~# apt-get install rdma-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
rdma-core is already the newest version (17.1-1ubuntu0.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up rdma-core (17.1-1ubuntu0.2) ...
rdma-hw.target is a disabled or a static unit, not starting it.
rdma-ndd.service is a disabled or a static unit, not starting it.
Job for iwpmd.service failed because the control process exited with error code.
See "systemctl status iwpmd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript iwpmd, action "start" failed.
● iwpmd.service - iWarp Port Mapper
   Loaded: loaded (/lib/systemd/system/iwpmd.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-03-16 22:41:46 UTC; 5ms ago
     Docs: man:iwpmd
           file:/etc/iwpmd.conf
  Process: 2664 ExecStart=/usr/sbin/iwpmd --systemd (code=exited, status=1/FAILURE)
 Main PID: 2664 (code=exited, status=1/FAILURE)

Mar 16 22:41:46 balloon systemd[1]: iwpmd.service: Unit not needed anymore. Stopping.
Mar 16 22:41:46 balloon systemd[1]: iwpmd.service: Failed to enqueue stop job, ignoring: Transaction is destructive.
Mar 16 22:41:46 balloon systemd[1]: Starting iWarp Port Mapper...
Mar 16 22:41:46 balloon iwpmd[2664]: get_iwpm_param: Got param (name = nl_sock_rbuf_size val = 419430400)
Mar 16 22:41:46 balloon iwpmd[2664]: create_iwpm_socket_v6: Unable to create socket. Address family not supported by protocol.
Mar 16 22:41:46 balloon iwpmd[2664]: main: Couldn't start iWarp Port Mapper.
Mar 16 22:41:46 balloon systemd[1]: iwpmd.service: Main process exited, code=exited, status=1/FAILURE
Mar 16 22:41:46 balloon systemd[1]: iwpmd.service: Failed with result 'exit-code'.
Mar 16 22:41:46 balloon systemd[1]: Failed to start iWarp Port Mapper.
dpkg: error processing package rdma-core (--configure):
 installed rdma-core package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 rdma-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
#

Looks like the iWarp port manager is failing when it attempts to create an IPv6 socket, failing with the error "create_iwpm_socket_v6: Unable to create socket. Address family not supported by protocol.”

Error is coming from here:  https://github.com/linux-rdma/rdma-core/blob/master/iwpmd/iwarp_pm_common.c#L158-L159

My expectation would be that if IPv6 is disabled then iWarp should not attempt to create an IPv6 socket.


root@balloon:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/";
SUPPORT_URL="https://help.ubuntu.com/";
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/";
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy";
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

root@balloon:~# uname -a
Linux balloon 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

root@balloon:~# lspci | grep -i infiniband
1b:00.1 Infiniband controller: VMware Paravirtual RDMA controller (rev 01)





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux