[LU-12895] review-dne-selinux sanity test_185a: lu_object_attr()) ASSERTION( ((o)->lo_header->loh_attr & LOHA_EXISTS) != 0 ) failed Created: 22/Oct/19  Updated: 09/Jan/20  Resolved: 16/Dec/19

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

Type: Bug Priority: Minor
Reporter: Chris Horn Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: LTS12, SELinux, sec

Issue Links:
Duplicate
is duplicated by LU-12943 sanity test_185a: crashed on lu_objec... Closed
Related
is related to LU-13115 always check object existence after m... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This issue relates to the following test run:
https://testing.whamcloud.com/test_sets/ace7187a-f4bc-11e9-a0ba-52540065bddc

test_185a failed with an assertion:

[10686.971926] Lustre: DEBUG MARKER: /usr/sbin/lctl mark == sanity test 185a: Volatile file creation in .lustre\/fid\/ ========================================== 09:00:55 \(1571734855\)
[10687.512209] Lustre: DEBUG MARKER: == sanity test 185a: Volatile file creation in .lustre/fid/ ========================================== 09:00:55 (1571734855)
[10691.825999] LustreError: 29154:0:(lu_object.h:840:lu_object_attr()) ASSERTION( ((o)->lo_header->loh_attr & LOHA_EXISTS) != 0 ) failed: 
[10691.828135] LustreError: 29154:0:(lu_object.h:840:lu_object_attr()) LBUG
[10691.829269] Pid: 29154, comm: mdt00_006 3.10.0-957.27.2.el7_lustre.x86_64 #1 SMP Mon Sep 30 22:09:27 UTC 2019
[10691.830887] Call Trace:
[10691.831366]  [] libcfs_call_trace+0x8c/0xc0 [libcfs]
[10691.832550]  [] lbug_with_loc+0x4c/0xa0 [libcfs]
[10691.833816]  [] mo_attr_get.part.35+0x0/0x36 [mdt]
[10691.835117]  [] mdt_getattr_name_lock+0x1974/0x1c90 [mdt]
[10691.836381]  [] mdt_intent_getattr+0x2b5/0x480 [mdt]
[10691.837566]  [] mdt_intent_opc+0x1ba/0xb40 [mdt]
[10691.838731]  [] mdt_intent_policy+0x1a4/0x360 [mdt]
[10691.839860]  [] ldlm_lock_enqueue+0x356/0xa20 [ptlrpc]
[10691.841180]  [] ldlm_handle_enqueue0+0xa56/0x15f0 [ptlrpc]
[10691.842528]  [] tgt_enqueue+0x62/0x210 [ptlrpc]
[10691.843786]  [] tgt_request_handle+0x97a/0x1620 [ptlrpc]
[10691.844994]  [] ptlrpc_server_handle_request+0x256/0xb10 [ptlrpc]
[10691.846378]  [] ptlrpc_main+0xbac/0x1540 [ptlrpc]
[10691.847524]  [] kthread+0xd1/0xe0
[10691.848455]  [] ret_from_fork_nospec_end+0x0/0x39
[10691.849594]  [] 0xffffffffffffffff
[10691.850731] Kernel panic - not syncing: LBUG
[10691.851439] CPU: 0 PID: 29154 Comm: mdt00_006 Kdump: loaded Tainted: G           OE  ------------   3.10.0-957.27.2.el7_lustre.x86_64 #1
[10691.853423] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
[10691.854379] Call Trace:
[10691.854798]  [] dump_stack+0x19/0x1b
[10691.855733]  [] panic+0xe8/0x21f
[10691.856566]  [] lbug_with_loc+0x9b/0xa0 [libcfs]
[10691.857638]  [] lu_object_attr.isra.32.part.33+0x36/0x36 [mdt]
[10691.858877]  [] mdt_getattr_name_lock+0x1974/0x1c90 [mdt]
[10691.860063]  [] ? lustre_msg_buf+0x17/0x60 [ptlrpc]
[10691.861165]  [] ? __req_capsule_get+0x163/0x740 [ptlrpc]
[10691.862327]  [] ? lustre_msg_get_flags+0x2c/0xa0 [ptlrpc]
[10691.863503]  [] mdt_intent_getattr+0x2b5/0x480 [mdt]
[10691.864569]  [] mdt_intent_opc+0x1ba/0xb40 [mdt]
[10691.865611]  [] ? lustre_swab_ldlm_policy_data+0x30/0x30 [ptlrpc]
[10691.866871]  [] ? mdt_intent_layout+0xe00/0xe00 [mdt]
[10691.867970]  [] mdt_intent_policy+0x1a4/0x360 [mdt]
[10691.869039]  [] ldlm_lock_enqueue+0x356/0xa20 [ptlrpc]
[10691.870152]  [] ? cfs_hash_bd_add_locked+0x63/0x80 [libcfs]
[10691.871333]  [] ? cfs_hash_add+0xbe/0x1a0 [libcfs]
[10691.872387]  [] ldlm_handle_enqueue0+0xa56/0x15f0 [ptlrpc]
[10691.873553]  [] ? lustre_swab_ldlm_lock_desc+0x30/0x30 [ptlrpc]
[10691.874818]  [] tgt_enqueue+0x62/0x210 [ptlrpc]
[10691.875841]  [] tgt_request_handle+0x97a/0x1620 [ptlrpc]
[10691.877028]  [] ? libcfs_nid2str_r+0xfe/0x130 [lnet]
[10691.878117]  [] ptlrpc_server_handle_request+0x256/0xb10 [ptlrpc]
[10691.879352]  [] ? __wake_up+0x44/0x50
[10691.880242]  [] ptlrpc_main+0xbac/0x1540 [ptlrpc]
[10691.881269]  [] ? finish_task_switch+0x50/0x1c0
[10691.882287]  [] ? ptlrpc_register_service+0xf90/0xf90 [ptlrpc]
[10691.883486]  [] kthread+0xd1/0xe0
[10691.884267]  [] ? insert_kthread_work+0x40/0x40
[10691.885252]  [] ret_from_fork_nospec_begin+0x21/0x21
[10691.886292]  [] ? insert_kthread_work+0x40/0x40


 Comments   
Comment by Chris Horn [ 22/Oct/19 ]

+1 https://testing.whamcloud.com/test_sets/115af93a-f4d5-11e9-a197-52540065bddc

Comment by Andreas Dilger [ 29/Oct/19 ]

Hit this 23 times in the last 3 days. It looks like only review-dne-selinux and review-dne-selinux-ssk are affected, and those sessions are currently optional so do not affect the Maloo Verified +1 result.

Comment by Gerrit Updater [ 30/Oct/19 ]

James Nunez (jnunez@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36616
Subject: LU-12895 tests: stop running tests fail SSK and SELinux
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7edc2d3ce7d064637654aa74ba1f78b84520dae3

Comment by Bruno Faccini (Inactive) [ 30/Oct/19 ]

+1 @https://testing.whamcloud.com/test_sets/e328cfc0-fb59-11e9-be86-52540065bddc

Comment by Gerrit Updater [ 31/Oct/19 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/36629
Subject: LU-12895 mdt: check if object exists first
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: e3fb91cba12271a69d6e6c541831c582c513d379

Comment by Sebastien Buisson [ 31/Oct/19 ]

I think patch https://review.whamcloud.com/36616 that aims at excepting sanity test 185a with SELinux will not be necessary. I might have found a simple fix with patch https://review.whamcloud.com/36629.

Comment by Gerrit Updater [ 05/Nov/19 ]

Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/36616/
Subject: LU-12895 tests: stop running tests for SSK and SELinux
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4ae1c96672df324554ee1b3e3acaf664811ac866

Comment by Gerrit Updater [ 27/Nov/19 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/36882
Subject: LU-12895 tests: add Debian dependency on selinux-utils package
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b561f525d8dd1c16795570f55bf61d85ec9b6d69

Comment by Gerrit Updater [ 06/Dec/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36629/
Subject: LU-12895 mdt: check if object exists first
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ca68e3d677a371497586167a2318268db1d94cab

Comment by Gerrit Updater [ 16/Dec/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36882/
Subject: LU-12895 tests: add Debian dependency on selinux-utils package
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 5c2d8eb040d957a1f04b343d677900591f47f94d

Comment by Peter Jones [ 16/Dec/19 ]

Landed for 2.14

Comment by Gerrit Updater [ 16/Dec/19 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/37032
Subject: LU-12895 mdt: check if object exists first
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 1c832835e4b90e80b53440882735238b0f4ec71e

Comment by Gerrit Updater [ 03/Jan/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37032/
Subject: LU-12895 mdt: check if object exists first
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: e3d4d6b91434c72e39196ec795abe3fb8631100a

Comment by James A Simmons [ 06/Jan/20 ]

Does https://review.whamcloud.com/#/c/36687 resolve this problem?

Comment by Sebastien Buisson [ 06/Jan/20 ]

Patch at https://review.whamcloud.com/36687 is complementary and should be landed as well.

Generated at Sat Feb 10 02:56:35 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.