← Back to team overview

openstack team mailing list archive

Re: Question regarding who the nova database is updated

 

Heng,

I maybe wrong as the latest code is somewhat different from the one I followed last time, but it looks like the information is update at line 440 in nova/nova/compute/resource_tracker.py.

Thanks,

Joseph

----- Original Message -----
From: "Heng Xu" <shouhengzhang.xu@xxxxxxxxxxxxxxxx>
To: openstack@xxxxxxxxxxxxxxxxxxx
Sent: Tuesday, August 28, 2012 1:52:18 PM
Subject: [Openstack] Question regarding who the nova database is updated



Hi folks: 
I was trying to add a new column to the Nova database table compute_nodes. however, I was not sure of how it is updated periodically, all I know is that comsume_from_instance() function in host_manager.py update the memory, then I was not able to find how nova subsequently update the compute_nodes table in the database. Any help will be appreciated, please let me know the exact location (file, function, etc.) and how I can mimc that to modify my own new field in the compute_nodes table. Thanks in advance. 

Heng 


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


References