<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body bgcolor="#FFFFFF" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Alvin,
<div><br>
</div>
<div>I hopethis is a configuration typo - the other-config value in XAPI is "ceph_sr" but the sr_matching_filter is set up to look for "ceph-sr".</div>
<div><br>
</div>
<div>I hope if you match the two this will resolve the issue.</div>
<div><br>
</div>
<div>Bob</div>
<div><br>
</div>
<div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF656872" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Alvin Starr [alvin@netvel.net]<br>
<b>Sent:</b> 22 November 2013 14:31<br>
<b>To:</b> Bob Ball; openstack@lists.openstack.org<br>
<b>Subject:</b> Re: [Openstack] Openstack and xen issues.<br>
</font><br>
</div>
<div></div>
<div>
<div class="moz-cite-prefix">I have put Openstack on a separate machine to try and separate and isolate the various components I need to work with in the interests of making my debugging easier.<br>
This in retrospect may not have been the best idea.<br>
<br>
I have had a very long history with xen and that may be more of an impediment because I think I know things about it that are no longer true.<br>
<br>
I am using the default devstack scripts as of a few weeks ago so it should be grabbing the latest version of Openstack or at least that is my belief.<br>
<br>
Here is my sr-param-list.<br>
<br>
uuid ( RO)                    : 7d56f548-174b-d42b-12f2-e0849588e503<br>
              name-label ( RW): Ceph Storage<br>
        name-description ( RW): <br>
                    host ( RO): localhost<br>
      allowed-operations (SRO): unplug; plug; PBD.create; PBD.destroy; VDI.clone; scan; VDI.create; VDI.destroy<br>
      current-operations (SRO): <br>
                    VDIs (SRO): <br>
                    PBDs (SRO): 40dd29a3-154a-e841-ce52-4547c817d856<br>
      virtual-allocation ( RO): 348064577384<br>
    physical-utilisation ( RO): 342363992064<br>
           physical-size ( RO): 18986006446080<br>
                    type ( RO): libvirt<br>
            content-type ( RO): <br>
                  shared ( RW): true<br>
           introduced-by ( RO): <not in database><br>
            other-config (MRW): ceph_sr: true<br>
               sm-config (MRO): <br>
                   blobs ( RO): <br>
     local-cache-enabled ( RO): false<br>
                    tags (SRW): <br>
<br>
<br>
I started tracing the xenapi transactions over the network and could see the pool.get_all and pool.get_default when the sr_filter was not set but once I set it  nova would crash complaining about no repository.<br>
I checked the TCP transactions and did not see any SR.get_all while some debugging prints assured me that the code was being exercised.<br>
<br>
<br>
<br>
On 11/22/2013 04:40 AM, Bob Ball wrote:<br>
</div>
<blockquote type="cite"><style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:Consolas}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black}
span.HTMLPreformattedChar
        {font-family:Consolas;
        color:black}
span.EmailStyle19
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
ol
        {margin-bottom:0cm}
ul
        {margin-bottom:0cm}
-->
</style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hi Alvin,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Yes, we typically do expect Nova to be running in a DomU.  It’s worth checking out
<a href="http://docs.openstack.org/trunk/openstack-compute/install/yum/content/introduction-to-xen.html" target="_blank">
http://docs.openstack.org/trunk/openstack-compute/install/yum/content/introduction-to-xen.html</a> just to make sure you’ve got everything covered there.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">I say typically because in some configurations (notably using xenserver-core) it may be possible to run Nova in dom0 by setting the connection URL to “unix://local”. 
 This is an experimental configuration and was added near the end of Havana – see
<a href="https://blueprints.launchpad.net/nova/+spec/xenserver-core" target="_blank">
https://blueprints.launchpad.net/nova/+spec/xenserver-core</a>.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">In terms of sr_matching_filter, check that you’re setting it in the right group.  If you’re using the latest builds of Icehouse then it should be in the xenserver
 group.  I’m also assuming that the other-config for the SR does indeed contain ceph-sr=true?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Is the SR that is used for VMs still the default-SR?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Thanks,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Bob</span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></a></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"; color:windowtext">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:windowtext"> Alvin Starr [<a class="moz-txt-link-freetext" href="mailto:alvin@netvel.net" target="_blank">mailto:alvin@netvel.net</a>]
<br>
<b>Sent:</b> 22 November 2013 01:32<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.openstack.org" target="_blank">
openstack@lists.openstack.org</a><br>
<b>Subject:</b> [Openstack] Openstack and xen issues.</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
I am trying to use xen with Ceph and openstack using the devstack package.<br>
I am slowly wacking my way through things and have noticed a few issues.</p>
<ol start="1" type="1">
<li class="MsoNormal" style=""> openstack expects to be running in a domU and generates error messages even if xenapi_check_host is false. I am not sure if this causes other side effects. The tests for the local dom0 should be completley bypassed if the check
 is disabled. </li><li class="MsoNormal" style="">Open stack tries to read the xen SRs and checks the default one which ends up being the xen local storage and not any other SR. If I set the sr_matching_filter = other-config:ceph-sr=true there should be a xapi SR.get_all request
 generated but it looks like it is not generated at all. I have tracked the http traffic and no out put is generated even though the approprate code is being called.
</li></ol>
<p class="MsoNormal"><br>
<br>
</p>
<pre>-- </pre>
<pre>Alvin Starr                   ||   voice: (905)513-7688</pre>
<pre>Netvel Inc.                   ||   Cell:  (416)806-0133</pre>
<pre><a href="mailto:alvin@netvel.net" target="_blank">alvin@netvel.net</a>              ||</pre>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Alvin Starr                   ||   voice: (905)513-7688
Netvel Inc.                   ||   Cell:  (416)806-0133
<a class="moz-txt-link-abbreviated" href="mailto:alvin@netvel.net" target="_blank">alvin@netvel.net</a>              ||
</pre>
</div>
</div>
</div>
</div>
</body>
</html>