[openstack-dev] [nova] How does Nova update time for compute nodes?

Gareth academicgareth at gmail.com
Wed Oct 8 04:11:20 UTC 2014


Thanks you Chen. What I'm finding is the '_report_state' function. Your
answer really helps :)

On Wed, Oct 8, 2014 at 11:28 AM, Chen CH Ji <jichenjc at cn.ibm.com> wrote:

> following are code analysis, only FYI
>
> not sure fully understand the question, but I think
> servicegroup/drivers/db.py might be a good place to look at
> a timer function _report_state is called periodically ,when its updated,
> the field will be updated
>
> class TimestampMixin(object):
>     created_at = Column(DateTime, default=lambda: timeutils.utcnow())
>     updated_at = Column(DateTime, onupdate=lambda: timeutils.utcnow())
>
> Best Regards!
>
> Kevin (Chen) Ji 纪 晨
>
> Engineer, zVM Development, CSTL
> Notes: Chen CH Ji/China/IBM at IBMCN   Internet: jichenjc at cn.ibm.com
> Phone: +86-10-82454158
> Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
> Beijing 100193, PRC
>
> [image: Inactive hide details for Gareth ---10/08/2014 10:23:59 AM---Hi,
> Nova guys I know that 'nova-manage service list' will output ']Gareth
> ---10/08/2014 10:23:59 AM---Hi, Nova guys I know that 'nova-manage service
> list' will output 'XXX' for compute nodes
>
> From: Gareth <academicgareth at gmail.com>
> To: OpenStack Development Mailing List <openstack-dev at lists.openstack.org>
> Date: 10/08/2014 10:23 AM
> Subject: [openstack-dev] [nova] How does Nova update time for compute
> nodes?
> ------------------------------
>
>
>
> Hi, Nova guys
>
> 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?
>
>
> --
> Gareth
>
> *Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball*
> *OpenStack contributor, kun_huang at freenode*
> *My promise: if you find any spelling or grammar mistakes in my email from
> Mar 1 2013, notify me *
> *and I'll donate $1 or ¥1 to an open organization you specify.*
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
Gareth

*Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball*
*OpenStack contributor, kun_huang at freenode*
*My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141008/cfbac3a1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141008/cfbac3a1/attachment.gif>


More information about the OpenStack-dev mailing list