Project

General

Profile

Actions

Bug #43913

closed

test_error (tasks.mgr.test_orchestrator_cli.TestOrchestratorCli): AssertionError: 22 != 2

Added by Sage Weil about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Urgent
Category:
-
Target version:
-
% Done:

0%

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

Description

2020-01-30T00:49:26.328 INFO:teuthology.orchestra.run.smithi146.stderr:2020-01-30T00:49:26.321+0000 7f900eeac700  1 -- 172.21.15.146:0/1566339747 --> [v2:172.21.15.146:6812/13336,v1:172.21.15.146:6813/13336] -- mgr_command(tid 0: {"prefix": "orchestrator host add", "host": "raise_no_support", "target": ["mon-mgr", ""]}) v1 -- 0x7f9008066a30 con 0x7f8fe805a420
2020-01-30T00:49:26.333 INFO:tasks.ceph.mgr.x.smithi146.stderr:2020-01-30T00:49:26.329+0000 7f5e145a5700 -1 mgr handle_command module 'orchestrator_cli' command handler threw exception: MON count must be either 1, 3 or 5
2020-01-30T00:49:26.338 INFO:tasks.ceph.mgr.x.smithi146.stderr:2020-01-30T00:49:26.329+0000 7f5e145a5700 -1 mgr.server reply reply (22) Invalid argument Traceback (most recent call last):
2020-01-30T00:49:26.339 INFO:tasks.ceph.mgr.x.smithi146.stderr:  File "/usr/share/ceph/mgr/mgr_module.py", line 1069, in _handle_command
2020-01-30T00:49:26.339 INFO:tasks.ceph.mgr.x.smithi146.stderr:    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
2020-01-30T00:49:26.339 INFO:tasks.ceph.mgr.x.smithi146.stderr:  File "/usr/share/ceph/mgr/mgr_module.py", line 309, in call
2020-01-30T00:49:26.339 INFO:tasks.ceph.mgr.x.smithi146.stderr:    return self.func(mgr, **kwargs)
2020-01-30T00:49:26.339 INFO:tasks.ceph.mgr.x.smithi146.stderr:  File "/usr/share/ceph/mgr/orchestrator.py", line 141, in wrapper
2020-01-30T00:49:26.340 INFO:tasks.ceph.mgr.x.smithi146.stderr:    return func(*args, **kwargs)
2020-01-30T00:49:26.340 INFO:tasks.ceph.mgr.x.smithi146.stderr:  File "/usr/share/ceph/mgr/orchestrator_cli/module.py", line 164, in _add_host
2020-01-30T00:49:26.340 INFO:tasks.ceph.mgr.x.smithi146.stderr:    orchestrator.raise_if_exception(completion)
2020-01-30T00:49:26.340 INFO:tasks.ceph.mgr.x.smithi146.stderr:  File "/usr/share/ceph/mgr/orchestrator.py", line 638, in raise_if_exception
2020-01-30T00:49:26.340 INFO:tasks.ceph.mgr.x.smithi146.stderr:    raise e
2020-01-30T00:49:26.340 INFO:tasks.ceph.mgr.x.smithi146.stderr:orchestrator.OrchestratorValidationError: MON count must be either 1, 3 or 5

/a/sage-2020-01-29_20:14:58-rados-wip-sage-testing-2020-01-29-1034-distro-basic-smithi/4718071
Actions #1

Updated by Sage Weil about 4 years ago

https://github.com/ceph/ceph/pull/32881 was part of the test branch... that's maybe the cause?

Actions #2

Updated by Sebastian Wagner about 4 years ago

in any case, something doesn't work here. OrchestratorValidationError should have been catched by https://github.com/ceph/ceph/blob/master/src/pybind/mgr/orchestrator.py#L141-L143 and thus not print a traceback!

Actions #3

Updated by Kefu Chai about 4 years ago

https://github.com/ceph/ceph/pull/32881 didn't cause the failure. on the contrary, it successfully copied the exception and threw it.

please note, to catch "orchestrator.OrchestratorValidationError" is not in the scope of my fix.

Actions #4

Updated by Sebastian Wagner about 4 years ago

2020-02-05T10:36:02.374 INFO:tasks.cephfs_test_runner:======================================================================
2020-02-05T10:36:02.374 INFO:tasks.cephfs_test_runner:FAIL: test_error (tasks.mgr.test_orchestrator_cli.TestOrchestratorCli)
2020-02-05T10:36:02.375 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2020-02-05T10:36:02.375 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
2020-02-05T10:36:02.375 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/github.com_tchaikov_ceph_wip-43657/qa/tasks/mgr/test_orchestrator_cli.py", line 169, in test_error
2020-02-05T10:36:02.375 INFO:tasks.cephfs_test_runner:    self.assertEqual(ret, errno.ENOENT)
2020-02-05T10:36:02.375 INFO:tasks.cephfs_test_runner:AssertionError: 22 != 2

^^^ is the error. Assigned to me

Actions #5

Updated by Sebastian Wagner about 4 years ago

  • Assignee set to Sebastian Wagner
Actions #6

Updated by Sebastian Wagner about 4 years ago

  • Subject changed from MON count must be either 1, 3 or 5 from 'host add' to test_error (tasks.mgr.test_orchestrator_cli.TestOrchestratorCli): AssertionError: 22 != 2
Actions #7

Updated by Sage Weil about 4 years ago

/a/sage-2020-02-07_23:51:30-rados-wip-sage2-testing-2020-02-07-1439-distro-basic-smithi/4742679

Actions #8

Updated by Sebastian Wagner about 4 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 33179
Actions #9

Updated by Sage Weil about 4 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF