<div dir="ltr"><div>+100<br><br></div>Dani<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 26, 2015 at 1:10 AM, Tim Bell <span dir="ltr"><<a href="mailto:Tim.Bell@cern.ch" target="_blank">Tim.Bell@cern.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">This is often mentioned as one of those items which catches every OpenStack cloud operator at some time. It’s not clear to me that
there could not be a scheduled job built into the system with a default frequency (configurable, ideally).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If we are all configuring this as a cron job, is there a reason that it could not be built into the code ?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Tim<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> Mike Smith [mailto:<a href="mailto:mismith@overstock.com" target="_blank">mismith@overstock.com</a>]
<br>
<b>Sent:</b> 24 January 2015 18:08<br>
<b>To:</b> Daniel Comnea<br>
<b>Cc:</b> OpenStack Development Mailing List (not for usage questions); <a href="mailto:openstack-operators@lists.openstack.org" target="_blank">openstack-operators@lists.openstack.org</a><br>
<b>Subject:</b> Re: [Openstack-operators] [openstack-dev][openstack-operators]flush expired tokens and moves deleted instance<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">It is still mentioned in the Juno installation docs: <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt">By default, the Identity service stores expired tokens in the database indefinitely. The<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt">accumulation of expired tokens considerably increases the database size and might degrade<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt">service performance, particularly in environments with limited resources.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt">We recommend that you use </span>
<span style="font-size:8.0pt;font-family:Courier">cron </span><span style="font-size:8.0pt">to configure a periodic task that purges expired tokens<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt">hourly:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:Courier"># (crontab -l -u keystone 2>&1 | grep -q token_flush) || \<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:Courier">echo '@hourly /usr/bin/keystone-manage token_flush >/var/log/keystone/<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:Courier">keystone-tokenflush.log 2>&1' \<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:Courier">>> /var/spool/cron/keystone<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:Courier"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:Courier"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Mike Smith<br>
Principal Engineer, Website Systems<br>
<a href="http://Overstock.com" target="_blank">Overstock.com</a><br>
<br>
<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Jan 24, 2015, at 10:03 AM, Daniel Comnea <<a href="mailto:comnea.dani@gmail.com" target="_blank">comnea.dani@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi all,<br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I just bumped into Sebastien's blog where he suggested a cron job should run in production to tidy up expired tokens - see blog[1]<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Could you please remind me if this is still required in IceHouse/ Juno? (i kind of remember i've seen some work being done in this direction but i can't find the emails)<br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<br>
Dani<br>
<br>
[1] <a href="http://www.sebastien-han.fr/blog/2014/08/18/a-must-have-cron-job-on-your-openstack-cloud/" target="_blank">
http://www.sebastien-han.fr/blog/2014/08/18/a-must-have-cron-job-on-your-openstack-cloud/</a>
<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><u></u><u></u></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div class="MsoNormal" style="text-align:center" align="center">
<hr size="3" align="center" width="100%">
</div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray"><br>
CONFIDENTIALITY NOTICE: This message is intended only for the use and review of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this message is not the intended recipient, or
the employee or agent responsible for delivering the message solely to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in
error, please notify sender immediately by telephone or return email. Thank you.</span><u></u><u></u></p>
</div></div></div>
</div>
</div>
</blockquote></div><br></div>