[LU-15400] sanity-lfsck defect: global MDT_DEVNAME can not be used after stop() Created: 28/Dec/21  Updated: 07/Feb/22  Resolved: 07/Feb/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.15.0
Fix Version/s: Lustre 2.15.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   

Global MDT_DEVNAME set at the start of sanity-lfsck equal to a device-mapper device 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

The tests: 1a, 1b, 1c, 2a, 2b, 2c, 2d, 4, 5, 7a, 7b, 8, 30 fail on failover setup with:

        losetup: /dev/mapper/mds1_flakey: failed to set up loop device

This defect is introduced by:
54b9e3f ("LU-684 tests: replace dev_read_only patch with dm-flakey")



 Comments   
Comment by Gerrit Updater [ 09/Jan/22 ]

"Elena Gryaznova <elena.gryaznova@hpe.com>" uploaded a new patch: https://review.whamcloud.com/46025
Subject: LU-15400 tests: MDT_DEVNAME fix
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a1ce797c96d63111fa0496a5e96daef02de25046

Comment by Gerrit Updater [ 07/Feb/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46025/
Subject: LU-15400 tests: sanity-lfsck MDT_DEVNAME fix
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 88205216459ecb97c79055ee24f2b0cda0342ba5

Comment by Peter Jones [ 07/Feb/22 ]

Landed for 2.15

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