Description
Shutting down / Restarting Cloudstack is a necessary step in upgrades, system maintenance, etc. As of now, there is no way to safely shutdown or restart CloudStack. It is directly terminated via systemd. Since this is the case, any asyncronous job or background task is abrubptly terminated and can fail. As of now, CloudStack maintains a list of asynchronous jobs wihtin it's database along with their status.
This idea aims to provide a way to safely shutdown CloudStack. It involves two parts :
- Prevent new asynchronous jobs from being added to CloudStack when a safe shutdown is triggered
- Check the status of the async jobs and Shut down CloudStack when all the jobs have been completed
Provide the ability to safely shutdown CloudStack
Add API (and/or UI) support to :
- Trigger a safe shutdown
- (Optional) Support restarts
- (Optional) Support a forced shutdown when CloudStack will quit even if there are async jobs running
Duration
- Some Experience : 175 hours
- Newbie : 350 hours
Potential Mentors
- David Jumani
References