Ask Your Question
0

Aggregate hosts

asked 2013-12-10 04:04:36 -0600

Drankis gravatar image

Hello all!

I am trying to create XenServer pool from two hosts. I discover, that hosts must be stand alone (they shouldn't be on XenServer resource pool) before aggregate (this I didn't find in any documentation). Ok, but now I have problem to aggregate two stand alone hosts.

So I got services:

root@controller:~# nova service-list
+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| Binary           | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| nova-compute     | compute-1  | nova     | enabled | up    | 2013-12-10T09:50:32.000000 | None            |
| nova-network     | compute-1  | internal | enabled | up    | 2013-12-10T09:50:40.000000 | None            |
| nova-cert        | controller | internal | enabled | up    | 2013-12-10T09:50:40.000000 | None            |
| nova-conductor   | controller | internal | enabled | up    | 2013-12-10T09:50:39.000000 | None            |
| nova-consoleauth | controller | internal | enabled | up    | 2013-12-10T09:50:34.000000 | None            |
| nova-scheduler   | controller | internal | enabled | up    | 2013-12-10T09:50:41.000000 | None            |
| nova-network     | compute-2  | internal | enabled | up    | 2013-12-10T09:50:38.000000 | None            |
| nova-compute     | compute-2  | nova     | enabled | up    | 2013-12-10T09:50:32.000000 | None            |
+------------------+------------+----------+---------+-------+----------------------------+-----------------+

To create aggregate pool I used this documentation.

On controller node I create resource pool:

nova aggregate-create demo-pool nova

Add metadatas, as described in documentation:

nova aggregate-set-metadata 1 hypervisor_pool=true
nova aggregate-set-metadata 1 operational_state=created

And than I added master host to pool:

nova aggregate-add-host 1 compute-1

After that nothing happens and in compute-1 host nova-compute.log file error appears:

2013-12-10 11:39:37.879 24679 ERROR nova.openstack.common.rpc.amqp [req-a555843c-f5fc-4fc0-815c-da9950dc9243 9ffbc08b941540c69a804ecfa4d3dc4e 76619aca43f841e0bed1a3b89ce8b426] Exception during message handling
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 461, in _process_data
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp     **args)
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp     result = getattr(proxyobj, method)(ctxt, **kwargs)
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 90, in wrapped
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp     payload)
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 73, in wrapped
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp     return f(self, context, *args, **kw)
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 5002, in add_aggregate_host
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp     slave_info=slave_info)
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py", line 627, in add_to_aggregate
2013-12-10 11:39:37.879 24679 TRACE nova.openstack.common.rpc.amqp     return self._pool.add_to_aggregate(context, aggregate, host, **kwargs)
2013-12-10 11:39 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-12-10 10:12:49 -0600

Bob Ball gravatar image

updated 2013-12-19 10:14:18 -0600

I think Havana is missing change f2f58eef93aec45e46a9a2ab06fc8b00a9420350 (see https://review.openstack.org/#/c/50466/ )

We need to backport this fix (or more likely https://review.openstack.org/#/c/49400/ )

If you are testing with sources, try patching with the backport of the above patch using: git fetch https://review.openstack.org/openstack/nova refs/changes/12/61712/6 && git cherry-pick FETCH_HEAD

Note: Edited to use new version of the patch to fix the problems reported below

edit flag offensive delete link more

Comments

Hello! Thanks, it works! I changed sources on nova-computes and now pool is creating successfully, but when add second nova-compute host, nova-compute fail to start (but it adds). It happens also when I was trying to add second nova-compute on working XS resource pool (created without OpenStack).

Drankis gravatar imageDrankis ( 2013-12-10 12:50:57 -0600 )edit

Error log: http://pastebin.com/G0HTt59j Or better for second issue create new topic ...

Drankis gravatar imageDrankis ( 2013-12-10 12:52:08 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-10 04:04:36 -0600

Seen: 292 times

Last updated: Dec 19 '13