'schedule' should be a required parameter in a session

Bug #1679998 reported by jiaopengju
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Backup/Restore and DR (Freezer)
Fix Released
High
jiaopengju

Bug Description

Currently, when create a new session as below:
{
  "session_id": "123321123",
  "session_tag": 21,
  "description": "test_session",
  "hold_off": 10,
  "time_start": 1491363102,
  "time_end": 1492363102
}

The result is successful.

But when we want to add a new job to the session, it will be failed with internal error.

So, I think we should add schedule validation in session creating.

Tags: freezer-api
jiaopengju (pj-jiao)
Changed in freezer:
assignee: nobody → jiaopengju (pj-jiao)
status: New → In Progress
Saad Zaher (szaher)
Changed in freezer:
importance: Undecided → High
milestone: none → pike-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to freezer-api (master)

Reviewed: https://review.openstack.org/453547
Committed: https://git.openstack.org/cgit/openstack/freezer-api/commit/?id=509615a5e6804d960756dc893e10eff05bf7b964
Submitter: Jenkins
Branch: master

commit 509615a5e6804d960756dc893e10eff05bf7b964
Author: Pengju Jiao <email address hidden>
Date: Wed Apr 5 17:38:00 2017 +0800

    Add 'schedule' to session schema

    Currently we can create a new session with json
    file that has no 'schedule' option successfully,
    but when we add a new job to the session, it will
    be failed with internal error. This patch add
    'schedule' validation in session creating.

    Change-Id: Ib092700d8d08d79a4708947eaad86ec48c24b4a9
    Closes-Bug: #1679998

Changed in freezer:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/freezer-api 5.0.0.0b2

This issue was fixed in the openstack/freezer-api 5.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.