<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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 class="Apple-interchange-newline">
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
font-size: medium; "> </span>
</body>
</html>