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

qa/tasks/mgr/dashboard/test_health: add missing field for test_full_h… #29615

Merged

Conversation

tchaikov
Copy link
Contributor

…ealth

fix regression introduced by a076260

Signed-off-by: Kefu Chai kchai@redhat.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test docs
  • jenkins render docs

@tchaikov
Copy link
Contributor Author

…ealth

fix regressions introduced by a076260 and d6ff61e

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov tchaikov force-pushed the wip-qa/tasks/mgr/dashboard/test_health branch from 30862cc to b1c0500 Compare August 13, 2019 03:30
Copy link
Contributor

@bk201 bk201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
I also tested it locally. Thanks!

@tchaikov tchaikov merged commit 3a27c3c into ceph:master Aug 13, 2019
@tchaikov tchaikov deleted the wip-qa/tasks/mgr/dashboard/test_health branch August 13, 2019 05:59
@epuertat
Copy link
Member

Instead of validating data we're not using here, shouldn't we allow additive/non-breaking changes to core data structs?

@tchaikov
Copy link
Contributor Author

@epuertat i am all for this. but i am not familiar with dashboard, could you help find a minimal set of fields we are actively using? so we can trim the unnecessary bits and then add allow_unknown=True?

@epuertat
Copy link
Member

@tchaikov the issue here is that (some/all?) Dashboard API endpoints are returning raw data right from Ceph calls. IMHO (but that's just mine) Dashboard API should make the validation within the controller (and not only in the QA test) and just return the required subset of the whole data. But allow_unknown makes sense, as long as we're not breaking anything here.

@alfonsomthd
Copy link
Contributor

@tchaikov the issue here is that (some/all?) Dashboard API endpoints are returning raw data right from Ceph calls. IMHO (but that's just mine) Dashboard API should make the validation within the controller (and not only in the QA test) and just return the required subset of the whole data. But allow_unknown makes sense, as long as we're not breaking anything here.

@ceph/dashboard I totally agree as we can find that the API tests has been fixed but the dashboard is broken,
and we (the dashboard team) have to solve this potential problem.

@tchaikov
Copy link
Contributor Author

@epuertat i see what you mean now! yeah. as the controller is the provider of the raw output of the stats returned by the python bindings offered by mgr. it's its responsibility to validate and probably normalize those output and offer a more consistent API to the view (frontend).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants