Merge "Fix timeout in EC2 CloudController.create_image()"
This commit is contained in:
@@ -1601,7 +1601,7 @@ class CloudController(object):
|
|||||||
# NOTE(yamahata): timeout and error. 1 hour for now for safety.
|
# NOTE(yamahata): timeout and error. 1 hour for now for safety.
|
||||||
# Is it too short/long?
|
# Is it too short/long?
|
||||||
# Or is there any better way?
|
# Or is there any better way?
|
||||||
timeout = 1 * 60 * 60 * 60
|
timeout = 1 * 60 * 60
|
||||||
if time.time() > start_time + timeout:
|
if time.time() > start_time + timeout:
|
||||||
raise exception.EC2APIError(
|
raise exception.EC2APIError(
|
||||||
_('Couldn\'t stop instance with in %d sec') % timeout)
|
_('Couldn\'t stop instance with in %d sec') % timeout)
|
||||||
|
Reference in New Issue
Block a user