<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 05/20/2014 09:39 PM, Bohai (ricky)
wrote:<br>
</div>
<blockquote
cite="mid:98B730463BF8F84A885ABF3A8F6149516611EE14@SZXEMA501-MBS.china.huawei.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:宋体;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Calibri","sans-serif""
lang="EN-US">Thanks for your explanation.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Calibri","sans-serif""
lang="EN-US">I think the implement in nova maybe is a
good reference.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Calibri","sans-serif""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Calibri","sans-serif""
lang="EN-US">I have filed it to a blueprint.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Calibri","sans-serif""
lang="EN-US"><a class="moz-txt-link-freetext" href="https://blueprints.launchpad.net/cinder/+spec/united-policy-in-cinder">https://blueprints.launchpad.net/cinder/+spec/united-policy-in-cinder</a></span></p>
</div>
</blockquote>
<br>
Would like to load policy from the policy store in Keystone. We
need "load policy for Endpoint" in order to make it usable, and some
way for an endpoint to know its own id.<br>
<blockquote
cite="mid:98B730463BF8F84A885ABF3A8F6149516611EE14@SZXEMA501-MBS.china.huawei.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Calibri","sans-serif""
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Calibri","sans-serif""
lang="EN-US">Ricky.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US"><o:p> </o:p></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 #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
lang="EN-US"> Christopher Yeoh
[<a class="moz-txt-link-freetext" href="mailto:cbkyeoh@gmail.com">mailto:cbkyeoh@gmail.com</a>]
<br>
<b>Sent:</b> Monday, May 19, 2014 3:44 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for
usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [Cinder] about
policy.json in unit test<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">On Mon, May 19,
2014 at 1:14 AM, Mike Perez <<a
moz-do-not-send="true"
href="mailto:thingee@gmail.com" target="_blank">thingee@gmail.com</a>>
wrote:<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
lang="EN-US">On 02:04 Tue 29 Apr , Bohai
(ricky) wrote:<br>
> Hi stackers,<br>
><br>
> I found there are two "policy.json" files in
cinder project.<br>
> One is for source
code(cinder/etc/policy.json), another is for the
unit test(cinder/cinder/tests/policy.json).<br>
><br>
> Maybe it's better to united them and make the
unit test to use the "policy.json" file in the
source code:<br>
> 1. "policy.json" in the source code is really
what we want to test but not the one in unit test.<br>
> 2. It's more convenient for the developers,
because of only need to modify one policy.json
file.<br>
> Current it's easy to miss one of them.<br>
><br>
> Any advices?<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Seems like the
right direction. Don't know why they were separate
to begin<br>
with.<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Nova has the
same issue so its probably just historical. I'm
not familiar with the cinder policy files, but for<br>
Nova the default policy settings are different for
the real policy file versus the one used for the
unittests<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">and the
unittests rely on this. So there's likely there
will need to be some cleanup required to use just
one policy file<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">and may
complicate the unittests a bit more. But overall
sounds like a good idea just to have one policy
file.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Chris<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>