Comment 10 for bug 1781880

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

Reviewed: https://review.openstack.org/592310
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=161d38679fec13bdb10e89536f7e0db43176396f
Submitter: Zuul
Branch: stable/rocky

commit 161d38679fec13bdb10e89536f7e0db43176396f
Author: Kevin_Zheng <email address hidden>
Date: Thu Jul 19 19:09:31 2018 +0800

    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

    Change-Id: I27160140cbccf3e6914aed2dcff54d547e446c1f
    (cherry picked from commit 0f4e5c442c0ab446274979dafda873c1e1c20585)