[LU-7586] sanity-hsm test_406: "cannot complete migration after HSM remove" Created: 21/Dec/15 Updated: 12/May/16 Resolved: 16/Mar/16 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Maloo | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
This issue was created by maloo for liuying <emoly.liu@intel.com> This issue relates to the following test suite run: https://testing.hpdd.intel.com/test_sets/f5397500-a709-11e5-8a33-5254006e85c2. The sub-test test_406 failed with the following error: cannot complete migration after HSM remove Please provide additional information about the failure here. Info required for matching: sanity-hsm 406 /mnt/lustre/d406.sanity-hsm/f406.sanity-hsm migrate failed: Function not implemented (-38) mv: cannot migrate '/mnt/lustre/d406.sanity-hsm/f406.sanity-hsm' to MDT0001: Function not implemented sanity-hsm test_406: @@@@@@ FAIL: cannot complete migration after HSM remove This test case was added by |
| Comments |
| Comment by Andreas Dilger [ 05/Jan/16 ] |
|
The relevant part of the test looks like: # Should migrate $tdir but not $tfile.
$LFS mv -M1 $DIR/$tdir &&
error "migrating HSM an archived file should fail"
$LFS hsm_restore $DIR/$tdir/$tfile
wait_request_state "$fid" RESTORE SUCCEED
$LFS hsm_remove $DIR/$tdir/$tfile ||
error "cannot remove $DIR/$tdir/$tfile from archive"
cat $DIR/$tdir/$tfile > /dev/null ||
error "cannot read $DIR/$tdir/$tfile"
$LFS mv -M1 $DIR/$tdir/$tfile ||
error "cannot complete migration after HSM remove"
It seems there is some kind of race between removing the HSM attributes from the file and the second migration attempt? Alternately, is it incorrect to call "lfs mv -M1" on a file instead of a directory? I recall Di saying a few times that migration is for directories and not individual files. |
| Comment by Gerrit Updater [ 05/Jan/16 ] |
|
John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/17828 |
| Comment by James Nunez (Inactive) [ 12/Jan/16 ] |
|
A recent sanity-hsm run on master fails with a different error message that the one reported in the description Updated after 2s: wanted 'SUCCEED' got 'SUCCEED' cb_migrate_mdt_init: Failed to open '/mnt/lustre/d406.sanity-hsm/f406.sanity-hsm': Not a directory (20) mv: cannot migrate '/mnt/lustre/d406.sanity-hsm/f406.sanity-hsm' to MDT0001: Not a directory sanity-hsm test_406: @@@@@@ FAIL: cannot complete migration after HSM remove This is fixed with your proposed patch http://review.whamcloud.com/#/c/17828/. Logs at |
| Comment by Gerrit Updater [ 14/Jan/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/17828/ |
| Comment by Joseph Gmitter (Inactive) [ 16/Mar/16 ] |
|
Ticket cleanup: The patch had landed to master for the 2.8.0 release in January. |