nova/nova/tests/unit/servicegroup
Kevin_Zheng 161d38679f Fix service list for disabled compute using MC driver
In 0df91a7f79 a comparison
between ``updated_at`` field from services table and update time
from memcache was added if the servergroup_driver is set to be
mc.

This could be problematic if servergroup_driver=mc and
``[DEFAULT]/enable_new_services`` option in /etc/nova/nova.conf
is set to be ``False`` at the same time, as the ``updated_at``
field will always be ``Null`` in services record.

This patch fixes the bug by returning ``updated_time_in_mc`` instead
under the above mentioned scenario.

Closes-Bug: #1781880

Change-Id: I27160140cbccf3e6914aed2dcff54d547e446c1f
(cherry picked from commit 0f4e5c442c)
2018-09-14 02:25:10 +00:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_api.py Fix the display of updated_at time when using memcache driver. 2017-05-26 16:48:07 +08:00
test_db_servicegroup.py Fix the display of updated_at time when using memcache driver. 2017-05-26 16:48:07 +08:00
test_mc_servicegroup.py Fix service list for disabled compute using MC driver 2018-09-14 02:25:10 +00:00