[LU-12778] sanity-sec test 12 fails with 'nodemap_add failed with 1' Created: 17/Sep/19  Updated: 12/Nov/19  Resolved: 12/Nov/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: James Nunez (Inactive) Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

sanity-sec test_12 fails with 'nodemap_add failed with 1' and then test_13, test_14 and test_15 all fail because a nodemap with the same name as the one they are creating exists. Many of these failures were previously attributed to LU-12428, but the patches for that ticket have landed. Thus, I’m opening a new ticket for these failures.

Looking at the suite_log at https://testing.whamcloud.com/test_sets/04c45a6c-d6fe-11e9-9fc9-52540065bddc we see

waited 0 seconds for sync
CMD: trevis-20vm4 /usr/sbin/lctl nodemap_add 40932_0
CMD: trevis-20vm4 /usr/sbin/lctl get_param nodemap.40932_0.id
CMD: trevis-20vm4 /usr/sbin/lctl nodemap_add 40932_1
CMD: trevis-20vm4 /usr/sbin/lctl get_param nodemap.40932_1.id
CMD: trevis-20vm4 /usr/sbin/lctl nodemap_add 40932_2
CMD: trevis-20vm4 /usr/sbin/lctl get_param nodemap.40932_2.id
CMD: trevis-20vm4 /usr/sbin/lctl nodemap_add 40932_3
CMD: trevis-20vm4 /usr/sbin/lctl get_param nodemap.40932_3.id
CMD: trevis-20vm4 /usr/sbin/lctl nodemap_add 40932_4
CMD: trevis-20vm4 /usr/sbin/lctl get_param nodemap.40932_4.id
trevis-20vm4: error: get_param: param_path 'nodemap/40932_4/id': No such file or directory
 sanity-sec test_12: @@@@@@ FAIL: nodemap_add failed with 1 
  Trace dump:
  = /usr/lib64/lustre/tests/test-framework.sh:6115:error()
  = /usr/lib64/lustre/tests/sanity-sec.sh:956:test_12()

In the console log for the MDS1/3 (vm4), we see

[14149.616497] Lustre: DEBUG MARKER: /usr/sbin/lctl nodemap_add 40932_4
[14149.785556] Lustre: 9238:0:(nodemap_handler.c:1183:nodemap_create()) adding nodemap '40932_0' to config without default nodemap
[14149.786764] Lustre: 9238:0:(nodemap_handler.c:1183:nodemap_create()) Skipped 84 previous similar messages
[14149.958479] Lustre: DEBUG MARKER: /usr/sbin/lctl get_param nodemap.40932_4.id
[14150.371650] Lustre: DEBUG MARKER: /usr/sbin/lctl mark  sanity-sec test_12: @@@@@@ FAIL: nodemap_add failed with 1 


 Comments   
Comment by Li Xi [ 18/Sep/19 ]

Another example, not sanity-sec test 12, but 9

https://testing.whamcloud.com/test_sets/c0085302-d99a-11e9-9fc9-52540065bddc

Comment by Gerrit Updater [ 24/Sep/19 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/36280
Subject: LU-12778 tests: give time to apply nodemap
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 01c21f59756a3de349f576c3801adcb38d97a565

Comment by Gerrit Updater [ 12/Nov/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36280/
Subject: LU-12778 tests: give time to apply nodemap
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 38ea9326eeb6eeadb44cd6716d94d0f3382e8004

Comment by Peter Jones [ 12/Nov/19 ]

Landed for 2.14

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