[LU-14263] Kerberos ticket renewal not processed by lustre Created: 18/Dec/20  Updated: 18/Jan/21  Resolved: 18/Jan/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.14.0, Lustre 2.12.6
Fix Version/s: Lustre 2.14.0

Type: Bug Priority: Minor
Reporter: Sebastien Buisson Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: sec

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Sumary: lustre seems to ignore a kerberos ticket being renewed

  1. First testFilesystem access is lost after 200s, ticket renewed at 100s
$ lfs flushctx -k
$ keyctl clear $(keyctl show | grep _ses | awk -F ' ' '{print $1}')
$ kinit -l 00:03 -r 00:10
$ keyctl reap
$ date; ls /home | wc -l; sleep 100; date; kinit -R -c /tmp/krb5cc_81265; ls /home | wc -l; sleep 100; date; ls /home | wc -l
Wed Dec 16 16:28:30 CET 2020
73
Wed Dec 16 16:30:10 CET 2020
73
Wed Dec 16 16:31:50 CET 2020
ls: cannot access '/home': Connection refused
0
  1. Second test which does regain filesystem access after issuing 'keyctl clear XXX; keyctl reap' right after ticket renewal (we didn't test if this can be done automatically).
$ lfs flushctx -k
$ keyctl clear $(keyctl show | grep _ses | awk -F ' ' '{print $1}')
$ kinit -l 00:03 -r 00:10
$ keyctl reap
$ date; ls /home | wc -l; sleep 100; date; kinit -R -c /tmp/krb5cc_81265; echo CLEAR; keyctl clear $(keyctl show | grep _ses | awk -F ' ' '{print $1}'); keyctl reap; ls /home | wc -l; sleep 100; date; ls /home | wc -l
Wed Dec 16 16:57:12 CET 2020
73
Wed Dec 16 16:58:52 CET 2020
CLEAR
0 keys reaped
73
Wed Dec 16 17:00:33 CET 2020
73


 Comments   
Comment by Gerrit Updater [ 18/Dec/20 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/41047
Subject: LU-14263 gss: unlink revoked key
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 63ca5a63a6a56b1f3fbaf1e2ecd1be2965253b94

Comment by Gerrit Updater [ 18/Jan/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41047/
Subject: LU-14263 gss: unlink revoked key
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c246a9ba041d651c4fae324284f7bbd97500998b

Comment by Peter Jones [ 18/Jan/21 ]

Landed for 2.14

Generated at Sat Feb 10 03:08:14 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.