[LU-8482] auster run of sanity trying to use deprecated lctl conf_param in 2.8 Created: 06/Aug/16  Updated: 11/Sep/17  Resolved: 11/Sep/17

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

Type: Bug Priority: Major
Reporter: John Salinas (Inactive) Assignee: James Nunez (Inactive)
Resolution: Won't Fix Votes: 0
Labels: LS_RZ

Issue Links:
Related
is related to LU-7004 fix "lctl set_param -P" to allow depr... Resolved
Severity: 1
Rank (Obsolete): 9223372036854775807

 Description   
  1. export FSTYPE=zfs; ./auster -c cfg/multinode.sh -v -k sanity --only 0
    Started at Thu Aug 4 15:55:55 PDT 2016
    simics2: Checking config lustre mounted on /mnt/lustre
    Checking servers environments
    Checking clients simics2 environments
    Logging to local directory: /tmp/test_logs/2016-08-04/155555
    running: sanity ONLY=0
    run_suite sanity /usr/lib64/lustre/tests/sanity.sh
    ----============= acceptance-small: sanity ============---- Thu Aug 4 15:55:58 PDT 2016
    Running: bash /usr/lib64/lustre/tests/sanity.sh
    simics2: Checking config lustre mounted on /mnt/lustre
    Checking servers environments
    Checking clients simics2 environments
    Using TIMEOUT=100
    seting jobstats to procname_uid
    Setting lustre.sys.jobid_var from disable to procname_uid
    lustremgs: warning: 'lctl conf_param' is deprecated, use 'lctl set_param -P' instead
    lustremgs: error: conf_param: Invalid argument
    pdsh@simics2: lustremgs: ssh exited with exit code 22
    sanity : @@@@@@ FAIL: conf_param lustre.sys.jobid_var failed
    Trace dump:
    = /usr/lib64/lustre/tests/test-framework.sh:4670:error_noexit()
    = /usr/lib64/lustre/tests/test-framework.sh:4701:error()
    = /usr/lib64/lustre/tests/test-framework.sh:3776:set_conf_param_and_check()
    = /usr/lib64/lustre/tests/test-framework.sh:3799:init_param_vars()
    = /usr/lib64/lustre/tests/test-framework.sh:3988:check_and_setup_lustre()
    = /usr/lib64/lustre/tests/sanity.sh:108:main()
    Dumping lctl log to /tmp/test_logs/2016-08-04/155555/sanity..*.1470351363.log
    sanity returned 0
    Finished at Thu Aug 4 15:56:05 PDT 2016 in 10s
    ./auster: completed with rc 0

Fails (what it tries to run)
[root@simics2 tests]# /usr/bin/pdsh -S -Rssh -w lustremgs '(PATH=$PATH:/usr/lib64/lustre/utils:/usr/lib64/lustre/tests:/sbin:/usr/sbin; cd /usr/lib64/lustre/tests; LUSTRE="/usr/lib64/lustre" sh -c "/usr/sbin/lctl conf_param lustre.sys.jobid_var='\''procname_uid'\''")'
lustremgs: warning: 'lctl conf_param' is deprecated, use 'lctl set_param -P' instead
lustremgs: error: conf_param: Invalid argument
pdsh@simics2: lustremgs: ssh exited with exit code 22

Works — what it should run
[root@simics2 tests]# /usr/bin/pdsh -S -Rssh -w lustremgs '(PATH=$PATH:/usr/lib64/lustre/utils:/usr/lib64/lustre/tests:/sbin:/usr/sbin; cd /usr/lib64/lustre/tests; LUSTRE="/usr/lib64/lustre" sh -c "/usr/sbin/lctl set_param -P lustre.sys.jobid_var='\''procname_uid'\''")'

This is with the following RPMs on the client node where the run is started from (latest 2.8 build):
lustre-client-tests-2.8.0-3.10.0_327.3.1.el7.x86_64.x86_64.rpm
lustre-iokit-2.8.0-3.10.0_327.3.1.el7.x86_64.x86_64.rpm



 Comments   
Comment by Oleg Drokin [ 08/Aug/16 ]

The eprecated message is no longer valid and we reinstated it.

Now the real problem is the parameter it's giving is somehow wrong and gets rejected.
So that's somethng that should be figured out for hte failure, I think?

Or if this just purely about the deprecated message - we can resolve this ticket or somebody might backport the patch to stop the complaints to 2.8 as well I guess.

Comment by John Salinas (Inactive) [ 08/Aug/16 ]

No, this is not just about the message sanity.sh cannot be run.

It was pointed out to us that we should be using MDSZFSDEV instead of MGSZFSDEV let me try that and see if it makes a difference.

Comment by Andreas Dilger [ 09/Aug/16 ]

There is no need to quote the "procname_uid" parameter name.

Comment by Andreas Dilger [ 09/Aug/16 ]

The patch to remove the conf_param deprecation is http://review.whamcloud.com/20573 and could be backported.

Comment by John Salinas (Inactive) [ 18/Aug/16 ]

We have a work around that we are using for now: lctl set_param -P jobid_var=procname_uid on mgs

Comment by James Nunez (Inactive) [ 08/Sep/17 ]

The team that opened this ticket will be using a later version of Lustre than 2.8, they will use 2.11, and should not see this issue. Please reopen or create a new ticket if you experience this issue again.

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