... and migrate it to openstacklib so that all logics about database
configuration are implemented in one common place.
Depends-on: https://review.opendev.org/#/c/728595/
Change-Id: I0f7d05983a6d8bc6808f8595bc9d94c6aa4f7800
Make sure documentation is the same and follow
the standard which we are trying to enforce on
all modules.
Change-Id: I7ab5214261c7a85051bc6ec58d55bb512d3db9b3
Rather than use simple_cell_setup which expects that there are already
existing computes, this change uses map_cell0 & create_cell to setup
cell_v2. Once the computes are configured, the cell_v2 discover_hosts
should be used to finalized the installation.
In addition, the db syncs need to be reordered as the api db sync
should run before the the cell_v2 setup. The main db sync should run
after.
map_cell0/simple_cell_setup now uses main nova DB connection instead
of the api DB connection.
Change-Id: I591b451197dc3bd0783978f5e3d2b1c830afe54e
Closes-Bug: #1656276
Related-Bug: #1656673
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain. This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.
Change-Id: I0b524e354b095f2642fd38a2f88536d15bcdf855
Change default charset to utf8 and default collation order to
utf8_unicode_ci to align with upstream defaults.
Change-Id: I2aa59fd868476f599019e3029af36aa707139fe1
Closes-Bug: #1302088
Puppetlabs-mysql has been rewritten to be much
cleaner. This patch adds a new parameter for the
nova mysql and init classes allowing users to use
the new version. Previous behavior will continue
as normal when using the old version (0.9)
Change-Id: I6d12a69180554348143f7f341f7570c52ecad140
This patch fixes all remaining parameter documentation
in the nova module to be compatible with puppet-doc
and documents all parameters in a standard way.
Change-Id: I451078d46cb2498dd8e3c23bd8cbcc81b8845fcd
In the origin nova::db::mysql, if the value of $allowed_hosts
contains or equals to $host, then puppet will complain duplicate
declaration error. This patch is aim to update the allowed_hosts
conditonal statement in nova::db::mysql.
There are two cases to pass $allowed_hosts to $real_allowed_hosts:
- If $allowed_hosts is array,then remove $host from $allowed_hosts;
- elsif $allowed_hosts is string and not equivalent to $host;
At last, if $real_allowed_hosts is not undef, then run
nova::db::mysql::host_access
Fix bug 1206444
Change-Id: If018321095e62e1196e0c2e6b623b30acb535020
Updates the nova db/mysql.pp module so we no longer rely on storeconfigs
being present. This fixes a warning that would occur when using the
nova::db::mysql.
Change-Id: I332092af152da514a401694d48cb76a5f237ef3e
Allow to specify the database charset but still default to 'latin1' if
none is provided.
Remove nova::params::nova_db_charset. Both osfamily were using 'latin1'
since the update for Folsom in 76d4632.
utf8 as a default prevents the database from being created (MyISAM does
not support indexes with more than 1000 bytes).
The 'nova db sync' command later upgrades the database/tables to utf8
and InnoDB.
This commit finishes the openstack refactor.
All database config classes are stored in the location
<project>::db::<db_type>. In the case of nova::db,
it has been moved to nova::db::mysql.
This commit cleans up all of the code to reflect this.