Project

General

Profile

Actions

Bug #48155

closed

mgr/dashboard: fix API test: test_full_health

Added by Alfonso Martínez over 5 years ago. Updated 8 months ago.

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

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v18.0.0-233-ge4a967fec8
Released In:
v18.2.0~1245
Upkeep Timestamp:
2025-07-14T19:24:49+00:00

Description

It seems that due to this change:
https://github.com/ceph/ceph/pull/37915/files?file-filters%5B%5D=.cc&file-filters%5B%5D=.h&file-filters%5B%5D=.t#diff-bfd87f36386e8f1a3e7ca8f6f2b1a212e52d9cf188c0fa73193dd5eb751a54caR2682
Now API test is failing:

2020-11-09 15:53:32,068.068 INFO:__main__:======================================================================
2020-11-09 15:53:32,068.068 INFO:__main__:FAIL: test_full_health (tasks.mgr.dashboard.test_health.HealthTest)
2020-11-09 15:53:32,069.069 INFO:__main__:----------------------------------------------------------------------
2020-11-09 15:53:32,069.069 INFO:__main__:Traceback (most recent call last):
2020-11-09 15:53:32,069.069 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 454, in assertSchema
2020-11-09 15:53:32,069.069 INFO:__main__:    return _validate_json(data, schema)
2020-11-09 15:53:32,069.069 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 668, in _validate_json
2020-11-09 15:53:32,069.069 INFO:__main__:    for key, sub_schema in schema.sub_elems.items()
2020-11-09 15:53:32,069.069 INFO:__main__:tasks.mgr.dashboard.helper._ValError: In `input['mon_status']`: unknown keys: {'stretch_mode'}
2020-11-09 15:53:32,070.070 INFO:__main__:
2020-11-09 15:53:32,070.070 INFO:__main__:During handling of the above exception, another exception occurred:
2020-11-09 15:53:32,070.070 INFO:__main__:
2020-11-09 15:53:32,070.070 INFO:__main__:Traceback (most recent call last):
2020-11-09 15:53:32,070.070 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/test_health.py", line 272, in test_full_health
2020-11-09 15:53:32,070.070 INFO:__main__:    self.assertSchema(data, schema)
2020-11-09 15:53:32,070.070 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 456, in assertSchema
2020-11-09 15:53:32,070.070 INFO:__main__:    self.assertEqual(data, str(e))
2020-11-09 15:53:32,070.070 INFO:__main__:AssertionError: {'health': {'status': 'HEALTH_OK', 'check[310536 chars]: 0}} != "In `input['mon_status']`: unknown keys: {'stretch_mode'}" 

Actions #1

Updated by Alfonso Martínez over 5 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 48155
Actions #3

Updated by Kefu Chai over 5 years ago

  • Status changed from Fix Under Review to Resolved
Actions #4

Updated by Ernesto Puerta almost 5 years ago

  • Tracker changed from Enhancement to Bug
  • Project changed from mgr to Dashboard
  • Category changed from 146 to 190
  • Regression set to No
  • Severity set to 3 - minor
Actions #5

Updated by Upkeep Bot 8 months ago

  • Merge Commit set to e4a967fec8fbef301ede9d6499aca5ac1c885d57
  • Fixed In set to v18.0.0-233-ge4a967fec8
  • Released In set to v18.2.0~1245
  • Upkeep Timestamp set to 2025-07-14T19:24:49+00:00
Actions

Also available in: Atom PDF