<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>On 2014-02-25 02:00, Tian, Shuangtai wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<div class="WordSection1">
<p class="MsoNormal"><span>Hi, Stackers</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>   When I i<span style="color: black; background: white;">nit a Enforcer class with rules, I find the rules will rewrite by configure policy rules,  because the policy</span><span style="color: black;"> <span style="background: white;">file is modified , </span></span></span></p>
<p class="MsoNormal"><span style="color: black; background: white;">the load rules always try to load the rules from the cache</span><span style="color: black;"> <span style="background: white;">or </span></span><span style="font-family: 'Arial','sans-serif'; color: #333333; background: white;">configure </span><span style="color: black; background: white;">file when checks the policy in the enforce function, and </span></p>
<p class="MsoNormal"><span style="color: black; background: white;">force to rewrite the rules always using the </span><span style="font-family: 'Arial','sans-serif'; color: #333333; background: white;">configure </span><span style="color: black; background: white;">policy.</span></p>
<p class="MsoNormal" style="text-indent: 15.75pt;"><span>I think this problem also </span><span style="font-family: 'Arial','sans-serif'; color: #333333; background: white;">exists </span><span>when we use the set_rules to set rules before we use the enforce to load rules in the first time.</span></p>
<p class="MsoNormal"><span>Anyone also meets this problem, or if the way I used is wrong? I proposed a patch to this problem : <a href="https://review.openstack.org/#/c/72848/">https://review.openstack.org/#/c/72848/</a></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal" style="text-align: left; line-height: 12.0pt;" align="left"><span style="font-size: 11.0pt; color: black;">Best regards,</span></p>
<p class="MsoNormal" style="text-align: left; line-height: 12.0pt;" align="left"><span style="font-size: 11.0pt; color: black;">Tian, Shuangtai </span></p>
</div>
</blockquote>
<div class="WordSection1">
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span><!-- o ignored --> I don't think you're doing anything wrong.  You can see I worked around the same issue in the test cases when I was working on the Oslo parallel testing: https://review.openstack.org/#/c/70483/1/tests/unit/test_policy.py<br /></span></p>
<p class="MsoNormal"><span>Your proposed change looks reasonable to me.  I'd probably like to see it used to remove some of the less pleasant parts of my change, but I'll leave detailed feedback on the review.<br /></span></p>
<p class="MsoNormal"><span>Thanks!<br /></span></p>
<p class="MsoNormal"><span>-Ben<br /></span></p>
</div>
<div> </div>
</body></html>