From 19a087986873d3f8a68a403187e0fb95850a9de6 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Thu, 13 Apr 2017 21:14:39 -0400 Subject: [PATCH] Allow start/restart container in Error state This allows the container to be recovered by a restart Change-Id: I29ead99abe9cf05573f1142715cd7c36e7ca4f86 --- zun/common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zun/common/utils.py b/zun/common/utils.py index 0d05fea5d..2f4daa1cd 100644 --- a/zun/common/utils.py +++ b/zun/common/utils.py @@ -39,9 +39,9 @@ VALID_STATES = { 'delete': [consts.CREATED, consts.ERROR, consts.STOPPED], 'delete_force': [consts.CREATED, consts.CREATING, consts.ERROR, consts.RUNNING, consts.STOPPED, consts.UNKNOWN], - 'start': [consts.CREATED, consts.STOPPED], + 'start': [consts.CREATED, consts.STOPPED, consts.ERROR], 'stop': [consts.RUNNING], - 'reboot': [consts.CREATED, consts.RUNNING, consts.STOPPED], + 'reboot': [consts.CREATED, consts.RUNNING, consts.STOPPED, consts.ERROR], 'pause': [consts.RUNNING], 'unpause': [consts.PAUSED], 'kill': [consts.RUNNING],