[LU-10937] Use sysfs to fix up sptlrpc handling. Created: 21/Apr/18 Updated: 16/Jan/19 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.12.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | James A Simmons | Assignee: | James A Simmons |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Lustre with sptlrpc/gss enabled. |
||
| Issue Links: |
|
||||||||||||||||||||||||
| Severity: | 3 | ||||||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||||||
| Description |
|
Several problems exist for the GSS / sptlrpc code. The problems are: 1) lctl set_param P does not work with sptlrpc 2) Specific mgs bingings for sptlrpc is broken. With the move to kobjects with sysfs we could the kobject instead. 3) After the move to sysfs we can use udev events instead of polling the proc files like what is now done in for example svgssd.
|
| Comments |
| Comment by Gerrit Updater [ 06/Oct/18 ] |
|
James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/33311 |
| Comment by James A Simmons [ 06/Oct/18 ] |
|
Developers from Cray reported to me that the band aid fix landed for |
| Comment by Gerrit Updater [ 13/Nov/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33311/ |
| Comment by James A Simmons [ 26/Nov/18 ] |
|
I started to do a code review and I have noticed a bunch of potential bugs in general. This is just for the lctl conf_param case. The first question would be are the targets, the first *. field, just the following types: lctl conf_param lustre.srpc.**** lctl conf_param lustre-OST0000.srpc.*** lctl conf_param lustre-MDT0000.srpc.*** for example. If that is the case we can simply replace obdname2fsname() with server_name2fsname(). If server_name2fsname() returns an error then we know the target is a file system. Next bug I noticed is that if we supply an obd device as a target plus a direction we don't validate the direction. The following should fail but doesn't lctl conf_param lustre-MDT0000.srpc.flavor.default.cli2ost=skpi. Lastly I noticed the network type supplied can easily break. Consider the case of a file system named test that are Cray clients and you have routers in between that convert to o2ib1 with infiniband storage backend. So if you do lctl conf_param test.srpc.flavor.o2ib1=skpi Does this filter so only the server back end is updated to skpi? I noticed we don't really test what LNet network interface is in use when setting the rule. Is it valid do a partial setup in this case?
|
| Comment by Gerrit Updater [ 30/Nov/18 ] |
|
James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/33760 |
| Comment by Gerrit Updater [ 16/Jan/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33760/ |