Ask Your Question
0

Does scheduler run in a single node environment?

asked 2013-06-13 05:02:31 -0500

peegupta gravatar image

Hi, I have installed openstack on Ubuntu 12.04 LTS. Now, as it is a single node establishment, so there is only one host. As my understanding goes, scheduler selects the hosts to run the instance on. Now, I want to know will the run on my setup as there is just one host and nothing to select from?

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2013-06-18 20:29:56 -0500

keith-tobin gravatar image

Post the logs with debug turned and I will have a look.

edit flag offensive delete link more
0

answered 2013-06-17 08:57:06 -0500

peegupta gravatar image

Yeah, I checked it and nova-scheduler is running. Let me check setting debug to true in config files.

edit flag offensive delete link more
0

answered 2013-06-17 08:38:24 -0500

keith-tobin gravatar image

If you do a 'ps aux' and search for nova-scheduler you will find it is running.

The first thing I would do is check all the logs for errors, depending on how you set up openstack and on what OS will depend on where the logs are. Under /var/log/ is a good starting place.

By searching for errors in the log files will allow you to see what is going on, you should also set the debug to true in all openstack component config files, it make it much easier to find what is going on.

If you find a error please post here with pastebin.

edit flag offensive delete link more
0

answered 2013-06-17 08:07:31 -0500

peegupta gravatar image

Thanks Keith. I have installed all the components. So, I guess scheduler is running on my system. Now, as my understanding goes, when I use nova "boot command", scheduler sends a rpc call to compute manager (/compute/manager.py) and then _run_instance() function takes cares of launching the instance. I am trying to track the flow here. So, I put pdb.set_trace() in that particular function. The issue is, that part of program is not being executed (I am not getting redirected to python debugger). If the scheduler is running, the I should encounter debugger before the output on the screen, shouldn't I?

edit flag offensive delete link more
0

answered 2013-06-15 22:48:43 -0500

keith-tobin gravatar image

The answer is yes, provided that you installed all the correct components. If you are running a single node and installed and configured, Keystone, Glance, Networking, Cinder, MySql, RabbitMQ and finally Nova. Then you will have all the components need.

What should happen when you create a instance is, the scheduler will select the only host available, and in your case it will be the host running everything, the scheduler dose not really know the you have installed everything on one server node and the scheduler will just select a registered nova node, as you installed the nova software on this node, this will be the node selected.

edit flag offensive delete link more

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-06-13 05:02:31 -0500

Seen: 34 times

Last updated: Jun 18 '13