Skip to content

mgr/snap_schedule: fix message format error#55193

Closed
mchangir wants to merge 2 commits intoceph:mainfrom
mchangir:mgr-snap_schedule-fix-typo-in-error-message
Closed

mgr/snap_schedule: fix message format error#55193
mchangir wants to merge 2 commits intoceph:mainfrom
mchangir:mgr-snap_schedule-fix-typo-in-error-message

Conversation

@mchangir
Copy link
Contributor

@mchangir mchangir commented Jan 16, 2024

  • correction to the error message
  • added a new test case to test the rejection of duplicate retention

Fixes: https://tracker.ceph.com/issues/64042
Signed-off-by: Milind Changire mchangir@redhat.com

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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
  • jenkins test windows
  • jenkins test rook e2e

@mchangir mchangir force-pushed the mgr-snap_schedule-fix-typo-in-error-message branch from c2bd7fa to f8a6862 Compare January 16, 2024 12:54
@mchangir mchangir requested a review from a team January 16, 2024 12:55
@mchangir mchangir self-assigned this Jan 16, 2024
@mchangir
Copy link
Contributor Author

jenkins test api

Fixes: https://tracker.ceph.com/issues/64042
Signed-off-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Milind Changire <mchangir@redhat.com>
@mchangir mchangir force-pushed the mgr-snap_schedule-fix-typo-in-error-message branch from f8a6862 to e7a63bd Compare March 13, 2024 04:55
@github-actions github-actions bot added cephfs Ceph File System tests labels Mar 13, 2024
retention_count='50')

# Adding a duplicate retention spec should fail
with self.assertRaises(CommandFailedError):
Copy link
Contributor

@dparmar18 dparmar18 Mar 13, 2024

Choose a reason for hiding this comment

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

Copy link
Contributor

@neesingh-rh neesingh-rh Mar 13, 2024

Choose a reason for hiding this comment

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

Agree! We can add someting like: self.assertEqual(exception status returned, code) to do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree! We can add someting like: self.assertEqual(exception status returned, code) to do that.

Well, the exception is thrown from the snap-schedule manager module code which eventually causes the command to fail. The teuthology code can just detect that the command has failed with non-zero status ... but can't catch the exception ?

Am I missing something ? or do you want to test the process exit code with errno.EEXIST?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds like what @mchangir is telling here makes sense. @dparmar18 @neesingh-rh What's pending?

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions bot added stale and removed stale labels May 12, 2024
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions bot added the stale label Jul 12, 2024
@github-actions
Copy link

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants