Another approach that I would recommend is to use the "--availability-zone 
azname:hostname" flag.

https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1061665 

Regards,
Alex





From:   Li Ma <[email protected]>
To:     Mike Wilson <[email protected]>, David Wittman 
<[email protected]>, 
Cc:     OpenStack General Mailing List <[email protected]>
Date:   17/10/2013 05:46 AM
Subject:        Re: [Openstack] a problem with nova scheduler



Thanks for the hint. I'll try it later.


On Thu, Oct 17, 2013 at 9:29 AM, Mike Wilson <[email protected]> wrote:
There is a scheduler hint called 'force_hosts' for this sort of thing. I 
believe the command line looks like this:

Nova boot <server_name> --hints force_hosts=host1 <everything else>

Does that work for you?

This does not bypass the scheduler, but it is built into the scheduler to 
allow you to explicitly place new instances on a subset of hardware.

-Mike Wilson

Sent from my iPhone

On Oct 16, 2013, at 6:35 PM, Li Ma <[email protected]> wrote:

Hi all,

I encountered a problem with nova-scheduler. Given that I have 20 
different compute nodes, I need to run several instances on a certain 
compute node for testing or verification. I go through all the scheduling 
algorithms and find out I can achieve this by availability zone.

But this is a little bit weird to create more than 20 availability zone 
with only one compute node temporarily. Is there any other solutions for 
this?

In my opinion, there should be a certain parameter with nova CLI to 
specify which compute node this instance should be placed directly without 
any scheduling. Using this method, I can bypass the scheduling options 
defined in the nova.conf and do what we want to meet the specific 
requirements. 

Thanks,
-- 
Li Ma (Nick)
Email: [email protected]
_______________________________________________
Mailing list: 
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : 
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack



-- 
Li Ma (Nick)
Architect of Stackinsider
Email: [email protected]
_______________________________________________
Mailing list: 
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : 
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to