Comment 18 for bug 2046257

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-openstack-dashboard (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/charm-openstack-dashboard/+/903459
Committed: https://opendev.org/openstack/charm-openstack-dashboard/commit/f7049fa6208e097da102eb0b7b0eb5891dbd4fb5
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit f7049fa6208e097da102eb0b7b0eb5891dbd4fb5
Author: Felipe Reyes <email address hidden>
Date: Tue Dec 12 11:06:29 2023 -0300

    Run relation_set() in dashboard_relation_changed() on leader

    The commit 484b7d8260 introduced a new relation that relies on an
    application databag to exchange data, although only the leader can write
    to it, and the original patch didn't guard the relation_set() call with
    a is_leader(), this patch addresses that problem wich produces a hook
    failure on follower units when openstack-dashboard is deployed in HA.

    Closes-Bug: #2046257
    Related-Bug: #2030094
    Change-Id: I1930b0b96f65cb627f896db67dddc6370cf6a413
    (cherry picked from commit 4d5581438ad216a0de69c0959e05e0b8a76bc9aa)
    (cherry picked from commit 3905f0a6ae35257257b1dd5ccc275f4c26678b16)