Add suspend and resume interface for scheduled operations

Bug #1606467 reported by zengchen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Karbor
Fix Released
Undecided
zengchen

Bug Description

There are some use cases that user want to suspend the scheduled operation (not schedule it from now), and then some time later he will resume it again (schedule it again). So in order to support this cases, we can add 'update' api to scheduled operation..

Based on the designs of Operation Engine, we can implement them by following steps separately.
add a new filed named 'enable' to db table 'scheduled_operations'
1. suspend
   unregister the scheduled operation which is registered to some trigger;
   set the 'enable' to false

2. resume
   register the scheduled operation to the trigger
   set the 'enable' to True

When the Operation Engine service restarts, the operations whose 'enable' is true can be resumed.

zengchen (chenzeng2)
Changed in smaug:
assignee: nobody → zengchen (chenzeng2)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to smaug (master)

Fix proposed to branch: master
Review: https://review.openstack.org/349869

Changed in smaug:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/349890

zengchen (chenzeng2)
summary: - Add pause and resume interface for scheduled operations
+ Add suspend and resume interface for scheduled operations
zengchen (chenzeng2)
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to karbor (master)

Reviewed: https://review.openstack.org/349890
Committed: https://git.openstack.org/cgit/openstack/karbor/commit/?id=29fee84c5266d7dd3928c3247eb034beb8fbae26
Submitter: Jenkins
Branch: master

commit 29fee84c5266d7dd3928c3247eb034beb8fbae26
Author: zengchen <email address hidden>
Date: Tue Aug 2 17:08:23 2016 +0800

    Add suspend/resume operation interface in Operation Engine

    suspend interface will pause the operation and it will not be triggered;
    resume interface will resume the operation to be triggered.

    Change-Id: I2d3fb84d53d5bad783bc4b1236091b7fca6727d8
    Closes-Bug: #1606467

Changed in karbor:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on karbor (master)

Change abandoned by zengchen (<email address hidden>) on branch: master
Review: https://review.openstack.org/349869

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.