Please note that when you do lnetctl export, you'll get output similar to:
net:
- net: lo
nid: 0@lo
status: up
tunables:
peer_timeout: 0
peer_credits: 0
peer_buffer_credits: 0
credits: 0
- net: tcp
nid: 192.168.205.156@tcp
status: up
interfaces:
0: eth4
tunables:
peer_timeout: 180
peer_credits: 8
peer_buffer_credits: 0
credits: 256
- net: tcp1
nid: 192.168.206.167@tcp1
status: up
interfaces:
0: eth5
tunables:
peer_timeout: 180
peer_credits: 8
peer_buffer_credits: 0
credits: 256
route:
- net: tcp3
gateway: 10.1.1.1@tcp
hop: 1
priority: 0
state: up
- net: tcp4
gateway: 10.1.1.1@tcp
hop: 1
priority: 0
state: up
It will dump all currently configured items. To properly test, you'll first need to configure lnet without loading any module parameters. To do that you can issue the following commands:
modprobe lnet
lnetctl lnet configure
Then after you configure lnet:
lnetctl import < config.yaml
When you issue the following command it will attempt to configure each item. If the item is already configured it will fail configuring that particular item (example, if you try to reconfig an already existing network it will fail), but it will not stop and will continue to configure the rest of the items.
Unfortunately, there is a minor inconsistency in the behavior when you add an existing net vs when you add an existing route. The former will error and the latter will be ignored. We can address this inconsistency in a separate patch (but it's a minor issue)
You'll see that when you try to configure the LO Net, since it's part of the configuration but is always configured implicitly and DLC doesn't provide a way to configure the LO Net, it will fail.
the output would likely look similar to
add:
- net: errno: -2
descr: "mandatory parameter 'if' not specified. Optionally specify ip2net parameter"
- net:
errno: 0
descr: "success"
- net:
errno: 0
descr: "success"
- route:
errno: 0
descr: "Success"
- route:
errno: 0
descr: "Success"
Currently there is no way to configure LNet from YAML (IE: lnetctl lnet configure). It is assumed that you have already configured LNet either through:
lctl network up
or
lnetctl lnet configure [--all]
If you think it's useful to configure LNet vial YAML, we can address that in a separate patch.
You fixed it. Now it works. Thank you.