why my controller node in hypervisor-list

Asked by cheng jia su

Hi,

I try to build multi-node cluster IaaS system by devstack. When I finished and tested it.

I found that some instances launch into controller node.

I use nova hypervisor-list command to check, the following is respond:
+----+---------------------+
| ID | Hypervisor hostname |
+----+---------------------+
| 1 | controller |
| 2 | node1 |
+----+---------------------+

how can I let all instances launch into compute node (node1)?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Armando Migliaccio
Solved:
Last query:
Last reply:
Revision history for this message
Xiang Hui (xianghui) said :
#1

use availability zone to select a specified host to launch compute node,
an example is like :
 nova boot --image 6cc22762-d684-42de-a3da-d8acd770d346 --flavor 1 --availability-zone nova:node1 test

where the 'nova' in '--availability-zone nova:node1' is the <zone> your host belongs to, default is equal to nova, you can check by run
#nova-manage service list
nova-compute XH nova enabled :-) 2013-07-11 08:11:11
and the 'node1' is your host name to launch a vm.

Revision history for this message
cheng jia su (chengjia-su) said :
#2

Thank you for your reply.

I use this command which you offer to boot instance on specific host successfully.

but my system has installed dashboard, so I use dashboard to launch instances.

I still don't know how to use dashboard to launch instances on specific host.

Revision history for this message
Xiang Hui (xianghui) said :
#3

I think dashboard don't support this feature now.

Revision history for this message
cheng jia su (chengjia-su) said :
#4

Should the controller node must install hypervisor?

Can this problem be solved by uninstalling hypervisor which install on controller node?

Revision history for this message
Best Armando Migliaccio (armando-migliaccio) said :
#5

if your controller runs a service called nova-compute you can disable it by using nova-manage.

You can do so:

nova-manage service disable [-h] [--host <host>] [--service <service>]

Revision history for this message
cheng jia su (chengjia-su) said :
#6

Thanks Armando Migliaccio, that solved my question.