summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-03-07 21:54:25 +0100
committerSoren Hansen <soren@linux2go.dk>2011-03-07 21:54:25 +0100
commit7b7abe7e7a25c0cd07c64c34f69ce050c669cfc3 (patch)
tree937845d6de2bfa83f4be774a879b3e0fe09f5d4c /nova/utils.py
parent8c3bc15c96c6a6f1c99d829337921f2645608410 (diff)
downloadnova-7b7abe7e7a25c0cd07c64c34f69ce050c669cfc3.tar.gz
nova-7b7abe7e7a25c0cd07c64c34f69ce050c669cfc3.tar.xz
nova-7b7abe7e7a25c0cd07c64c34f69ce050c669cfc3.zip
Log failed command execution if there are more retry attempts left.
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/utils.py b/nova/utils.py
index 829adfb9e..80e5b6bbe 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -166,6 +166,7 @@ def execute(cmd, process_input=None, addl_env=None, check_exit_code=True,
if not attempts:
raise
else:
+ LOG.debug(_("%r failed. Retrying."), cmd)
greenthread.sleep(random.randint(20, 200) / 100.0)