<html><body>
<p><font size="2" face="sans-serif">following are code analysis, only FYI</font><br>
<br>
<font size="2" face="sans-serif">not sure fully understand the question, but I think servicegroup/drivers/db.py might be a good place to look at</font><br>
<font size="2" face="sans-serif">a timer function _report_state is called periodically ,when its updated, the field will be updated</font><br>
<br>
<font size="2" face="sans-serif">class TimestampMixin(object):</font><br>
<font size="2" face="sans-serif"> created_at = Column(DateTime, default=lambda: timeutils.utcnow())</font><br>
<font size="2" face="sans-serif"> updated_at = Column(DateTime, onupdate=lambda: timeutils.utcnow())</font><br>
<br>
<font size="2" face="sans-serif">Best Regards! <br>
<br>
Kevin (Chen) Ji 纪 晨<br>
<br>
Engineer, zVM Development, CSTL<br>
Notes: Chen CH Ji/China/IBM@IBMCN Internet: jichenjc@cn.ibm.com<br>
Phone: +86-10-82454158<br>
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC </font><br>
<br>
<img width="16" height="16" src="cid:1__=C7BBF7F8DF82BCD08f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for Gareth ---10/08/2014 10:23:59 AM---Hi, Nova guys I know that 'nova-manage service list' will output '"><font size="2" color="#424282" face="sans-serif">Gareth ---10/08/2014 10:23:59 AM---Hi, Nova guys I know that 'nova-manage service list' will output 'XXX' for compute nodes</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From: </font><font size="1" face="sans-serif">Gareth <academicgareth@gmail.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To: </font><font size="1" face="sans-serif">OpenStack Development Mailing List <openstack-dev@lists.openstack.org></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date: </font><font size="1" face="sans-serif">10/08/2014 10:23 AM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject: </font><font size="1" face="sans-serif">[openstack-dev] [nova] How does Nova update time for compute nodes?</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="3" face="serif">Hi, Nova guys</font><br>
<br>
<font size="3" face="serif">I know that 'nova-manage service list' will output 'XXX' for compute nodes is the time between api node and compute node are larger than service_down_time. At the same time Nova update db cyclically. So my question is how does Nova update that data? via crontab or something else?</font><br>
<br>
<br>
<font size="3" face="serif">-- </font><br>
<font size="3" color="#444444" face="serif">Gareth</font><br>
<br>
<font size="3" color="#444444" face="serif"><i>Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball</i></font><br>
<font size="3" color="#666666" face="serif"><i>OpenStack contributor, kun_huang@freenode</i></font><br>
<font size="3" color="#999999" face="serif"><i>My promise: if you find any spelling or grammar mistakes in my email from Mar 1 2013, notify me </i></font><br>
<font size="3" color="#999999" face="serif"><i>and I'll donate $1 or ¥1 to an open organization you specify.</i></font><tt><font size="2">_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br>
</font></tt><br>
</body></html>