On Tue, Sep 23, 2014 at 12:00:18PM +0200, 'Klaus Aehlig' via ganeti-devel wrote:
Given that we will support internal retries after failed opportunistic
locking, also extend the callback interface accordingly.

Signed-off-by: Klaus Aehlig <[email protected]>
---
lib/mcpu.py | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/lib/mcpu.py b/lib/mcpu.py
index f7595e3..ee87c2c 100644
--- a/lib/mcpu.py
+++ b/lib/mcpu.py
@@ -163,6 +163,13 @@ class OpExecCbBase(object): # pylint: disable=W0232

    """

+  def NotifyRetry(self):
+    """Called when we are about to reset an LU to retry again.
+
+    This function is called after PrepareRetry successfully completed.
+
+    """
+
  def Feedback(self, *args):
    """Sends feedback from the LU code to the end-user.

--
2.1.0.rc2.206.gedb03e5


LGTM

Reply via email to