Bug 1159390
Summary: | [RFE] Allow open_files_limit & max_connections to be set for mysql/mariaDB | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Lee Yarwood <lyarwood> |
Component: | openstack-foreman-installer | Assignee: | Jason Guiditta <jguiditt> |
Status: | CLOSED ERRATA | QA Contact: | Ami Jeain <ajeain> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | Foreman (RHEL 6) | CC: | aortega, dmacpher, felipe.alfaro, lbezdick, mburns, morazi, rhos-maint, yeylon |
Target Milestone: | ga | Keywords: | FutureFeature |
Target Release: | Installer | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | openstack-foreman-installer-3.0.8-1.el7ost | Doc Type: | Enhancement |
Doc Text: |
This enhancement exposes the open_files_limit and max_connections parameters for MySQL/MariaDB in the installer.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-09 15:17:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Lee Yarwood
2014-10-31 18:41:18 UTC
Would be nice to have this available for RHOS 4.0. I don't think this is bug at all, you shouldn't even have to touch the template. Correct solution here is what packstack actually is doing, here is sample of generated packstack code: class { 'mysql::server': package_name => 'mariadb-galera-server', restart => true, root_password => hiera('CONFIG_MARIADB_PW'), require => Package['mariadb-server'], override_options => { 'mysqld' => { bind_address => '0.0.0.0', default_storage_engine => 'InnoDB', max_connections => '1024', open_files_limit => '-1', } } } To explain override_options is hash parsed by the mysql module and passed to template: mysql::server: # Create a merged together set of options. Rightmost hashes win over left. $options = mysql_deepmerge($mysql::params::default_options, $override_options) template: <% @options.sort.map do |k,v| -%> <% if v.is_a?(Hash) -%> [<%= k %>] <% v.sort.map do |ki, vi| -%> <% if ki == 'ssl-disable' or (ki =~ /^ssl/ and v['ssl-disable'] == true) -%> <% next %> <% elsif vi == true or v == '' -%> <%= ki %> <% elsif vi.is_a?(Array) -%> <% vi.each do |vii| -%> <%= ki %> = <%= vii %> <% end -%> <% elsif ![nil, '', :undef].include?(vi) -%> <%= ki %> = <%= vi %> <% end -%> <% end -%> <% end %> <% end -%> The code sample is probably from older openstack-puppet-modules? Agree with Lukas, the puppet module already knows hot to handle this setting. I think that this should be addressed in OFI Patch posted to allow override, we already set this as above: https://github.com/redhat-openstack/astapor/pull/438 Merged by cwolfe Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0156.html |