From 69516fad5f651a085a047a337a05c58b39023c1b Mon Sep 17 00:00:00 2001 From: Mike Fedosin Date: Mon, 12 Oct 2015 15:34:54 +0300 Subject: [PATCH] Add 'deactivated' status to image schema. New 'deactivated' status was introduced in Kilo release, but it doesn't listed in available image statuses in the schema. It leads to issues on the client side, when it can't validate the image with this status against the schema and returns the error. Change-Id: I5ec264614ae7ecf54b846ad0600442a18c61d24c Closes-bug: #1505218 Related-bug: #1505134 --- glance/api/v2/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glance/api/v2/images.py b/glance/api/v2/images.py index 951f4d0add..d7f3792bdc 100644 --- a/glance/api/v2/images.py +++ b/glance/api/v2/images.py @@ -824,7 +824,7 @@ def get_base_properties(): 'type': 'string', 'description': _('Status of the image (READ-ONLY)'), 'enum': ['queued', 'saving', 'active', 'killed', - 'deleted', 'pending_delete'], + 'deleted', 'pending_delete', 'deactivated'], }, 'visibility': { 'type': 'string',