Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6338

DLC: lnetctl import --del delete the configuration successfully but shows error message

Details

    • Bug
    • Resolution: Not a Bug
    • Minor
    • None
    • Lustre 2.7.0
    • None
    • lustre-b2_7 build #29
    • 3
    • 17750

    Description

      when running “lnetctl import FILE --del”, the command actually delete the configuration successfully but still shows error message

      the error message indicates "cannot delete route: No such file or directory", but it did delete the router from the configuration.

      [root@eagle-54vm3 network-scripts]# lnetctl route show -v
      route:
          - net: tcp
            gateway: 192.168.201.101@tcp1
            hop: 1
            priority: 0
            state: up
      [root@eagle-54vm3 network-scripts]# lnetctl import client.yaml --del
      LNet: Removed LNI 192.168.201.180@tcp1
      del:
          - net:
                errno: -22
                descr: "cannot delete network: Invalid argument"
          - net:
                errno: 0
                descr: "success"
          - route:
                errno: -2
                descr: "cannot delete route: No such file or directory"
      [root@eagle-54vm3 network-scripts]# lnetctl route show -v
      [root@eagle-54vm3 network-scripts]# 
      [root@eagle-54vm3 network-scripts]# 
      

      Attachments

        Issue Links

          Activity

            [LU-6338] DLC: lnetctl import --del delete the configuration successfully but shows error message

            This error is due to the fact that the client.yaml file is trying to delete the lo net, which can not be deleted. Everything else is deleted properly. This is not a bug.

            ashehata Amir Shehata (Inactive) added a comment - This error is due to the fact that the client.yaml file is trying to delete the lo net, which can not be deleted. Everything else is deleted properly. This is not a bug.
            sarah Sarah Liu added a comment -

            please see the attached for the yaml file.

            sarah Sarah Liu added a comment - please see the attached for the yaml file.

            Can you please share the yaml file you're using.

            ashehata Amir Shehata (Inactive) added a comment - Can you please share the yaml file you're using.

            People

              ashehata Amir Shehata (Inactive)
              sarah Sarah Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: