Public bug reported:

Currently, it's possible to upload data to an image which is not in
queued state; and while attempting to update it status to active the 409
conflict is raised. [1, 2, 3]

We'd prevent this as it could potentially mean bandwidth usage for the
user.

[1] https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L625
[2] 
https://github.com/openstack/glance/blob/master/glance/registry/api/v1/images.py#L454
[3] 
https://github.com/openstack/glance/blob/master/glance/db/sqlalchemy/api.py#L725

** Affects: glance
     Importance: Medium
         Status: Confirmed

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

Title:
  Prevent upload data bits to a non-queued image

Status in OpenStack Image Registry and Delivery Service (Glance):
  Confirmed

Bug description:
  Currently, it's possible to upload data to an image which is not in
  queued state; and while attempting to update it status to active the
  409 conflict is raised. [1, 2, 3]

  We'd prevent this as it could potentially mean bandwidth usage for the
  user.

  [1] 
https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L625
  [2] 
https://github.com/openstack/glance/blob/master/glance/registry/api/v1/images.py#L454
  [3] 
https://github.com/openstack/glance/blob/master/glance/db/sqlalchemy/api.py#L725

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to