Project

General

Profile

Actions

Bug #37275

closed

Bug #37152: mgr/dashboard/qa: some dashboard suites are missing in Teuthology

mgr/dashboard/qa: tasks.mgr.dashboard.test_erasure_code_profile.ECPTest.test_create is failing

Added by Tatjana Dehler over 5 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Stephan Müller
Category:
Testing & QA
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

While activating tasks.mgr.dashboard.test_erasure_code_profile test suite the following error occurred in the log:


2018-11-15T07:52:34.229 INFO:tasks.cephfs_test_runner:======================================================================
2018-11-15T07:52:34.230 INFO:tasks.cephfs_test_runner:FAIL: test_create (tasks.mgr.dashboard.test_erasure_code_profile.ECPTest)
2018-11-15T07:52:34.230 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2018-11-15T07:52:34.230 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
2018-11-15T07:52:34.230 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-tdehler-testing-25084/qa/tasks/mgr/dashboard/test_erasure_code_profile.py", line 71, in test_create
2018-11-15T07:52:34.230 INFO:tasks.cephfs_test_runner:    'w': '8'
2018-11-15T07:52:34.231 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-tdehler-testing-25084/qa/tasks/mgr/dashboard/helper.py", line 325, in assertJsonBody
2018-11-15T07:52:34.231 INFO:tasks.cephfs_test_runner:    self.assertEqual(body, data)
2018-11-15T07:52:34.231 INFO:tasks.cephfs_test_runner:AssertionError: {u'name': u'ecp32', u'plugin': u'jerasure', u'm': 2, u'k': 3, u'technique': u're [truncated]... != {'jerasure-per-chunk-alignment': 'false', 'technique': 'reed_sol_van', 'name': ' [truncated]...
2018-11-15T07:52:34.231 INFO:tasks.cephfs_test_runner:Diff is 746 characters long. Set self.maxDiff to None to see it.
2018-11-15T07:52:34.232 INFO:tasks.cephfs_test_runner:
2018-11-15T07:52:34.232 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2018-11-15T07:52:34.232 INFO:tasks.cephfs_test_runner:Ran 114 tests in 1069.051s
2018-11-15T07:52:34.232 INFO:tasks.cephfs_test_runner:
2018-11-15T07:52:34.233 INFO:tasks.cephfs_test_runner:FAILED (failures=1)
2018-11-15T07:52:34.233 INFO:tasks.cephfs_test_runner:
2018-11-15T07:52:34.233 INFO:tasks.cephfs_test_runner:======================================================================
2018-11-15T07:52:34.233 INFO:tasks.cephfs_test_runner:FAIL: test_create (tasks.mgr.dashboard.test_erasure_code_profile.ECPTest)
2018-11-15T07:52:34.233 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2018-11-15T07:52:34.233 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
2018-11-15T07:52:34.234 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-tdehler-testing-25084/qa/tasks/mgr/dashboard/test_erasure_code_profile.py", line 71, in test_create
2018-11-15T07:52:34.234 INFO:tasks.cephfs_test_runner:    'w': '8'
2018-11-15T07:52:34.234 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-tdehler-testing-25084/qa/tasks/mgr/dashboard/helper.py", line 325, in assertJsonBody
2018-11-15T07:52:34.234 INFO:tasks.cephfs_test_runner:    self.assertEqual(body, data)
2018-11-15T07:52:34.235 INFO:tasks.cephfs_test_runner:AssertionError: {u'name': u'ecp32', u'plugin': u'jerasure', u'm': 2, u'k': 3, u'technique': u're [truncated]... != {'jerasure-per-chunk-alignment': 'false', 'technique': 'reed_sol_van', 'name': ' [truncated]...
Actions #1

Updated by Stephan Müller over 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Stephan Müller
Actions #2

Updated by Stephan Müller over 5 years ago

I found out the reason for this, it's the word size parameter 'w' which may differ from cluster to cluster. The 'vstart' cluster has 8 in my case, I assume that the real cluster, we are testing on, has 16 or 32. If we would make the test succeed here, it may randomly cause errors and it will cause errors in our development environments. I will create a PR which will just ignore the word size attribute.

The meaning behind 'w' can be found in https://web.eecs.utk.edu/~plank/plank/papers/CS-07-603.pdf on page 3:

Most codes have a third parameter w, which is the word size.

(The word size can't be passed as parameter during creation.)

And beneath the explanation what it actually stands for:

When w ∈ {8, 16, 32}, we can consider each collection of w bits to be a byte, short word or word respectively.
Consider the case when w = 8. We may view each device to hold B bytes. The first byte of each coding device
will be encoded with the first byte of each data device. The second byte of each coding device will be encoded
with the second byte of each data device. And so on. This is how Standard Reed-Solomon coding works, and it
should be clear how it works when w = 16 or w = 32.

Actions #3

Updated by Stephan Müller over 5 years ago

  • Pull request ID set to 25120
Actions #4

Updated by Stephan Müller over 5 years ago

  • Status changed from In Progress to Fix Under Review
Actions #5

Updated by Tatjana Dehler over 5 years ago

  • Subject changed from mgr/dashboard/qa: tasks.mgr.dashboard.test_erasure_code_profile test suite is failing to mgr/dashboard/qa: tasks.mgr.dashboard.test_erasure_code_profile.ECPTest.test_create is failing
Actions #6

Updated by Tatjana Dehler over 5 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF