Actions
Bug #43913
closedtest_error (tasks.mgr.test_orchestrator_cli.TestOrchestratorCli): AssertionError: 22 != 2
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
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
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?
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!
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.
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
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
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
Updated by Sebastian Wagner about 4 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 33179
Updated by Sage Weil about 4 years ago
- Status changed from Fix Under Review to Resolved
Actions