diff --git a/senlin/common/consts.py b/senlin/common/consts.py index 650927cf9..caa0cc18f 100644 --- a/senlin/common/consts.py +++ b/senlin/common/consts.py @@ -94,6 +94,14 @@ CLUSTER_STATUSES = ( 'CHECKING', 'RECOVERING', 'CRITICAL', 'ERROR', 'WARNING', ) +NODE_STATUSES = ( + NS_INIT, NS_ACTIVE, NS_ERROR, NS_WARNING, NS_CREATING, NS_UPDATING, + NS_DELETING, NS_RECOVERING +) = ( + 'INIT', 'ACTIVE', 'ERROR', 'WARNING', 'CREATING', 'UPDATING', + 'DELETING', 'RECOVERING' +) + CLUSTER_SORT_KEYS = [ CLUSTER_NAME, CLUSTER_STATUS, CLUSTER_INIT_AT, CLUSTER_CREATED_AT, CLUSTER_UPDATED_AT, diff --git a/senlin/engine/node.py b/senlin/engine/node.py index de569967f..9984ba0a1 100644 --- a/senlin/engine/node.py +++ b/senlin/engine/node.py @@ -32,7 +32,7 @@ class Node(object): executed. """ - statuses = ( + STATUSES = ( INIT, ACTIVE, ERROR, WARNING, CREATING, UPDATING, DELETING, RECOVERING ) = (