[OpenAFS] OpenAFS client under LXC?

Richard Feltstykket rafeltstykket@ucdavis.edu
Wed, 9 Aug 2017 12:46:25 -0700

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello list,

We have for the past few years been running openafs under lxc on ubuntu
14.04 using bind mounts like this:

lxc.mount.entry =3D /afs /lxc/containers/cafe/rootfs/afs none bind 0 0

I have just patched one of the hosts.  After starting some of the
containers, a few minutes later I get a kernel panic with:

[  494.270238] openafs: Inconsistent file handles within cache
[  494.271189] ------------[ cut here ]------------
[  494.271866] kernel BUG at
[  494.273530] invalid opcode: 0000 [#1] SMP=20
[  494.274255] Modules linked in: sunrpc veth openafs(POE) xt_CHECKSUM
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat
nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack
xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc kvm irqbypass
crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64
lrw joydev gf128mul glue_helper ablk_helper cryptd input_leds serio_raw
amd64_edac_mod edac_mce_amd fam15h_power edac_core k10temp i2c_piix4
8250_fintek mac_hid shpchp lp parport zfs(POE) zunicode(POE)
zcommon(POE) znvpair(POE) spl(OE) zavl(POE) pata_acpi ses enclosure
hid_generic usbhid hid uas usb_storage psmouse igb mpt3sas i2c_algo_bit
ahci dca raid_class pata_atiixp ptp libahci scsi_transport_sas pps_core
fjes [last unloaded: openafs]
[  494.287323] CPU: 12 PID: 5842 Comm: afsd Tainted: P           OE
4.4.0-89-generic #112~14.04.1-Ubuntu

The system then becomes unstable.

I've tried wiping out the cache files in /var/cache/openafs*/*, but that
didn't help.

I've disabled the afs client and started all of the containers and the
system appears stable.

I've also tested afs before starting the containers and it appears to
also be functioning correctly.

I'm running the openafs ppa packages:
 dpkg -l | grep -e openafs
ii  openafs-client                       1.6.21-1~ppa1~ubuntu14.04.1
amd64        AFS distributed filesystem client support
ii  openafs-krb5                         1.6.21-1~ppa1~ubuntu14.04.1
amd64        AFS distributed filesystem Kerberos 5 integration
ii  openafs-modules-dkms                 1.6.21-1~ppa1~ubuntu14.04.1
all          AFS distributed filesystem kernel module DKMS source

And the system is:
lsb_release -a ; uname -r
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.5 LTS
Release:	14.04
Codename:	trusty

Might anyone have any suggestions? =20


Content-Type: application/pgp-signature; name="signature.asc"

Version: GnuPG v1