Comment 3 for bug 1674196

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

Reviewed: https://review.openstack.org/447354
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=38a3cbc84a59bca4516358a788de50aca17f7cb5
Submitter: Jenkins
Branch: master

commit 38a3cbc84a59bca4516358a788de50aca17f7cb5
Author: licanwei <email address hidden>
Date: Mon Mar 20 12:17:34 2017 +0800

    exception when running 'watcher service list'

    We have two controllers as HA in our OpenStack environment.
    There are watcher-applier and watcher-decision-engine in each
    controller. So there are two same name in the services table.
    In this case, the objects.Service.get_by_name(context, name)
    will trigger exception of MultipleResultsFound.
    We should use objects.Service.get(context, id) replace of
    objects.Service.get_by_name(context, name).

    Change-Id: Ic3ce784590d6c2a648cb3b28299744deed281332
    Closes-Bug: #1674196