[LU-4059] sanity-hsm test_11 failure: 'Incorrect size 363 != ' Created: 04/Oct/13  Updated: 09/Oct/13  Resolved: 09/Oct/13

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

Type: Bug Priority: Minor
Reporter: James Nunez (Inactive) Assignee: James Nunez (Inactive)
Resolution: Fixed Votes: 0
Labels: HSM
Environment:

Luster master build # 1715
OpenSFS cluster with combined MGS/MDS, single OSS with two OSTs, three clients; one agent + client, one with robinhood/db running and one just running as Lustre clients


Severity: 3
Rank (Obsolete): 10881

 Description   

The test results are at: https://maloo.whamcloud.com/test_sets/8e9cca2c-2c8b-11e3-85ee-52540035b04c

From the client test_log:

== sanity-hsm test 11: Import a file == 14:01:59 (1380834119)
c13: lhsmtool_posix[5372]: action=1 src=d0.sanity-hsm/d11/f.sanity-hsm.11 dst=/lustre/scratch/d0.sanity-hsm/d11/f.sanity-hsm.11 mount_point=/lustre/scratch
c13: lhsmtool_posix[5372]: importing '/lustre/scratch/d0.sanity-hsm/d11/f.sanity-hsm.11' from '/lustre/archive/d0.sanity-hsm/d11/f.sanity-hsm.11'
c13: lhsmtool_posix[5372]: imported '/lustre/scratch/d0.sanity-hsm/d11/f.sanity-hsm.11' from '/lustre/archive/0001/0000/0402/0000/0002/0000/0x200000402:0x1:0x0'=='/lustre/archive/d0.sanity-hsm/d11/f.sanity-hsm.11'
c13: lhsmtool_posix[5372]: process finished, errs: 0 major, 0 minor, rc=0 (Success)
Verifying released state: stat: cannot stat `/lustre/archive/d0.sanity-hsm/d11/f.sanity-hsm.11': No such file or directory
Verifying imported size 363=
 sanity-hsm test_11: @@@@@@ FAIL: Incorrect size 363 !=  
  Trace dump:
  = /usr/lib64/lustre/tests/test-framework.sh:4264:error_noexit()
  = /usr/lib64/lustre/tests/test-framework.sh:4291:error()
  = /usr/lib64/lustre/tests/sanity-hsm.sh:818:test_11()

From the test_11 code, it's clear that the call to get the size of the file from the archive should be run on an agent:

	local ASZ=$(stat -c "%s" $HSM_ARCHIVE/$tdir/$tfile)


 Comments   
Comment by James Nunez (Inactive) [ 04/Oct/13 ]

Proposed patch: http://review.whamcloud.com/#/c/7851/

Comment by James Nunez (Inactive) [ 09/Oct/13 ]

Landed to 2.5.0

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