Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMT tests results in mkfs.xfs failure #664

Open
mulkieran opened this issue Sep 26, 2023 · 2 comments
Open

TMT tests results in mkfs.xfs failure #664

mulkieran opened this issue Sep 26, 2023 · 2 comments
Assignees

Comments

@mulkieran
Copy link
Member

mulkieran commented Sep 26, 2023

Note that tests are all being run on loopbacked device.

This test actually fails, but rather early in the test sequence, so it is probably not an error in the tests, but a real failure.

======================================================================
FAIL: test_filesystem_create_specified_size (__main__.StratisdCertify.test_filesystem_create_specified_size)
Test creating a filesystem with a specified size.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/ARTIFACTS/work-testing_HEADkg_f7klg/plans/testing_HEAD/discover/default-0/tests/testlib/utils.py", line 223, in modified_func
    return func(self)
           ^^^^^^^^^^
  File "/var/ARTIFACTS/work-testing_HEADkg_f7klg/plans/testing_HEAD/discover/default-0/tests/stratisd_cert.py", line 798, in test_filesystem_create_specified_size
    self._unittest_command(
  File "/var/ARTIFACTS/work-testing_HEADkg_f7klg/plans/testing_HEAD/discover/default-0/tests/stratisd_cert.py", line 184, in _unittest_command
    self.assertEqual(return_code, expected_return_code, msg=msg)
AssertionError: dbus.UInt16(1) != dbus.UInt16(0) : Command failed: cmd: "/usr/sbin/mkfs.xfs" "-f" "-q" "/dev/dm-5" "-m" "uuid=28ce93f7-69b7-4667-b695-695a25c1a3dd", exit reason: 1 stdout:  stderr: log stripe unit (1048576 bytes) is too large (maximum is 256KiB)
log stripe unit adjusted to 32KiB
mkfs.xfs: libxfs_device_zero write failed: Input/output error
@mulkieran mulkieran self-assigned this Sep 26, 2023
mulkieran added a commit to mulkieran/testing that referenced this issue Sep 26, 2023
Instead of 8 TiB use 1/2 TiB. A size of 8 TiB is causing a test failure.

See: stratis-storage/project#664

Signed-off-by: mulhern <amulhern@redhat.com>
@mulkieran mulkieran changed the title TMT tests results in odd xfs failure for one test TMT tests results in mkfs.xfs failure Oct 9, 2023
@mulkieran
Copy link
Member Author

We're pretty strongly convinced that the problem is due to the loopbacked devices not being able to be resized to hold the xfs metadata due to the restrictions on the filesystem that creates the backing storage. We still don't know why it's a problem on testing farm and not on Fedora containers, though.

@mulkieran
Copy link
Member Author

Current logs from GitHub Actions:

INFO:root:temporary directory for loopbacked devices: /tmp/tmpjs93hzd__stratis_test_loopback
DEBUG:root:output of ['blockdev', '--getss', '/dev/loop3']: 512
DEBUG:root:output of ['blockdev', '--getpbsz', '/dev/loop3']: 512
DEBUG:root:output of ['blockdev', '--getiomin', '/dev/loop3']: 512
DEBUG:root:output of ['blockdev', '--getioopt', '/dev/loop3']: 0
DEBUG:root:output of ['blockdev', '--getss', '/dev/loop4']: 512
DEBUG:root:output of ['blockdev', '--getpbsz', '/dev/loop4']: 512
DEBUG:root:output of ['blockdev', '--getiomin', '/dev/loop4']: 512
DEBUG:root:output of ['blockdev', '--getioopt', '/dev/loop4']: 0
DEBUG:root:output of ['blockdev', '--getss', '/dev/loop5']: 512
DEBUG:root:output of ['blockdev', '--getpbsz', '/dev/loop5']: 512
DEBUG:root:output of ['blockdev', '--getiomin', '/dev/loop5']: 512
DEBUG:root:output of ['blockdev', '--getioopt', '/dev/loop5']: 0

and from TF:

INFO:root:temporary directory for loopbacked devices: /tmp/tmpy37ll7os_stratis_test_loopback
DEBUG:root:output of ['blockdev', '--getss', '/dev/loop0']: 512
DEBUG:root:output of ['blockdev', '--getpbsz', '/dev/loop0']: 512
DEBUG:root:output of ['blockdev', '--getiomin', '/dev/loop0']: 512
DEBUG:root:output of ['blockdev', '--getioopt', '/dev/loop0']: 0
DEBUG:root:output of ['blockdev', '--getss', '/dev/loop1']: 512
DEBUG:root:output of ['blockdev', '--getpbsz', '/dev/loop1']: 512
DEBUG:root:output of ['blockdev', '--getiomin', '/dev/loop1']: 512
DEBUG:root:output of ['blockdev', '--getioopt', '/dev/loop1']: 0
DEBUG:root:output of ['blockdev', '--getss', '/dev/loop2']: 512
DEBUG:root:output of ['blockdev', '--getpbsz', '/dev/loop2']: 512
DEBUG:root:output of ['blockdev', '--getiomin', '/dev/loop2']: 512
DEBUG:root:output of ['blockdev', '--getioopt', '/dev/loop2']: 0

not much difference to be seen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant