[LU-5680] sanity-hsm uses /etc/motd (which is probably of size 0) Created: 29/Sep/14  Updated: 31/Mar/22  Resolved: 31/Mar/22

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.11.0, Lustre 2.10.4
Fix Version/s: Lustre 2.12.1

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: James Nunez (Inactive)
Resolution: Fixed Votes: 0
Labels: hsm, ubuntu

Issue Links:
Related
is related to LU-10469 sanity-hsm on ubuntu: cp: cannot stat... Resolved
Severity: 3
Rank (Obsolete): 15912

 Description   

In various tests sanity-hsm copies /etc/hosts, /etc/passwd, or /etc/modt for use as the test file. /etc/motd is likely of size 0 and may defeat the use of bandwidth control for timing. Uses of /etc/* should be replaced with a generated files of known suitable size. We should also add explicit tests using files of size 0.



 Comments   
Comment by Jodi Levi (Inactive) [ 30/Sep/14 ]

Hi James,
Could you have a look at this one?
Thank you!

Comment by Gerrit Updater [ 09/Mar/15 ]

James Nunez (james.a.nunez@intel.com) uploaded a new patch: http://review.whamcloud.com/14021
Subject: LU-5680 tests: Remove all use of /etc from sanity-hsm
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d6545c1ffb2ded84df550a0e2b810f52f6f4d078

Comment by James Nunez (Inactive) [ 09/Mar/15 ]

Patch http://review.whamcloud.com/14021 replaces all uses of /etc/* with creation of a small file of known size. A second patch will be created to add archiving of zero byte files to sanity-hsm.

Comment by Gerrit Updater [ 09/Jan/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/14021/
Subject: LU-5680 tests: Remove use of /etc/motd from sanity-hsm
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 715c7e9166a34c1f2b781f3314d8b7c02e10950c

Comment by Minh Diep [ 09/Jan/18 ]

Landed for 2.11

Comment by Gerrit Updater [ 09/Jan/18 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/30795
Subject: LU-5680 tests: Remove use of /etc/motd from sanity-hsm
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 05b19b2fe88732e36694ce738a915ccd5c0506f5

Comment by Quentin Bouget [ 11/Apr/18 ]

There are still a lot of place in sanity-hsm where /etc/{passwd,hosts} are used. Maybe this ticket should be reopened.

Comment by Gerrit Updater [ 12/Apr/18 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/30795/
Subject: LU-5680 tests: Remove use of /etc/motd from sanity-hsm
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 158b6382704947c0d23d5b79d2b94bdc7a04af10

Comment by James Nunez (Inactive) [ 21/May/18 ]

Reopening ticket to allow for patches to replace all uses of /etc files.

Comment by James A Simmons [ 12/Jan/22 ]

Anyone looking at this ?

Comment by James A Simmons [ 31/Mar/22 ]

Doesn't seem to be of interest to anyone anymore. If it is feel free to reopen.

Comment by John Hammond [ 31/Mar/22 ]

Change 14021 - Merged

LU-5680 tests: Remove use of /etc/motd from sanity-hsm

In sanity-hsm tests, /etc/motd is copied to the file system
and archived. /etc/motd may not exist in some Linux distributions
and, if exists, may be of size 0 and may defeat the use of
bandwidth control for timing. Uses of /etc/motd are replaced
with a generated file of known suitable size.

Test-Parameters: trivial testlist=sanity-hsm

Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I2f287db6d422ce20bca037ca69e24179c7e48144
Reviewed-on: https://review.whamcloud.com/14021
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>

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