← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1505134] Re: error message not clear when image-delete is called on deactivated image

 

I think we can backport it to Kilo and don;t see any reason why not.

THoughts?

** Also affects: glance/kilo
   Importance: Undecided
       Status: New

** 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/1505134

Title:
  error message not clear when image-delete is called on deactivated
  image

Status in Glance:
  Triaged
Status in Glance kilo series:
  Triaged

Bug description:
  Glance should allow to delete de-activated images

  Steps to reproduce:
  1. Create image
  2. Deactivate image
  3. Call image-delete on deactivated image

  Actual message:
  glance image-delete 5f0f914b-9f04-42c4-9769-07dc09e09056
  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'

  Expected output:
  Deactivated image should be deleted successfully.

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


References