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

nautilus: mgr/rbd_support: support scheduling long-running background operations #29725

Merged
merged 14 commits into from Aug 20, 2019

Conversation

dillaman
Copy link

@dillaman dillaman commented Aug 18, 2019

Jason Dillaman and others added 14 commits August 18, 2019 16:46
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 026df75)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 361e51f)
This callback can be used to track progress and also to attempt to cancel
the operation while it's in-progress by returning a negative error code
from the callback.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 6dc8249)
This allows the error to be directly caught instead of attempting
to parse the OSError.errno

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 2e85381)
Fixes: http://tracker.ceph.com/issues/40621
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit b7a826d)
The failed events can also include a failure message to indicate
the reason for the failure.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit d78ddaa)

Conflicts:
	src/pybind/mgr/progress/module.py: tweaked missing backport for task start/stop times
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit b99ae27)
This dict will include an origin key fixed to 'rbd_support' as well
as pool and image references.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit e87aff5)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 63a8f6c)
The 'ceph' CLI will duplicate commands within teuthology to test
the MONs idempotency. This shouldn't be required for the MGR module,
but we can keep a fixed set of completed tests to handle this
possible command replay.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 9bdc376)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7ccf0b3)
.. should be invoked as self.unregister_osd_perf_queries()
rather than self.module.unregister_osd_perf_queries().

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 37a9b53)
This helps to to avoid the case where new tasks were not being scheduled
when an image name was re-used after having a task created under the
same name.

Fixes: https://tracker.ceph.com/issues/41032
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7adb17f)
The 'rbd_support' mgr module provides many background functions that
are required by the 'rbd' CLI performance queries, as well as future
background long-running maintenance tasks.

Fixes: http://tracker.ceph.com/issues/40790
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7231aab)

Conflicts:
	src/mon/MgrMonitor.cc: trivial resolution
@dillaman dillaman added this to the nautilus milestone Aug 18, 2019
Copy link
Contributor

@trociny trociny left a comment

Choose a reason for hiding this comment

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

LGTM

@dillaman
Copy link
Author

retest this please

@yuriw
Copy link
Contributor

yuriw commented Aug 19, 2019

@yuriw yuriw merged commit 8e3bf64 into ceph:nautilus Aug 20, 2019
@dillaman dillaman deleted the wip-41078-nautilus branch August 20, 2019 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants