[LU-16455] recovery-small test_139: failed to set up loop device: No such file or directory Created: 08/Jan/23  Updated: 19/Jan/23  Resolved: 19/Jan/23

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

Type: Bug Priority: Minor
Reporter: Elena Gryaznova Assignee: Elena Gryaznova
Resolution: Fixed Votes: 0
Labels: None

Epic/Theme: patch
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

mds device calculated before stop () can not be used after stop() because of a device-mapper device is removed and facet device is restored:

  stop () ->
    elif dm_flakey_supported $facet; then
      if [[ -n ${!failover_host} &&
               ${!failover_host} != ${!host} ]]
         dm_cleanup_dev $facet ->
               unexport_dm_dev $facet

Without the proposed fix the test_139 fails on failover setup:

  losetup: /dev/mapper/mds1_flakey: failed to set up loop device:
    No such file or directory

To reproduce the failure just run:

  sh llmountcleanup.sh
  ONLY=139 sh recovery-small.sh

on failover setup where mds1_HOST != mds1failover_HOST



 Comments   
Comment by Gerrit Updater [ 08/Jan/23 ]

"Elena Gryaznova <elena.gryaznova@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49579
Subject: LU-16455 tests: recovery-small test_139() fix
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 896093ec63c1267568bbba58d6dbedbcebf08866

Comment by Gerrit Updater [ 19/Jan/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49579/
Subject: LU-16455 tests: recovery-small test_139() fix
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 485e412acbf7fb977ac4024e2ec1feb2d4a5c546

Comment by Peter Jones [ 19/Jan/23 ]

Landed for 2.16

Generated at Sat Feb 10 03:27:10 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.