Whamcloud - gitweb
LU-11112 lnet: improve error msg in lnet_sock_create() 58/32758/6
authorKarsten Weiss <karsten.weiss@atos.net>
Fri, 29 Jun 2018 15:22:09 +0000 (17:22 +0200)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Feb 2024 07:04:11 +0000 (07:04 +0000)
The kernel_bind() call in lnet_sock_create() may fail due to
problems with the local port, or the local IP address. Make sure
to include both items when indicating a fatal error.

Test-Parameters: trivial
Signed-off-by: Karsten Weiss <karsten.weiss@atos.net>
Signed-off-by: Daniel Kobras <d.kobras@science-computing.de>
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I43c1f089d3b12e61c18c97e532b6872a6c8cf272
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/32758
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-socket.c

index 0404199..4d56448 100644 (file)
@@ -303,8 +303,8 @@ retry:
                        goto failed;
                }
                if (rc != 0) {
-                       CERROR("Error trying to bind to port %d: %d\n",
-                              local_port, rc);
+                       CERROR("Error trying to bind to %pISc/%d: rc = %d\n",
+                              &locaddr, local_port, rc);
                        goto failed;
                }
        }