Conversation
|
@jan--f The following changes would be required to run these tests: and |
|
@jan--f Note that in the diffs mentioned previously I had commented out the call to Another interesting thing that I saw when running The test schedules a snap every 2 minutes, but the first snap is scheduled in 38 odd seconds for some reason (the test expects the snap to show up in about 98 seconds (1m + 38s)). Also, this happens once in a while (I checked if there were any stale snap schedules, but there were none). And similar with multiple snap schedules per path ( The timings look a bit off to me... |
|
thanks @vshankar I'll look into these issue. I haven't yet paid to close attention to the timings, mostly cause I still need to add proper support for |
|
The mentioned issues should be fixed in #29489 |
will take a look |
|
@jan--f -- The test schedules multiple snaps schedules (2m and 3m) on a directory, but the snaps get scheduled every 2m. |
|
Is 'ceph mgr module enable snap_schedule' supported already in master branch? I tried the command, it return -ENOENT |
|
does the snap_schedule module remove old snapshots. If yes, it's better to add a test case |
It does indeed and I'll add tests for that. I'm in the final stages for the mgr module and will add more tests once this is stabilized. |
3dc0ff0 to
1e99730
Compare
| retention = set([s[1] for s in spec]) | ||
| return (schedule, retention) | ||
|
|
||
| def seconds_upto_next_schedule(time_from, timo): |
|
@jan--f please use the latest update from this for the tests... |
|
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. |
1e99730 to
4d1612a
Compare
ack |
4d1612a to
0823c15
Compare
Looking at the changes, I don't seem to recall with acuracy for reason to store it in the db.
Probably. However, I won't be able to get to looking at it (and fixing) this week. Sorry for that! I'll try to get to it next week. In case you want to give it a shot, that'll be great (since this blocks the octopus backport). |
|
@vshankar I have my proposed changes up at https://github.com/jan--f/ceph/tree/wip-snap-sched-tests Maybe we can re-use this PR to keep the discussion here? |
I'll take a look. Thx!
Sure. |
Look OK. I'll test out the changes tomorrow. |
tests run fine. I will pull your changes in this PR and post the test results. We should be able to get this merged pretty soon. |
000fccb to
8a9ee82
Compare
|
jenkins test make check |
|
@jan--f PR updated with changes from branch https://github.com/jan--f/ceph/tree/wip-snap-sched-tests |
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
8a9ee82 to
1804a4a
Compare
|
@vshankar this needs rebased. |
ack -- I'll push an update. |
batrick
left a comment
There was a problem hiding this comment.
Please also run through testing.
Otherwise LGTM.
Next commit introduces a module option to allow minute granularity snapshots. Signed-off-by: Venky Shankar <vshankar@redhat.com>
Thsi allows setting and scheduling snapshots with minute granularity. If the option is unset, adding these will fail and scheduling for them will be skipped. Signed-off-by: Jan Fajerski <jfajerski@suse.com>
For easiness in parsing for tests. Signed-off-by: Venky Shankar <vshankar@redhat.com>
... mostly as an aid for debugging. Signed-off-by: Venky Shankar <vshankar@redhat.com>
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
Signed-off-by: Venky Shankar <vshankar@redhat.com>
1804a4a to
a8c8b3a
Compare
|
jenkins test api |
|
@vshankar please run through QA for the snap schedule tests whenever you're ready. |
sure -- will post the link. |
No description provided.