← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1744920] [NEW] nova-compute stop report state after system time changed

 

Public bug reported:

Description
===========
On compute node,if system time changed by NTP or using cmd "date -s",change time from 14:00:00 to 12:00:00 for example,the nova-compute service will stop reporting state to controller. Then nova service-list show the nova-compute service will be down.
In fact other periodic task such as _sync_power_states, also stopped.

I think system time change should not effect nova-compute.

Steps to reproduce
==================
It is 14:00:00 now for example, change system time to 12:00:00
    $ date -s 12:00:00
then we can find there is no log in nova-compute.log for a long time.

and nova service-list show the service is down.
+--------------------------------------+------------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
| Id                                   | Binary           | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |
+--------------------------------------+------------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+

| 3d0ea985-bc45-4cae-b45f-876520163dfa | nova-compute     | nail-5300-2
| test1    | enabled | down  | 2018-01-23T09:47:48.000000 | -
| False       |


Expected result
===============
nova service-list show nova-compute service still up.

Actual result
=============
nova service-list show the nova-compute service is down.

Environment
===========
openstack:   Pike
python:      python2.7
hypervisor:  libvirt + KVM

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1744920

Title:
  nova-compute stop report state after system time changed

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  On compute node,if system time changed by NTP or using cmd "date -s",change time from 14:00:00 to 12:00:00 for example,the nova-compute service will stop reporting state to controller. Then nova service-list show the nova-compute service will be down.
  In fact other periodic task such as _sync_power_states, also stopped.

  I think system time change should not effect nova-compute.

  Steps to reproduce
  ==================
  It is 14:00:00 now for example, change system time to 12:00:00
      $ date -s 12:00:00
  then we can find there is no log in nova-compute.log for a long time.

  and nova service-list show the service is down.
  +--------------------------------------+------------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
  | Id                                   | Binary           | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |
  +--------------------------------------+------------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+

  | 3d0ea985-bc45-4cae-b45f-876520163dfa | nova-compute     |
  nail-5300-2      | test1    | enabled | down  |
  2018-01-23T09:47:48.000000 | -               | False       |

  
  Expected result
  ===============
  nova service-list show nova-compute service still up.

  Actual result
  =============
  nova service-list show the nova-compute service is down.

  Environment
  ===========
  openstack:   Pike
  python:      python2.7
  hypervisor:  libvirt + KVM

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1744920/+subscriptions


Follow ups