Ask Your Question
0

SimpleScheduler & SqlAlchemy changes not being applied

asked 2011-12-13 20:23:27 -0500

alejandro-comisario gravatar image

Hey guys, we are making some changes on the "nova\db\sqlalchemy\api.py" and added a function to make a query to sort hosts by free ram.

After that, we modified '"nova\scheduler\simple.py" to call out brand new function, instead of the old one "service_get_all_compute_sorted" changed for "service_get_all_compute_sorted_MB"

We also added some LOGS to the nova.scheduler.manager to log the new calls, but when we restart :

CONTROLLER: nova-network , nova-scheduler, nova-api COMPUTES: libvirt-bin , nova-compute

I dont see, not only the logs, but any attempt to call out new functions, we also tried to delete all the *.pyc from the libs directory.

So, what are we missing ???

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2011-12-13 21:13:14 -0500

everett-toews gravatar image

Don't forget to add your new functions to nova/db/api.py as well.

Everett

On Tue, Dec 13, 2011 at 1:25 PM, Alejandro Comisario < question181803@answers.launchpad.net > wrote:

New question #181803 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+question/181803 (https://answers.launchpad.net/nova/+q...)

Hey guys, we are making some changes on the "nova\db\sqlalchemy\api.py" and added a function to make a query to sort hosts by free ram.

After that, we modified '"nova\scheduler\simple.py" to call out brand new function, instead of the old one "service_get_all_compute_sorted" changed for "service_get_all_compute_sorted_MB"

We also added some LOGS to the nova.scheduler.manager to log the new calls, but when we restart :

CONTROLLER: nova-network , nova-scheduler, nova-api COMPUTES: libvirt-bin , nova-compute

I dont see, not only the logs, but any attempt to call out new functions, we also tried to delete all the *.pyc from the libs directory.

So, what are we missing ???


You received this question notification because you are an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-12-14 14:10:04 -0500

alejandro-comisario gravatar image

Hmmmm, i think you are right. We'll try that and see if it works !

I'll let you know.

edit flag offensive delete link more
0

answered 2011-12-14 15:14:19 -0500

alejandro-comisario gravatar image

Thanks Everett Toews, that solved my question.

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: 2011-12-13 20:23:27 -0500

Seen: 17 times

Last updated: Dec 14 '11