← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1758943] [NEW] Image Import greates taskflow for impossible import scenarios

 

Public bug reported:

When the image_import call is made the taskflow is created and
responsible handling the rest of the request. It does not do any
prechecks if the import conditions are met (like verifying that the
image status transition would be possible. This will create lots of
tasks that will end up to the database with no apparent reason.

We should make at least basic status checks (like if "glance-direct"
method was called agains non "uploading" status or "web-download" method
used against non "queued" image) before creating the taskflow.

** Affects: glance
     Importance: High
         Status: New

** Affects: glance/queens
     Importance: High
         Status: New

** Affects: glance/rocky
     Importance: High
         Status: New

** Changed in: glance
   Importance: Undecided => High

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

** Also affects: glance/rocky
   Importance: High
       Status: New

** Changed in: glance/queens
   Importance: Undecided => High

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

Title:
  Image Import greates taskflow for impossible import scenarios

Status in Glance:
  New
Status in Glance queens series:
  New
Status in Glance rocky series:
  New

Bug description:
  When the image_import call is made the taskflow is created and
  responsible handling the rest of the request. It does not do any
  prechecks if the import conditions are met (like verifying that the
  image status transition would be possible. This will create lots of
  tasks that will end up to the database with no apparent reason.

  We should make at least basic status checks (like if "glance-direct"
  method was called agains non "uploading" status or "web-download"
  method used against non "queued" image) before creating the taskflow.

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


Follow ups