Skip to content

mgr/snap_schedule: add support for monthly snapshots#53070

Merged
vshankar merged 5 commits intoceph:mainfrom
mchangir:mgr-snap_schedule-add-support-for-monthly-snapshots
Sep 14, 2023
Merged

mgr/snap_schedule: add support for monthly snapshots#53070
vshankar merged 5 commits intoceph:mainfrom
mchangir:mgr-snap_schedule-add-support-for-monthly-snapshots

Conversation

@mchangir
Copy link
Contributor

@mchangir mchangir commented Aug 21, 2023

  • swap 'M' and 'm' specifiers to mean 'm' for minutes and 'M' for months
  • add period mutlipliers for months and years
  • add test case to test: minute, hourly, daily, weekly, monthly, yearly and bad period specifiers

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

Contribution Guidelines

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

@github-actions github-actions bot added cephfs Ceph File System pybind tests labels Aug 21, 2023
@mchangir mchangir force-pushed the mgr-snap_schedule-add-support-for-monthly-snapshots branch from 589d2b1 to 788cc80 Compare August 22, 2023 03:50
@mchangir
Copy link
Contributor Author

Teuthology jobs: 1 failed out of 6 due to POOL_APP_NOT_ENABLED

@mchangir
Copy link
Contributor Author

jenkins test make check

@vshankar vshankar requested a review from a team August 22, 2023 09:30
@dparmar18
Copy link
Contributor

Since m and M are different now, we should document this somewhere like a note stating the difference.

@mchangir mchangir requested a review from a team as a code owner August 22, 2023 11:09
@mchangir mchangir changed the title mgr/snap schedule: add support for monthly snapshots mgr/snap_schedule: add support for monthly snapshots Aug 22, 2023
@mchangir mchangir force-pushed the mgr-snap_schedule-add-support-for-monthly-snapshots branch 2 times, most recently from a78537d to c92bcab Compare August 23, 2023 05:58
@mchangir
Copy link
Contributor Author

jenkins test make check arm64

@dparmar18
Copy link
Contributor

dparmar18 commented Aug 23, 2023

changes lgtm, just a minor nit to add tracker to rest seven commits would be good. Also since the second last commit(where the test cases are added) makes use of minor change made in other qa commits; i think they can be clubbed together?

@dparmar18
Copy link
Contributor

more negative tests like snap_schedule='1', snap_schedule='M', snap_schedule='-1m', snap_schedule='' can also be added

@mchangir mchangir force-pushed the mgr-snap_schedule-add-support-for-monthly-snapshots branch from c92bcab to 941c6b0 Compare August 23, 2023 12:04
@mchangir
Copy link
Contributor Author

more negative tests like snap_schedule='1', snap_schedule='M', snap_schedule='-1m', snap_schedule='' can also be added

  • added these negative tests
  • a ValueError exception will be thrown for bad values

@mchangir mchangir force-pushed the mgr-snap_schedule-add-support-for-monthly-snapshots branch from 941c6b0 to 9867fb6 Compare August 24, 2023 02:20
@mchangir
Copy link
Contributor Author

  • added tracker to all commits
  • Teuthology Jobs with 2 failed jobs out of 6 with POOL_APP_NOT_ENABLED

@vshankar
Copy link
Contributor

  • added tracker to all commits
  • Teuthology Jobs with 2 failed jobs out of 6 with POOL_APP_NOT_ENABLED

rebase+rerun with updated qa change, no need to rebuild.

@vshankar
Copy link
Contributor

@mchangir Let's squash the mgr/snap_schedule changes in one commit and the qa changes squashed into another commit. Also add a note in PendingReleaseNotes.

@mchangir mchangir force-pushed the mgr-snap_schedule-add-support-for-monthly-snapshots branch from 9867fb6 to e5ee740 Compare August 24, 2023 05:32
@dparmar18
Copy link
Contributor

last commit needs tracker link, else the changes LGTM

@mchangir
Copy link
Contributor Author

Teuthology Jobs: 1 dead and 5 pass out of 6

@mchangir
Copy link
Contributor Author

last commit needs tracker link, else the changes LGTM

PendingReleaseNotes doesn't require a tracker.

@mchangir
Copy link
Contributor Author

jenkins test make check arm64

@mchangir mchangir force-pushed the mgr-snap_schedule-add-support-for-monthly-snapshots branch from f3ad862 to a749f3b Compare August 29, 2023 14:57
@mchangir
Copy link
Contributor Author

rebase; with a small typo correction in PendingReleaseNotes for the subsystem name of an earlier PR

@vshankar
Copy link
Contributor

vshankar commented Sep 7, 2023

jenkins test make check

Problem:
As per the issue tracker, the period spec specifier 'M' is not
consistent with what is used elsewhere, like the period specifiers
displayed in the 'ceph status' command output.
The 'M' period specifier is used as a 'minute' level period specifier by
the cephfs team.
The issue reporter suggests to use 'M' as a 'month' period specifier.

Solution:
Since the 'minute' level period specifer, 'M', is used internally by
the development team, it is failrly easy to swap the 'minute' ('M')
level and 'month' ('m') level period specifers to finally mean that 'm'
implies 'minute' level period and 'M' implies 'month' level period.
Also, since this is the first time that somebody has ever reported that
neither the 'M' nor the 'm' level specifiers work in production, it is a
good idea to fix them once and for all.

Fixes: https://tracker.ceph.com/issues/62494
Signed-off-by: Milind Changire <mchangir@redhat.com>
Fixes: https://tracker.ceph.com/issues/62494
Signed-off-by: Milind Changire <mchangir@redhat.com>
@mchangir mchangir force-pushed the mgr-snap_schedule-add-support-for-monthly-snapshots branch from a749f3b to fcba9cc Compare September 12, 2023 08:32
@mchangir
Copy link
Contributor Author

updated YAML to use 'm' as minute period multiplier

Signed-off-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Milind Changire <mchangir@redhat.com>
@mchangir mchangir force-pushed the mgr-snap_schedule-add-support-for-monthly-snapshots branch from fcba9cc to 7e2546f Compare September 12, 2023 08:41
@vshankar
Copy link
Contributor

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

@vshankar vshankar merged commit 98758ee into ceph:main Sep 14, 2023
mchangir added a commit to mchangir/ceph that referenced this pull request Apr 5, 2024
Introduced-by: ceph#53070
Fixes: https://tracker.ceph.com/issues/65350
Signed-off-by: Milind Changire <mchangir@redhat.com>
mchangir added a commit to mchangir/ceph that referenced this pull request Apr 16, 2024
Introduced-by: ceph#53070
Fixes: https://tracker.ceph.com/issues/65350
Signed-off-by: Milind Changire <mchangir@redhat.com>
mchangir added a commit to mchangir/ceph that referenced this pull request Apr 17, 2024
Introduced-by: ceph#53070
Fixes: https://tracker.ceph.com/issues/65350
Signed-off-by: Milind Changire <mchangir@redhat.com>
rishabh-d-dave pushed a commit to ceph/ceph-ci that referenced this pull request Apr 30, 2024
Introduced-by: ceph/ceph#53070
Fixes: https://tracker.ceph.com/issues/65350
Signed-off-by: Milind Changire <mchangir@redhat.com>
rishabh-d-dave pushed a commit to ceph/ceph-ci that referenced this pull request May 1, 2024
Introduced-by: ceph/ceph#53070
Fixes: https://tracker.ceph.com/issues/65350
Signed-off-by: Milind Changire <mchangir@redhat.com>
mchangir added a commit to mchangir/ceph that referenced this pull request May 13, 2024
Introduced-by: ceph#53070
Fixes: https://tracker.ceph.com/issues/65350
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 7151415)
mchangir added a commit to mchangir/ceph that referenced this pull request May 13, 2024
Introduced-by: ceph#53070
Fixes: https://tracker.ceph.com/issues/65350
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 7151415)
mchangir added a commit to mchangir/ceph that referenced this pull request May 13, 2024
Introduced-by: ceph#53070
Fixes: https://tracker.ceph.com/issues/65350
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 7151415)
joscollin pushed a commit to ceph/ceph-ci that referenced this pull request Jul 12, 2024
Introduced-by: ceph/ceph#53070
Fixes: https://tracker.ceph.com/issues/65350
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 7151415)
mkogan1 pushed a commit to mkogan1/ceph that referenced this pull request Jul 18, 2024
Resolves: rhbz#2280638
Introduced-by: ceph#53070
Fixes: https://tracker.ceph.com/issues/65350
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 7151415)
(cherry picked from commit c45450f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants