<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=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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.apple-style-span
{mso-style-name:apple-style-span;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
color:black;}
.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 bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Sorry – you’re right – I went too far in the history and then mis-read the changeset I referenced! This was actually fixed by the same fix with the aggregates
objects – that doesn’t cleanly backport, which is one reason I didn’t suggest it in the first place.<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’m not sure what the right way to fix this is for good in Havana, since I’m nervous about trying to backport the big changes to use objects (which was the
correct fix in trunk).<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">Can you remove the change you cherry-picked as a result of my advice on ask.openstack.org and cherry-pick my new commit:<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">git checkout HEAD^1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">git fetch https://review.openstack.org/openstack/nova refs/changes/12/61712/2 && 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"><o:p> </o:p></span></p>
<p class="MsoNormal"><a 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 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"> Mārtiņš Jakubovičs [mailto:martins@hostnet.lv]
<br>
<b>Sent:</b> 12 December 2013 11:27<br>
<b>To:</b> Bob Ball; openstack@lists.openstack.org<br>
<b>Subject:</b> Re: [Openstack] Problem with aggregate second host with XenServer<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">This changes is included in code, at least in my.<br>
<br>
On 2013.12.12. 13:14, Bob Ball wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<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 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:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">git fetch
<a href="https://review.openstack.org/openstack/nova">https://review.openstack.org/openstack/nova</a> refs/changes/10/15910/1 && git cherry-pick FETCH_HEAD</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></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.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Bob</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></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"> Mārtiņš Jakubovičs [<a href="mailto:martins@hostnet.lv">mailto:martins@hostnet.lv</a>]
<br>
<b>Sent:</b> 12 December 2013 08:08<br>
<b>To:</b> <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
<b>Subject:</b> [Openstack] Problem with aggregate second host with XenServer</span><o:p></o:p></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 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>
<br>
<o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</body>
</html>