Customizing mysqld_options does not work on the overcloud

Bug #1848060 reported by Michele Baldessari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Michele Baldessari

Bug Description

Currently when adding some tuning options via hiera, galera won't start because overriding even a single mysql option will reset the whole key in the hash. So for example, when adding:
    tripleo::profile::base::database::mysql::mysql_server_options:
      mysqld:
        # MySQL InnoDB equally divided in 1GB instances
        innodb_buffer_pool_instances: 2
        # Query network write timeout raised to 120 seconds
        net_write_timeout: 120
        # Query network read timeout raised to 120 seconds
        net_read_timeout: 120
        # MySQL connection timeout set to 8 hours
        connect_timeout: 28800

Things will break because all the wsrep options that are set normally will be overridden and galera will refuse to start

Changed in tripleo:
assignee: nobody → Michele Baldessari (michele)
status: New → Triaged
importance: Undecided → Medium
milestone: none → ussuri-1
milestone: ussuri-1 → train-rc1
tags: added: queens-backport-potential rocky-backport-potential stein-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (master)

Fix proposed to branch: master
Review: https://review.opendev.org/688514

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (master)

Reviewed: https://review.opendev.org/688514
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=7e78ebdc0f3678afddea3bdab2007c7b6ac92776
Submitter: Zuul
Branch: master

commit 7e78ebdc0f3678afddea3bdab2007c7b6ac92776
Author: Michele Baldessari <email address hidden>
Date: Mon Oct 14 19:19:51 2019 +0200

    Deep merge hiera keys for mysqld_options

    Currently when adding some tuning options via hiera, galera won't start because
    overriding even a single mysql option will reset the whole key in the hash. So
    for example, when adding:
        tripleo::profile::base::database::mysql::mysql_server_options:
          mysqld:
            # MySQL InnoDB equally divided in 1GB instances
            innodb_buffer_pool_instances: 2
            # Query network write timeout raised to 120 seconds
            net_write_timeout: 120
            # Query network read timeout raised to 120 seconds
            net_read_timeout: 120
            # MySQL connection timeout set to 8 hours
            connect_timeout: 28800

    Things will break because all the wsrep options that are set normally will be
    overridden and galera will refuse to start

    Tested by passing the above hiera keys and observing the deploy complete
    successfully and the settings correctly applied to galera/mysql on the overcloud.

    Change-Id: I30f03bc8eb81db0243c137d4af08924adeebc951
    Closes-Bug: #1848060

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/688634

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/stein)

Reviewed: https://review.opendev.org/688634
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=d12fe87318264c9423e6bc0ac509fa2978261f1c
Submitter: Zuul
Branch: stable/stein

commit d12fe87318264c9423e6bc0ac509fa2978261f1c
Author: Michele Baldessari <email address hidden>
Date: Mon Oct 14 19:19:51 2019 +0200

    Deep merge hiera keys for mysqld_options

    Currently when adding some tuning options via hiera, galera won't start because
    overriding even a single mysql option will reset the whole key in the hash. So
    for example, when adding:
        tripleo::profile::base::database::mysql::mysql_server_options:
          mysqld:
            # MySQL InnoDB equally divided in 1GB instances
            innodb_buffer_pool_instances: 2
            # Query network write timeout raised to 120 seconds
            net_write_timeout: 120
            # Query network read timeout raised to 120 seconds
            net_read_timeout: 120
            # MySQL connection timeout set to 8 hours
            connect_timeout: 28800

    Things will break because all the wsrep options that are set normally will be
    overridden and galera will refuse to start

    Tested by passing the above hiera keys and observing the deploy complete
    successfully and the settings correctly applied to galera/mysql on the overcloud.

    Change-Id: I30f03bc8eb81db0243c137d4af08924adeebc951
    Closes-Bug: #1848060
    (cherry picked from commit 7e78ebdc0f3678afddea3bdab2007c7b6ac92776)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/688856

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

Reviewed: https://review.opendev.org/688856
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=82e304a419698e1243765557b66ee2ebd83d03bc
Submitter: Zuul
Branch: stable/rocky

commit 82e304a419698e1243765557b66ee2ebd83d03bc
Author: Michele Baldessari <email address hidden>
Date: Mon Oct 14 19:19:51 2019 +0200

    Deep merge hiera keys for mysqld_options

    Currently when adding some tuning options via hiera, galera won't start because
    overriding even a single mysql option will reset the whole key in the hash. So
    for example, when adding:
        tripleo::profile::base::database::mysql::mysql_server_options:
          mysqld:
            # MySQL InnoDB equally divided in 1GB instances
            innodb_buffer_pool_instances: 2
            # Query network write timeout raised to 120 seconds
            net_write_timeout: 120
            # Query network read timeout raised to 120 seconds
            net_read_timeout: 120
            # MySQL connection timeout set to 8 hours
            connect_timeout: 28800

    Things will break because all the wsrep options that are set normally will be
    overridden and galera will refuse to start

    Tested by passing the above hiera keys and observing the deploy complete
    successfully and the settings correctly applied to galera/mysql on the overcloud.

    Change-Id: I30f03bc8eb81db0243c137d4af08924adeebc951
    Closes-Bug: #1848060
    (cherry picked from commit 7e78ebdc0f3678afddea3bdab2007c7b6ac92776)
    (cherry picked from commit d12fe87318264c9423e6bc0ac509fa2978261f1c)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/688992

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/queens)

Reviewed: https://review.opendev.org/688992
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=82fa648afad9835be368ba856e9ec95aa7b24165
Submitter: Zuul
Branch: stable/queens

commit 82fa648afad9835be368ba856e9ec95aa7b24165
Author: Michele Baldessari <email address hidden>
Date: Mon Oct 14 19:19:51 2019 +0200

    Deep merge hiera keys for mysqld_options

    Currently when adding some tuning options via hiera, galera won't start because
    overriding even a single mysql option will reset the whole key in the hash. So
    for example, when adding:
        tripleo::profile::base::database::mysql::mysql_server_options:
          mysqld:
            # MySQL InnoDB equally divided in 1GB instances
            innodb_buffer_pool_instances: 2
            # Query network write timeout raised to 120 seconds
            net_write_timeout: 120
            # Query network read timeout raised to 120 seconds
            net_read_timeout: 120
            # MySQL connection timeout set to 8 hours
            connect_timeout: 28800

    Things will break because all the wsrep options that are set normally will be
    overridden and galera will refuse to start

    Tested by passing the above hiera keys and observing the deploy complete
    successfully and the settings correctly applied to galera/mysql on the overcloud.

    Change-Id: I30f03bc8eb81db0243c137d4af08924adeebc951
    Closes-Bug: #1848060
    (cherry picked from commit 7e78ebdc0f3678afddea3bdab2007c7b6ac92776)
    (cherry picked from commit d12fe87318264c9423e6bc0ac509fa2978261f1c)
    (cherry picked from commit 82e304a419698e1243765557b66ee2ebd83d03bc)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 11.3.0

This issue was fixed in the openstack/puppet-tripleo 11.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 10.5.2

This issue was fixed in the openstack/puppet-tripleo 10.5.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo rocky-eol

This issue was fixed in the openstack/puppet-tripleo rocky-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo queens-eol

This issue was fixed in the openstack/puppet-tripleo queens-eol release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.