jthornber / device-mapper-test-suite

Test suite for device mapper targets
GNU General Public License v3.0
23 stars 19 forks source link

device-mapper: thin: Unrecognised thin pool target message received: set_mode #53

Closed renzhengeek closed 5 years ago

renzhengeek commented 5 years ago

Hi, Many testcases failed in my testing on centos 7.6, but with 4.9 kernel and device-mapper-1.02.149 package:

image

I haven't look into all failures yet, instead I start with CrashTests::aborting_a_provisioned_thin failure, notice that many cases failed with this error message:

# dmsetup message test-dev-589338 0 -- set_mode read-only abort
device-mapper: message ioctl on test-dev-589338  failed: Invalid argument
Command failed.

which I can reproduce with dmsetup following the steps in logs.

kernel message:

1月 18 06:58:38 eric-dm kernel: device-mapper: thin: Unrecognised thin pool target message received: set_mode

Does this testsuite need to run on a specific kernel version? I searched around the kernel source(5.0-rc2 and 4.19), but 'set_mode' message is not in pool message list.

Could you please shed some light where I should look at to solve this issue?

renzhengeek commented 5 years ago

Emm, another weird failure as follows.

# dmtest run --suite thin-provisioning -t CreationTests
Loaded suite thin-provisioning
CreationTests
  activate_thin_while_pool_suspended_fails...PASS
  create_lots_of_empty_thins...PASS
  create_lots_of_recursive_snaps...PASS
  create_lots_of_snaps...PASS
  huge_block_size...PASS
  largest_data_block_size_succeeds...#<Test::Unit::Error:0x00000000020f9c70
 @exception=
  #<ProcessControl::ExitError: command failed: dmsetup load test-dev-205043 /tmp/dm-table20190118-15319-kcdnhf>,
 @test_name="test_largest_data_block_size_succeeds(CreationTests)">
FAIL
  largest_dev_t_succeeds...PASS
  non_power_of_2_data_block_size_fails...PASS
  too_large_a_dev_t_fails...PASS
  too_large_data_block_size_fails...PASS
  too_small_a_metadata_dev_fails...PASS
  too_small_data_block_size_fails...PASS

image

kernel error message:


kernel: device-mapper: thin metadata: changing the data block size (from 128 to 2097152) is not supported
kernel: device-mapper: table: 252:0: thin-pool: Error creating metadata object
kernel: device-mapper: ioctl: error adding target to table
`
renzhengeek commented 5 years ago

Ah, the set_mode pool message support is one of your private patch for testing:

commit ef64914d18bba537d92f937860159da7dad8d2ee
Author: Joe Thornber <ejt@redhat.com>
Date:   Mon Mar 10 14:39:43 2014 +0000

    [dm-thin] set_mode pool message.

    This isn't going upstream, just for my testing.