Comment 2 for bug 1871958

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-mysql-innodb-cluster (master)

Reviewed: https://review.opendev.org/719106
Committed: https://git.openstack.org/cgit/openstack/charm-mysql-innodb-cluster/commit/?id=101b7f370dfd4de156a259fdf380a47e305c9bde
Submitter: Zuul
Branch: master

commit 101b7f370dfd4de156a259fdf380a47e305c9bde
Author: David Ames <email address hidden>
Date: Fri Apr 10 09:48:44 2020 -0700

    Only run DB/user creation on relation data change

    Before this change DB and user creation methods were called on every
    hook execution after <interface>.available was established.

    This change checks for both endpoint.<interface>.changed and
    <interface.available> before running DB and user creation methods.

    It also validates that the creation of DB and users succeeded before
    clearing the endpoint.<interface>.changed flag.

    Closes-Bug: #1871958
    Change-Id: I20f2eabbf622b44be31742678ffd9724b1e00c8a