And the link to python library : <a href="http://packages.python.org/APScheduler/index.html">http://packages.python.org/APScheduler/index.html</a><div><br></div><div>Édouard.<br><br><div class="gmail_quote">On Wed, Nov 7, 2012 at 9:40 AM, Édouard Thuleau <span dir="ltr"><<a href="mailto:thuleau@gmail.com" target="_blank">thuleau@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alex,<div><br></div><div>Yes I think your thoughts seem coincide with my needed.</div><div>My idea was to implement a simple solution to automate the backup images.</div>
<div>But your solution is more generic and complete.</div>
<div><br></div><div>Just few questions/thoughts:</div><div>- Why did you distinguish 2 bluebrints ? The schedule task mechanism could be add to all of Compute API actions (boot, delete, pause, ...). And the 'snapshot' action is one of them.</div>
<div>- If schedule time isn't defines on an API request, the schedule time is set to 'NOW'</div><div>- I saw a python library which can help to implement 'cronlike' functions</div><div><br></div><div>
Regards,</div>
<div>Édouard.</div><div class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote">On Wed, Oct 31, 2012 at 10:01 PM, Alex Meade <span dir="ltr"><<a href="mailto:alex.meade@rackspace.com" target="_blank">alex.meade@rackspace.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="arial"><p style="margin:0;padding:0">Hey Édouard,</p>
<p style="margin:0;padding:0"> </p>
<p style="margin:0;padding:0">My team has put together some ideas on scheduled backups as well.</p>
<p style="margin:0;padding:0"> </p>
<p style="margin:0;padding:0">A generic cron service, here:</p>
<p style="margin:0;padding:0"><a href="http://wiki.openstack.org/scheduled-task-service" target="_blank">http://wiki.openstack.org/scheduled-task-service</a></p>
<p style="margin:0;padding:0"> </p>
<p style="margin:0;padding:0">and a more robust snapshot scheduling service, here:</p>
<p style="margin:0;padding:0"><a href="http://wiki.openstack.org/scheduled-images-service" target="_blank">http://wiki.openstack.org/scheduled-images-service</a></p>
<p style="margin:0;padding:0"> </p>
<p style="margin:0;padding:0">We want to know what everyone else needs out of this feature, these are just some solutions we have thought about.</p>
<p style="margin:0;padding:0"> </p>
<p style="margin:0;padding:0">We need something more robust than simple periodic tasks since our cloud will be under heavy load. One example is in both proposals we have the snapshot time being determined by the system and not the user, this is important in a heavy load system since we do not want to handle a heavy load in bursts. However, allowing a user to specify time could always be an option of the deployer.</p>
<span><font color="#888888">
<p style="margin:0;padding:0"> </p>
<p style="margin:0;padding:0">-Alex</p></font></span><div><div>
<p style="margin:0;padding:0"> </p>
<p style="margin:0;padding:0"> </p>
<p style="margin:0;padding:0">-----Original Message-----<br>From: "Édouard Thuleau" <<a href="mailto:edouard.thuleau@gmail.com" target="_blank">edouard.thuleau@gmail.com</a>><br>Sent: Wednesday, October 31, 2012 7:00am<br>
To: <a href="mailto:josh@jk0.org" target="_blank">josh@jk0.org</a><br>Cc: "OpenStack Development Mailing List" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
Subject: [openstack-dev] [nova] Automate backup images<br><br></p>
<div><span style="color:#222222;font-size:13px;font-family:arial,sans-serif">Hi Josh,</span>
<div style="color:#222222;font-size:13px;font-family:arial,sans-serif"></div>
<div style="color:#222222;font-size:13px;font-family:arial,sans-serif">I aim to automate backup images of instance.</div>
<div style="color:#222222;font-size:13px;font-family:arial,sans-serif"></div>
<div style="color:#222222;font-size:13px;font-family:arial,sans-serif">I saw that you implemented a backup solution to the OpenStack Compute API which uses the snapshot mechanism of OpenStack Nova. It adds backup command with parameters 'backup_type' and 'rotation'. This command permits to define two type of backup (daily and weekly) and the number of backup to keep around.</div>
<div style="color:#222222;font-size:13px;font-family:arial,sans-serif">The problem is this mechanism isn't periodically executed by OpenStack. The user must execute himself the backup command to update the backuped images.</div>
<div style="color:#222222;font-size:13px;font-family:arial,sans-serif"></div>
<div style="color:#222222;font-size:13px;font-family:arial,sans-serif">I created, few weeks ago, a blueprint to define a simple way to automate this mechanism: <a style="color:#1155cc" href="https://blueprints.launchpad.net/nova/+spec/backup-schedule" target="_blank">https://blueprints.launchpad.net/nova/+spec/backup-schedule</a></div>
<div style="color:#222222;font-size:13px;font-family:arial,sans-serif">Could you send me some comments/feedback on this blueprint ?</div>
<div style="color:#222222;font-size:13px;font-family:arial,sans-serif">Regards,</div>
<div style="color:#222222;font-size:13px;font-family:arial,sans-serif">Édouard.</div>
</div></div></div></font></blockquote></div><br></div>
</div></div></blockquote></div><br></div>