[OpenAFS] Openafs broken on Ubuntu Hardy ?

Stefan Pohl pohl@syssoft.uni-trier.de
Tue, 14 Oct 2008 01:33:14 +0200


Hi,


Madhusudan Singh schrieb:
> Hello,
>
> I am running the latest versions of openafs-modules-source, 
> openafs-client and openafs-krb5 on an up to date installation of 
> Ubuntu Hardy. I used modules-assistant to compile the kernel module 
> against my kernel :
> $ uname -r
> 2.6.24-21-generic
>
> $ sudo apt-cache policy openafs-client
> openafs-client:
>   Installed: 1.4.6.dfsg1-2
>   Candidate: 1.4.6.dfsg1-2
>   Version table:
>  *** 1.4.6.dfsg1-2 0
>         500 http://us.archive.ubuntu.com hardy/universe Packages
>         100 /var/lib/dpkg/status
> $ sudo apt-cache policy openafs-modules-source
> openafs-modules-source:
>   Installed: 1.4.6.dfsg1-2
>   Candidate: 1.4.6.dfsg1-2
>   Version table:
>  *** 1.4.6.dfsg1-2 0
>         500 http://us.archive.ubuntu.com hardy/universe Packages
>         100 /var/lib/dpkg/status
>
> $ sudo apt-cache policy openafs-krb5
> openafs-krb5:
>   Installed: 1.4.6.dfsg1-2
>   Candidate: 1.4.6.dfsg1-2
>   Version table:
>  *** 1.4.6.dfsg1-2 0
>         500 http://us.archive.ubuntu.com hardy/universe Packages
>         100 /var/lib/dpkg/status
I just completed an OpenAFS-client test setup on Ubuntu Hardy. Same 
versions of the Openafs-stuff, slightly older kernel (2.6.24-19-generic) 
and it works. So it's not broken on Ubuntu Hardy as such.

> I can get my tokens alright.
>
> $ klist
> Ticket cache: FILE:/tmp/krb5cc_457671
> Default principal: XYZABC@YYY.EDU <mailto:XYZABC@YYY.EDU>
>
> Valid starting     Expires            Service principal
> 10/13/08 12:53:57  10/14/08 12:53:58  krbtgt/YYY.EDU 
> <http://YYY.EDU>@YYY.EDU <http://YYY.EDU>
> 10/13/08 12:54:03  10/14/08 12:53:58  afs@YYY.EDU <mailto:afs@YYY.EDU>
>
>
> Kerberos 4 ticket cache: /tmp/tkt457671
> klist: You have no tickets cached
>
> $ tokens
>
> Tokens held by the Cache Manager:
>
> User's (AFS ID 123456) tokens for afs@YYY.edu [Expires Oct 14 12:53]
>    --End of list--
>
> The user ids of the local user (username A) and the remote user 
> (username XYZABC, A<>XYZABC), are identical.
>
> When I try to the user's afs share after getting tokens :
>
> :$ cd /afs/YYY.edu/users/X/Y/Z/XYZABC
> bash: cd: /afs/YYY.edu/users/X/Y/Z/XYZABC: Permission denied
This look like the user you authenticate as, simply doesn't have the 
required permissions to access the directory.

>
> I have previously successfully authenticated to this cell with an 
> older version of openafs (it was a year ago, do not remember which).
If you could access the directory a year ago, maybe the acls of the 
directory got changed in the meantime. Is your user the owner of the 
directory? Can you access the directories above that directory?

>
> Meanwhile, restarting openafs-client reveals some junk in dmesg. Is 
> this a bug, and if so, what are my options ?
I see pretty much the same stuff in my dmesg, although I didn't compare 
line for line :-). With my setup it works despite of these messages.

HTH

Stefan Pohl

>
> Thanks.
>
> -----------------------------
>
> dmesg :
>
> [10676.480995] COLD shutting down of: CB... afs... BkG... CTrunc... 
> AFSDB... RxEvent... UnmaskRxkSignals... RxListener...
> [10677.108727] WARNING: at /build/buildd/linux-2.6.24/mm/slub.c:2323 
> kmem_cache_destroy()
> [10677.108736] Pid: 6035, comm: rmmod Tainted: P        
> 2.6.24-21-generic #1
> [10677.108760]  [<c018dd76>] kmem_cache_destroy+0x156/0x160
> [10677.108780]  [<f9896ede>] cleanup_module+0x1e/0x53 [openafs]
> [10677.108825]  [<c0152082>] sys_delete_module+0x112/0x190
> [10677.108843]  [<c031e19f>] do_page_fault+0x13f/0x730
> [10677.108854]  [<c01803e0>] do_munmap+0x180/0x1f0
> [10677.108872]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10677.108886]  [<c0310000>] unix_stream_sendmsg+0xc0/0x390
> [10677.108899]  =======================
> [10680.950197] Found system call table at 0xc0325500 (pattern scan)
> [10680.950418] sysctl_check_dir: failed: /afs .1 ref: /kernel .1
> [10680.950432] sysctl table check failed: /afs .1 Inconsistent 
> directory names
> [10680.950440] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.950473]  [<c0145885>] set_fail+0x45/0x60
> [10680.950486]  [<c0145bf4>] sysctl_check_table+0x354/0x5b0
> [10680.950496]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.950505]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.950535]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.950565]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.950593]  [<c01e57d0>] request_key+0x0/0x60
> [10680.950605]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.950618]  =======================
> [10680.950620] sysctl table check failed: /afs .1 procname does not 
> match binary path procname
> [10680.950625] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.950629]  [<c0145885>] set_fail+0x45/0x60
> [10680.950636]  [<c0145b36>] sysctl_check_table+0x296/0x5b0
> [10680.950645]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.950652]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.950678]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.950706]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.950732]  [<c01e57d0>] request_key+0x0/0x60
> [10680.950743]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.950755]  =======================
> [10680.950761] sysctl table check failed: /afs/hm_retry_RO .1.1 Sysctl 
> already exists
> [10680.950766] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.950773]  [<c0145885>] set_fail+0x45/0x60
> [10680.950780]  [<c0145bf4>] sysctl_check_table+0x354/0x5b0
> [10680.950790]  [<c0145b4a>] sysctl_check_table+0x2aa/0x5b0
> [10680.950799]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.950806]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.950832]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.950859]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.950886]  [<c01e57d0>] request_key+0x0/0x60
> [10680.950896]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.950908]  =======================
> [10680.950910] sysctl table check failed: /afs/hm_retry_RO .1.1 
> procname does not match binary path procname
> [10680.950915] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.950919]  [<c0145885>] set_fail+0x45/0x60
> [10680.950926]  [<c0145b36>] sysctl_check_table+0x296/0x5b0
> [10680.950936]  [<c0145b4a>] sysctl_check_table+0x2aa/0x5b0
> [10680.950945]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.950951]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.950977]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.951004]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.951030]  [<c01e57d0>] request_key+0x0/0x60
> [10680.951041]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.951053]  =======================
> [10680.951057] sysctl table check failed: /afs/hm_retry_RW .1.2 Sysctl 
> already exists
> [10680.951062] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.951069]  [<c0145885>] set_fail+0x45/0x60
> [10680.951076]  [<c0145bf4>] sysctl_check_table+0x354/0x5b0
> [10680.951085]  [<c0145b4a>] sysctl_check_table+0x2aa/0x5b0
> [10680.951094]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.951101]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.951127]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.951154]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.951180]  [<c01e57d0>] request_key+0x0/0x60
> [10680.951191]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.951202]  =======================
> [10680.951204] sysctl table check failed: /afs/hm_retry_RW .1.2 
> procname does not match binary path procname
> [10680.951209] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.951213]  [<c0145885>] set_fail+0x45/0x60
> [10680.951220]  [<c0145b36>] sysctl_check_table+0x296/0x5b0
> [10680.951228]  [<c0145b4a>] sysctl_check_table+0x2aa/0x5b0
> [10680.951237]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.951243]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.951269]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.951295]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.951320]  [<c01e57d0>] request_key+0x0/0x60
> [10680.951331]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.951342]  =======================
> [10680.951358] sysctl table check failed: /afs/hm_retry_int .1.3 
> Unknown sysctl binary path
> [10680.951364] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.951372]  [<c0145885>] set_fail+0x45/0x60
> [10680.951379]  [<c0145b36>] sysctl_check_table+0x296/0x5b0
> [10680.951388]  [<c0145b4a>] sysctl_check_table+0x2aa/0x5b0
> [10680.951397]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.951403]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.951429]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.951455]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.951480]  [<c01e57d0>] request_key+0x0/0x60
> [10680.951491]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.951508]  =======================
> [10680.951512] sysctl table check failed: /afs/GCPAGs .1.4 Sysctl 
> already exists
> [10680.951517] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.951522]  [<c0145885>] set_fail+0x45/0x60
> [10680.951530]  [<c0145bf4>] sysctl_check_table+0x354/0x5b0
> [10680.951539]  [<c0145b4a>] sysctl_check_table+0x2aa/0x5b0
> [10680.951548]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.951554]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.951580]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.951605]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.951630]  [<c01e57d0>] request_key+0x0/0x60
> [10680.951640]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.951652]  =======================
> [10680.951653] sysctl table check failed: /afs/GCPAGs .1.4 procname 
> does not match binary path procname
> [10680.951659] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.951662]  [<c0145885>] set_fail+0x45/0x60
> [10680.951669]  [<c0145b36>] sysctl_check_table+0x296/0x5b0
> [10680.951678]  [<c0145b4a>] sysctl_check_table+0x2aa/0x5b0
> [10680.951686]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.951692]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.951718]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.951744]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.951769]  [<c01e57d0>] request_key+0x0/0x60
> [10680.951780]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.951791]  =======================
> [10680.951799] sysctl table check failed: /afs/rx_deadtime .1.5 
> Unknown sysctl binary path
> [10680.951804] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.951812]  [<c0145885>] set_fail+0x45/0x60
> [10680.951819]  [<c0145b36>] sysctl_check_table+0x296/0x5b0
> [10680.951828]  [<c0145b4a>] sysctl_check_table+0x2aa/0x5b0
> [10680.951836]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.951841]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.951867]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.951893]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.951919]  [<c01e57d0>] request_key+0x0/0x60
> [10680.951929]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.951940]  =======================
> [10680.951948] sysctl table check failed: /afs/bkVolPref .1.6 Unknown 
> sysctl binary path
> [10680.951954] Pid: 6103, comm: modprobe Tainted: P        
> 2.6.24-21-generic #1
> [10680.951961]  [<c0145885>] set_fail+0x45/0x60
> [10680.951968]  [<c0145b36>] sysctl_check_table+0x296/0x5b0
> [10680.951977]  [<c0145b4a>] sysctl_check_table+0x2aa/0x5b0
> [10680.951985]  [<c0134580>] register_sysctl_table+0x50/0xa0
> [10680.951990]  [<f8ebcf2a>] osi_sysctl_init+0xa/0x20 [openafs]
> [10680.952016]  [<f8ace040>] init_module+0x40/0xa6 [openafs]
> [10680.952043]  [<c01506a6>] sys_init_module+0x126/0x19c0
> [10680.952068]  [<c01e57d0>] request_key+0x0/0x60
> [10680.952079]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [10680.952090]  =======================
> [10681.027707] Starting AFS cache scan...found 154 non-empty cache 
> files (9%).
>