← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1457757] Re: Glance- Failed validating deactivated in schema

 

*** This bug is a duplicate of bug 1505218 ***
    https://bugs.launchpad.net/bugs/1505218

Already fixed in master against commit
135a946a2d1a74dda67fcc35ab31c9d83d4d0c40

by Mike committed on 12 Oct


** This bug has been marked a duplicate of bug 1505218
   Image schema doesn't contain 'deactivated' status

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

Title:
  Glance- Failed validating deactivated in schema

Status in Glance:
  New

Bug description:
  Hi
  I am working on a new test for glance image deactivated, on kilo release .
  During the tests , while running self.admin_client.image_list() got validation error , 

  In tempest they query glance for get_scheme , so i guess the new state of image "deactivated" should be added to image status.
  How can we update the schem ? Please help


  
  Error
  _StringException: Empty attachments:
    pythonlogging:''

  Traceback (most recent call last):
    File "/home/bkopilov/Automation/tempest/tempest/api/image/admin/v2/test_images.py", line 51, in test_deactivate_image
      images = self.admin_client.image_list()
    File "/home/bkopilov/Automation/tempest/tempest/services/image/v2/json/image_client.py", line 126, in image_list
      self._validate_schema(body, type='images')
    File "/home/bkopilov/Automation/tempest/tempest/services/image/v2/json/image_client.py", line 59, in _validate_schema
      jsonschema.validate(body, schema)
    File "/home/bkopilov/.local/lib/python2.7/site-packages/jsonschema/validators.py", line 432, in validate
      cls(schema, *args, **kwargs).validate(instance)
    File "/home/bkopilov/.local/lib/python2.7/site-packages/jsonschema/validators.py", line 117, in validate
      raise error
  ValidationError: 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'images'][u'items'][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'images'][0][u'status']:
      u'deactivated'


  Process finished with exit code 0

  Thans, 
  Benny

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


References