is it possible to manual decide the host when instance is being created instead of automatic assign host [closed]

asked 2014-08-14 09:24:08 -0600

orangeiv gravatar image

Openstack engine will automatic(certain algorithm) settle the instance to back-end host if the openstack have several nova-compute node in order to balance workload for host.

In the some situation, Can I assign the nova-compute node by manual? decide by person?

I observed the below parameters to describe host and hypervisor_hostname in openstack API guide document. OS-EXT-SRV-ATTR:host OS-EXT-SRV-ATTR:hypervisor_hostname

Can i use them to decide nova-compute node where i want to create instance?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by orangeiv
close date 2014-08-18 18:56:42.601871


I will test it and feedback

orangeiv gravatar imageorangeiv ( 2014-08-14 10:28:16 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-08-14 10:12:16 -0600

dbaxps gravatar image

updated 2014-08-14 10:18:46 -0600


Select a specific host to boot instances on

If you have the appropriate permissions, you can select the specific host where the instance will be launched. This is done using the --availability_zone zone:host arguments to the nova boot command. For example:

$ nova boot --image <uuid> --flavor m1.tiny --key_name test --availability-zone nova:server2

Starting with the Grizzly release, you can specify which roles are permitted to boot an instance to a specific host with the create:forced_host setting within policy.json on the desired roles. By default, only the admin role has this setting enabled.

You can view the list of valid compute hosts by using the nova hypervisor-list command, for example:

$ nova hypervisor-list
| ID | Hypervisor hostname |
| 1  | server2             |
| 2  | server3             |
| 3  | server4             |
edit flag offensive delete link more


thank you very much , it is workable.

orangeiv gravatar imageorangeiv ( 2014-08-17 00:57:51 -0600 )edit

answered 2014-08-14 22:35:30 -0600

SGPJ gravatar image

Refer to this post link

Also please search this site before posting the question.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-08-14 09:24:08 -0600

Seen: 309 times

Last updated: Aug 14 '14