<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
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;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.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]-->
</head>
<body lang="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D">I think trusted_filter is not in the scheduler_default_filters, so you have to make sure it’s used by the filter scheduler.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D">--jyh<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D"><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 lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> openstack-bounces+yunhong.jiang=intel.com@lists.launchpad.net
 [mailto:openstack-bounces+yunhong.jiang=intel.com@lists.launchpad.net] <b>On Behalf Of
</b>Dale, StewartX T<br>
<b>Sent:</b> Thursday, November 22, 2012 7:28 AM<br>
<b>To:</b> openstack@lists.launchpad.net<br>
<b>Subject:</b> [Openstack] Getting Trusted Compute Pools working in Open Stack Folsom<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> I am trying to get trusted compute pools working in my installation of open stack Folsom but so far am unable to get it to work.  Currently when I spawn a new instance I don't see any interaction with the attestation
 server and the instance spawns just fine on a untrusted host.  I have followed all the documentation I could find on TCP (<a href="http://wiki.openstack.org/TrustedComputingPools" target="_blank">http://wiki.openstack.org/TrustedComputingPools</a> ,
<a href="https://github.com/openstack/nova/blob/stable/folsom/nova/scheduler/filters/trusted_filter.py" target="_blank">
https://github.com/openstack/nova/blob/stable/folsom/nova/scheduler/filters/trusted_filter.py</a> ) but am still having no luck so I am hoping I missed something while setting it up.  Hopefully someone can point out what I am doing wrong.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Steps to Setup TCP:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">1.  Set the following value in nova.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">      scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> 2. Add "trusted_computing" section to nova.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">      [trusted_computing]<br>
      server=10.x.x.x<br>
      port=8181<br>
      server_ca_file=/etc/nova/ssl.10.1.71.206.crt<br>
      api_url=/AttestationService/resources/PollHosts<br>
      auth_blob=i-am-openstack     <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3.  Add the "trusted" requirement to an existing flavor by running<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">     nova-manage instance_type set_key m1.tiny trust:trusted_host trusted<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">4.  Restart nova-compute and nova-scheduler service<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">At this point I test it by going to openstack page -> projects -> instances and launching a new instance of m1.tiny.   At this point I should see a connection attempt on the attestion server (which I don't) and then the
 instance fail to launch (which it doesn't) since the host is untrusted.  My version of open stack is Folsom and nova is 2012.2.  <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Hopefully someone can point out my mistake or what I am missing.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#888888"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#888888">-Stewart<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>