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

mgr/cephadm: Show an error when invalid format #45023

Merged
merged 1 commit into from Feb 23, 2022

Conversation

rkachach
Copy link
Contributor

@rkachach rkachach commented Feb 14, 2022

Fixes: https://tracker.ceph.com/issues/54198

Signed-off-by: Redouane Kachach rkachach@redhat.com

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@rkachach rkachach requested a review from a team February 14, 2022 14:21
Fixes: https://tracker.ceph.com/issues/54198

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
@@ -115,6 +117,8 @@ def to_yaml_n(objs: list) -> list:
if many:
return yaml.dump_all(to_yaml(copy), default_flow_style=False)
return yaml.dump(to_yaml(copy), default_flow_style=False)
elif format == Format.xml or format == Format.xml_pretty:
raise OrchestratorError(f"format '{format.name}' is not implemented.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
raise OrchestratorError(f"format '{format.name}' is not implemented.")
raise OrchestratorError(f"format '{format.name}' is not implemented for 'ceph orch' commands.")

NIT, technically this format is implemented in other areas of ceph. It's ceph orch commands specifically that we mean here.

@adk3798
Copy link
Contributor

adk3798 commented Feb 23, 2022

http://pulpito.ceph.com/adking-2022-02-23_03:54:48-orch:cephadm-wip-adk-testing-2022-02-22-1756-distro-basic-smithi/

Most failures tracked by https://tracker.ceph.com/issues/54304

Also a couple pre-test failures running apt-get commands and one instance where one of the osds created in a startup task never came up. 20+ tests ran the same startup task in the same run successfully so thinking it's just a one off.

@adk3798 adk3798 merged commit 774c1a6 into ceph:master Feb 23, 2022
11 checks passed
rkachach added a commit to rkachach/ceph that referenced this pull request Mar 2, 2022
backport of: ceph#45023

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
@rkachach rkachach deleted the fix_issue_54198 branch March 10, 2022 11:03
@adk3798 adk3798 mentioned this pull request Apr 27, 2022
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants