Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Allow adding network interfaces with specific IP addresses. It is possible that an interface can have multiple IP addresses assigned to it. Since the IP address is explicitly used to describe an LNet NID, we should allow specifying network interfaces via their IP addresses. Linux routing can route packets based on their source IP addresses differently. It is potentially possible that routing can be setup such that Lustre traffic can be routed different from other application traffic, even though both are originating from the same interface.

      Attachments

        Issue Links

          Activity

            [LU-13642] lnetctl: Allow IP specification

            "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53605
            Subject: LU-13642 lnet: Allow dynamic IP specification
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: b16477bb1d7aa3abe4215d862c034b6b2f855c9f

            gerrit Gerrit Updater added a comment - "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53605 Subject: LU-13642 lnet: Allow dynamic IP specification Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b16477bb1d7aa3abe4215d862c034b6b2f855c9f

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49525/
            Subject: LU-13642 lnet: modify lnet_inetdev to work with large NIDS
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 0b406c91d175b6cdbdf472b70a37e618cd66a72d

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49525/ Subject: LU-13642 lnet: modify lnet_inetdev to work with large NIDS Project: fs/lustre-release Branch: master Current Patch Set: Commit: 0b406c91d175b6cdbdf472b70a37e618cd66a72d

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/47660/
            Subject: LU-13642 lnet: Allow IP specification
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 14cdcd61985aa02097791ff7a8173c2e62030697

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/47660/ Subject: LU-13642 lnet: Allow IP specification Project: fs/lustre-release Branch: master Current Patch Set: Commit: 14cdcd61985aa02097791ff7a8173c2e62030697

            "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49525
            Subject: LU-13642 lnet: modify lnet_inetdev to work with large NIDS
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 29189e13a53cd2544d1e14942011f3b37c2e0277

            gerrit Gerrit Updater added a comment - "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49525 Subject: LU-13642 lnet: modify lnet_inetdev to work with large NIDS Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 29189e13a53cd2544d1e14942011f3b37c2e0277

            "Frank Sehr <fsehr@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49281
            Subject: LU-13642 lnet: Allow static IP specification
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 65c7faa92d9cec6028b623ff5fb3c659cfb74c6b

            gerrit Gerrit Updater added a comment - "Frank Sehr <fsehr@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49281 Subject: LU-13642 lnet: Allow static IP specification Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 65c7faa92d9cec6028b623ff5fb3c659cfb74c6b

            "Frank Sehr <fsehr@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/48300
            Subject: LU-13642 lnet: Allow IP specification
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 2a70b25550a0fb370b81b247e7d2ad74e3489de9

            gerrit Gerrit Updater added a comment - "Frank Sehr <fsehr@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/48300 Subject: LU-13642 lnet: Allow IP specification Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 2a70b25550a0fb370b81b247e7d2ad74e3489de9

            "Frank Sehr <fsehr@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47660
            Subject: LU-13642 lnet: Allow IP specification
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 2250cf8ac13789fa6c15a4160d6e8d249e3d962b

            gerrit Gerrit Updater added a comment - "Frank Sehr <fsehr@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47660 Subject: LU-13642 lnet: Allow IP specification Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 2250cf8ac13789fa6c15a4160d6e8d249e3d962b
            fsehr Frank Sehr added a comment -

            I will soon add the patches. Please see  IP specification in LNet for more info

            https://wiki.whamcloud.com/display/LNet/IP+specification+in+LNet

            fsehr Frank Sehr added a comment - I will soon add the patches. Please see  IP specification in LNet for more info https://wiki.whamcloud.com/display/LNet/IP+specification+in+LNet

            Note much work is being done for 2.16 to support IPv6. I have a patch that updates lnetctl to use netlink for configuration. I will push in the next few weeks. We can add this work on top of that patch.

            simmonsja James A Simmons added a comment - Note much work is being done for 2.16 to support IPv6. I have a patch that updates lnetctl to use netlink for configuration. I will push in the next few weeks. We can add this work on top of that patch.
            fsehr Frank Sehr added a comment - - edited

            After some consideration and to keep a the syntax consistent between static and dynamic configuration the interface (–if flag) will be extended by the ip address. The format will be interface@ipaddress. The syntax will be backward compatible, no changes are necessary. The following combinations will be possible --if interface, --if interface@ipaddress or --if @ipaddress, (the first found interface will be chosen). The additional flag --ip to the "lnetctl net add" command to specify the ip address  will not be used. The ip address is set in the LNet NID and passed through the ioctl call to the ksocklnd kernel module. The module is enumerating the interfaces, but ignores  the ip address in the LNet NID. I am currently changing the behaviour to consider the ip address in the LNet NID in the choice of the interface. The default behaviour is maintained in case no IP address is found. Which means it picks the first available interface entry that corresponds to the specified physical interface. 

            fsehr Frank Sehr added a comment - - edited After some consideration and to keep a the syntax consistent between static and dynamic configuration the interface (–if flag) will be extended by the ip address. The format will be interface@ipaddress. The syntax will be backward compatible, no changes are necessary. The following combinations will be possible --if interface, --if interface@ipaddress or --if @ipaddress, (the first found interface will be chosen). The additional flag --ip to the "lnetctl net add" command to specify the ip address  will not be used. The ip address is set in the LNet NID and passed through the ioctl call to the ksocklnd kernel module. The module is enumerating the interfaces, but ignores  the ip address in the LNet NID. I am currently changing the behaviour to consider the ip address in the LNet NID in the choice of the interface. The default behaviour is maintained in case no IP address is found. Which means it picks the first available interface entry that corresponds to the specified physical interface. 
            fsehr Frank Sehr added a comment -

            I started to look into it.

            fsehr Frank Sehr added a comment - I started to look into it.

            People

              fsehr Frank Sehr
              ashehata Amir Shehata (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: