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

Bug #1647269 reported by Tao Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Tao Li

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.

Tao Li (eric-litao)
Changed in nova:
assignee: nobody → Tao Li (eric-litao)
Sean Dague (sdague)
Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
Tao Li (eric-litao)
Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/414463

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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 <litao3721@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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 16.0.0.0b2

This issue was fixed in the openstack/nova 16.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.