<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">This changes is included in code, at
      least in my.<br>
      <br>
      On 2013.12.12. 13:14, Bob Ball wrote:<br>
    </div>
    <blockquote
cite="mid:BB824EA959B82F43820FFEE5E6B00AA61B1F90@AMSPEX01CL01.citrite.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
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
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
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]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This
            issue seems to have been fixed by
            <a moz-do-not-send="true"
              href="https://review.openstack.org/#/c/15910">https://review.openstack.org/#/c/15910</a>
            - so to get it fixed in your environment, try cherry-picking
            the change using:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">git
            fetch <a class="moz-txt-link-freetext" href="https://review.openstack.org/openstack/nova">https://review.openstack.org/openstack/nova</a>
            refs/changes/10/15910/1 && git cherry-pick
            FETCH_HEAD<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’ll
            look at trying to get these two fixes backported to Havana.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Bob<o:p></o:p></span></p>
        <p class="MsoNormal"><a moz-do-not-send="true"
            name="_MailEndCompose"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"
                    lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"
                  lang="EN-US"> Mārtiņš Jakubovičs
                  [<a class="moz-txt-link-freetext" href="mailto:martins@hostnet.lv">mailto:martins@hostnet.lv</a>]
                  <br>
                  <b>Sent:</b> 12 December 2013 08:08<br>
                  <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
                  <b>Subject:</b> [Openstack] Problem with aggregate
                  second host with XenServer<o:p></o:p></span></p>
            </div>
          </div>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">Hello!<br>
            <br>
            First of all I want to say, that aggregate function isn't
            working at all, but it is solved by this post:
            <a moz-do-not-send="true"
              href="https://ask.openstack.org/en/question/8392/aggregate-hosts/">https://ask.openstack.org/en/question/8392/aggregate-hosts/</a><br>
            After fixing sources aggregate is working now, I can add
            master and second host to pool (second host's node-compute
            successfully reboots and host adds to pool).<br>
            But after adding second host I got problem with second hosts
            nova-compute, it won't start:<br>
            <br>
            2013-12-12 09:52:08.114 13238 INFO
            nova.openstack.common.periodic_task [-] Skipping periodic
            task _periodic_update_dns because its interval is negative<br>
            2013-12-12 09:52:08.166 13238 INFO nova.virt.driver [-]
            Loading compute driver 'xenapi.XenAPIDriver'<br>
            2013-12-12 09:52:08.535 13238 CRITICAL nova [-]
            'XenAPISession' object has no attribute '_virtapi'<br>
            2013-12-12 09:52:08.535 13238 TRACE nova Traceback (most
            recent call last):<br>
            2013-12-12 09:52:08.535 13238 TRACE nova   File
            "/usr/bin/nova-compute", line 10, in <module><br>
            2013-12-12 09:52:08.535 13238 TRACE nova    
            sys.exit(main())<br>
            2013-12-12 09:52:08.535 13238 TRACE nova   File
            "/usr/lib/python2.7/dist-packages/nova/cmd/compute.py", line
            68, in main<br>
            2013-12-12 09:52:08.535 13238 TRACE nova    
            db_allowed=False)<br>
            2013-12-12 09:52:08.535 13238 TRACE nova   File
            "/usr/lib/python2.7/dist-packages/nova/service.py", line
            257, in create<br>
            2013-12-12 09:52:08.535 13238 TRACE nova    
            db_allowed=db_allowed)<br>
            2013-12-12 09:52:08.535 13238 TRACE nova   File
            "/usr/lib/python2.7/dist-packages/nova/service.py", line
            139, in __init__<br>
            2013-12-12 09:52:08.535 13238 TRACE nova     self.manager =
            manager_class(host=self.host, *args, **kwargs)<br>
            2013-12-12 09:52:08.535 13238 TRACE nova   File
            "/usr/lib/python2.7/dist-packages/nova/compute/manager.py",
            line 450, in __init__<br>
            2013-12-12 09:52:08.535 13238 TRACE nova     self.driver =
            driver.load_compute_driver(self.virtapi, compute_driver)<br>
            2013-12-12 09:52:08.535 13238 TRACE nova   File
            "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line
            1108, in load_compute_driver<br>
            2013-12-12 09:52:08.535 13238 TRACE nova     virtapi)<br>
            2013-12-12 09:52:08.535 13238 TRACE nova   File
            "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py",
            line 52, in import_object_ns<br>
            2013-12-12 09:52:08.535 13238 TRACE nova     return
            import_class(import_value)(*args, **kwargs)<br>
            2013-12-12 09:52:08.535 13238 TRACE nova   File
            "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py",
            line 142, in __init__<br>
            2013-12-12 09:52:08.535 13238 TRACE nova     self._session =
            XenAPISession(url, username, password, self.virtapi)<br>
            2013-12-12 09:52:08.535 13238 TRACE nova   File
            "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py",
            line 666, in __init__<br>
            2013-12-12 09:52:08.535 13238 TRACE nova     self.host_uuid
            = self._get_host_uuid()<br>
            2013-12-12 09:52:08.535 13238 TRACE nova   File
            "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py",
            line 698, in _get_host_uuid<br>
            2013-12-12 09:52:08.535 13238 TRACE nova     aggr =
            self._virtapi.aggregate_get_by_host(<br>
            2013-12-12 09:52:08.535 13238 TRACE nova AttributeError:
            'XenAPISession' object has no attribute '_virtapi'<br>
            2013-12-12 09:52:08.535 13238 TRACE nova<br>
            <br>
            I discover, that I can't set up nova-compute on "second
            host" in XenServer pool which is created by XenServer
            (without OpenStack aggregate), error is same. To master host
            nova-compute connects successfully. I tested this in two
            different XenServer 6.2 pools.<br>
            Is there some solution how can start to work "second host's"
            nova-computes?<br>
            <br>
            Thanks.<br>
            <br>
            <o:p></o:p></p>
        </div>
      </div>
    </blockquote>
  </body>
</html>