← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1505157] [NEW] Glance doesn't validate deactivated image correctly

 

Public bug reported:

This bug was found by Abhishek Kekane in one of review to glance docs.
With python glanceclient (v2)
1. Create an active image
2. De-activate image
3. Delete image
AR: 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'
ER: everything is good.

Looks like our schema for v2 does not have deactivated status in
validation list.

** Affects: glance
     Importance: Undecided
     Assignee: Kairat Kushaev (kkushaev)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Kairat Kushaev (kkushaev)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1505157

Title:
  Glance doesn't validate deactivated image correctly

Status in Glance:
  New

Bug description:
  This bug was found by Abhishek Kekane in one of review to glance docs.
  With python glanceclient (v2)
  1. Create an active image
  2. De-activate image
  3. Delete image
  AR: 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'
  ER: everything is good.

  Looks like our schema for v2 does not have deactivated status in
  validation list.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1505157/+subscriptions