← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1647269] [NEW] ‘nova service-list’ can‘t get the latest Updated_at time when using mc driver

 

Public bug reported:

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.

** Affects: nova
     Importance: Undecided
     Assignee: Tao Li (eric-litao)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Tao Li (eric-litao)

-- 
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):
  New

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


Follow ups