Reviewed:  https://review.openstack.org/414463
Committed: 
https://git.openstack.org/cgit/openstack/nova/commit/?id=0df91a7f799060cd2e9b8a0adac1efacb974bcb3
Submitter: Jenkins
Branch:    master

commit 0df91a7f799060cd2e9b8a0adac1efacb974bcb3
Author: Tao Li <litao3...@126.com>
Date:   Fri Dec 23 10:35:01 2016 +0800

    Fix the display of updated_at time when using memcache driver.
    
    When using mc driver(set servicegroup_driver=mc), the service reports
    state by memcache. but we use 'nova service-list' get the status of
    services registered in nova, the 'update_at' time is not the last updated
    time not as db driver. so we should get the time in memcache to update the
    time in response.
    Closes-Bug: #1647269
    
    Change-Id: I1d4763436ad6de2483c39f5fe97fa6e8d283d8a3


** Changed in: nova
       Status: In Progress => Fix Released

-- 
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/1647269

Title:
  ‘nova service-list’ can‘t get the latest Updated_at time when using mc
  driver

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  Description
  ===========

  When using mc driver(set servicegroup_driver=mc), the service reports
  state by memcache. but we use 'nova service-list' get the status of
  services reginster in nova, the 'update_at' time is not the last
  updated time not as db driver. so we should get the time in mecache to
  update the time in respone. The respone displays as follows.

  [root@dfcontroller1 ~]# nova service-list
  
+-----+------------------+---------------+----------+---------+-------+----------------------------+-----------------+
  | Id  | Binary           | Host          | Zone     | Status  | State | 
Updated_at                 | Disabled Reason |
  
+-----+------------------+---------------+----------+---------+-------+----------------------------+-----------------+
  | 157 | nova-scheduler   | dfcontroller1 | internal | enabled | up    | 
2016-12-05T06:28:42.000000 | -               |
  | 161 | nova-scheduler   | dfcontroller2 | internal | enabled | up    | 
2016-12-05T06:29:01.000000 | -               |
  | 163 | nova-conductor   | dfcontroller1 | internal | enabled | up    | 
2016-12-05T06:28:39.000000 | -               |
  | 164 | nova-conductor   | dfcontroller2 | internal | enabled | up    | 
2016-12-05T06:29:01.000000 | -               |
  | 187 | nova-consoleauth | dfcontroller1 | internal | enabled | up    | 
2016-12-05T06:28:46.000000 | -               |
  | 188 | nova-consoleauth | dfcontroller2 | internal | enabled | up    | 
2016-12-05T06:28:56.000000 | -               |
  | 194 | nova-rs          | dfcontroller2 | internal | enabled | up    | 
2016-12-05T06:28:57.000000 | -               |
  | 197 | nova-haservice   | dfcontroller2 | internal | enabled | up    | 
2016-12-05T06:29:02.000000 | -               |
  | 199 | nova-haservice   | dfcontroller1 | internal | enabled | down  | 
2016-12-05T01:53:31.000000 | -               |
  | 202 | nova-rs          | dfcontroller1 | internal | enabled | down  | 
2016-12-05T02:02:12.000000 | -               |
  | 205 | nova-compute     | dfcompute1    | az_ip    | enabled | up    | 
2016-12-05T06:29:00.000000 | -               |
  | 208 | nova-compute     | dfcompute3    | az_ip    | enabled | up    | 
2016-12-05T06:28:45.000000 | -               |
  | 211 | nova-compute     | dfcompute2    | az_ip    | enabled | up    | 
2016-12-05T06:29:03.000000 | -               |
  
+-----+------------------+---------------+----------+---------+-------+----------------------------+-----------------+

  Steps to reproduce
  ==================

  1. modify the nova.conf file to set servicegroup_driver to mc。
  2. restart nova-compute,nova-scheduler,nova-conductor,nova-consoleauth 
services。
  3. wait for 10min or more, you'll watch the 'update_at' remians the same time.

  Expected result
  ===============
  The 'update_at' display the latest time as using db driver.

  Actual result
  =============
  The 'update_at' remains not like using db driver.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to