[LU-4486] lsof is needed by lustre-tests but not a dependency Created: 15/Jan/14  Updated: 09/Oct/21  Resolved: 09/Oct/21

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

Type: Bug Priority: Minor
Reporter: Richard Henwood (Inactive) Assignee: WC Triage
Resolution: Low Priority Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 12285

 Description   

I've just run a llmount.sh and llmountcleanup.sh. On cleanup, I see:

# /usr/lib64/lustre/tests/llmountcleanup.sh 
Stopping clients: lustre-master-127 /mnt/lustre (opts:-f)
Stopping client lustre-master-127 /mnt/lustre opts:-f
sh: lsof: command not found
Stopping clients: lustre-master-127 /mnt/lustre2 (opts:-f)
Stopping client lustre-master-127 /mnt/lustre2 opts:-f
sh: lsof: command not found
Stopping /mnt/mds1 (opts:-f) on lustre-master-127
Stopping /mnt/ost1 (opts:-f) on lustre-master-127
Stopping /mnt/ost2 (opts:-f) on lustre-master-127
modules unloaded.
[root@lustre-master-127 ~]# lsof
-bash: lsof: command not found

It seems that lsof is not included in my CentOS6 'minimal install'. A possible fix is to include a dependency on lsof in 'lustre-tests' rpm.



 Comments   
Comment by Andreas Dilger [ 15/Jan/14 ]

On my FC system, lsof is in the "lsof" package. It could be added to the Requires line for the "tests" package in lustre.spec.in. There are probably a lot of similar gaps in the lustre-tests RPM. There is a patch in Gerrit that adds some other dependencies, but I don't know the number offhand.

Generated at Sat Feb 10 01:43:09 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.