← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1488360] Re: CONF.task.task_time_to_live doesn't work

 

** Changed in: glance
       Status: Fix Committed => Fix Released

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

Title:
  CONF.task.task_time_to_live doesn't work

Status in Glance:
  Fix Released

Bug description:
  Reproduce:

  1.set task_time_to_live to 1 in glance-api.conf:
      task_time_to_live = 1

  2. restart glance-api

  3. create a import task
  {
      "type":"import",
      "input":{
          "import_from":"http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img";,
          "import_from_format":"",
          "image_properties":{
              "disk_format":"qcow2",
              "container_format":"bare",
              "name":"test-task"
          }
      }
  }

  4. wait for task success

  5. show the task:
       glance task-show  xxxx

  Expect :  updated_at and expires_at should have the difference of 1 hours.
  Actual  :  they have the difference of  48 hours, which is the default value of task_time_to_live.

  The reason is that taskflow created a task object , different from the
  one created by the glance api. And the task_time_to_live was set to
  default 48 when taskflow get it.

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


References