Fix service list for disabled compute using MC driver
In 0df91a7f799060cd2e9b8a0adac1efacb974bcb3 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
Conflict is caused by I10b84a9cc7f0cc8ea213a377e4c4f16168b6e45b
not being in Pike.
Change-Id: I27160140cbccf3e6914aed2dcff54d547e446c1f
(Cherry-picked from 0f4e5c442c0ab446274979dafda873c1e1c20585)
Reviewed: https:/ /review. openstack. org/592337 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b9ea6939db9 2662f4978866e9d 48c43e67568922
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit b9ea6939db92662 f4978866e9d48c4 3e67568922
Author: Vlad Gusev <email address hidden>
Date: Thu Aug 16 13:14:01 2018 +0300
Fix service list for disabled compute using MC driver
In 0df91a7f799060c d2e9b8a0adac1ef acb974bcb3 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
Conflict is caused by I10b84a9cc7f0cc 8ea213a377e4c4f 16168b6e45b
not being in Pike.
Change-Id: I27160140cbccf3 e6914aed2dcff54 d547e446c1f 6274979dafda873 c1e1c20585)
(Cherry-picked from 0f4e5c442c0ab44