yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #39965
[Bug 1505218] Re: Image schema doesn't contain 'deactivated' status
** Also affects: glance/kilo
Importance: Undecided
Status: New
** Also affects: glance/liberty
Importance: Undecided
Status: New
** No longer affects: glance/liberty
** Tags added: liberty-rc-potential
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1505218
Title:
Image schema doesn't contain 'deactivated' status
Status in Glance:
Triaged
Status in Glance kilo series:
New
Bug description:
Currently glance image schema doesn't contain 'deactivated' in the
list of statuses, which leads to the fact that client cannot validate
it .
1. mfedosin@wdev:~$ glance image-list
+--------------------------------------+---------------------------------+
| ID | Name |
+--------------------------------------+---------------------------------+
| 5cd380ce-a570-4270-b4d1-e328e6f49cb6 | cirros-0.3.4-x86_64-uec |
| 9f430c9d-9649-4bc3-9ec9-1013e9c9da13 | cirros-0.3.4-x86_64-uec-kernel |
| e36a70f7-db13-4c3a-91a6-1308b74eebde | cirros-0.3.4-x86_64-uec-ramdisk |
+--------------------------------------+---------------------------------+
2. mfedosin@wdev:~$ curl -H "X-Auth-Token:
2c2e3bc5f0d541418a98deeabb27ac5e" -X POST
http://127.0.0.1:9292/v2/images/5cd380ce-a570-4270-b4d1-e328e6f49cb6/actions/deactivate
3. mfedosin@wdev:~$ glance image-show
5cd380ce-a570-4270-b4d1-e328e6f49cb6
Expected result:
There will be output with the image info
Actual result:
u'deactivated' is not one of [u'queued', u'saving', u'active', u'killed', u'deleted', u'pending_delete']
Failed validating u'enum' in schema[u'properties'][u'status']:
{u'description': u'Status of the image (READ-ONLY)',
u'enum': [u'queued',
u'saving',
u'active',
u'killed',
u'deleted',
u'pending_delete'],
u'type': u'string'}
On instance[u'status']:
u'deactivated'
Related to bug: https://bugs.launchpad.net/glance/+bug/1505134
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1505218/+subscriptions
References