Comment 2 for bug 1788697

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

Reviewed: https://review.openstack.org/596305
Committed: https://git.openstack.org/cgit/openstack/stx-ha/commit/?id=53a055cb3aeed9ddb0368f65e26932d044162136
Submitter: Zuul
Branch: master

commit 53a055cb3aeed9ddb0368f65e26932d044162136
Author: Bin Qian <email address hidden>
Date: Thu Aug 23 14:06:48 2018 -0400

    remove incorrect logging when standby controller failed

    Add condition for the logging so to log only when the active controller
    failure which triggers a uncontrollered swact.
    The following changes are made:
    1. move get_controller_state to a new sm_failover_utils.c and renamed it
       to sm_get_controller_state.
    2. use the above function to check ensure to log only when the controller
       schedulering state is changing (swact).

    Closes-Bug: 1788697

    Change-Id: I145b579c2d31e8c9e184894774d3a1c06c9149d7
    Signed-off-by: Bin Qian <email address hidden>