Add pool_timeout option to configure this value for pool_timeout with
SQLAlchemy.
Change-Id: Ib84d68f367c043b40f15ec50d45093467f11a4f4
Closes-Bug: #1757581
URL mysql://scott:***@some_host/some_db does not contain a '+drivername'
portion, and will make use of a default driver. A full dbname+drivername://
protocol is recommended. For MySQL, it is strongly recommended that
mysql+pymysql:// be specified for maximum service compatibility.
Change-Id: Ib5cbfcc412c04381f2fce9f319a313eb86ea7fa8
Closes-Bug: #1753342
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: I0d18ec6ffe6b54c85773a6dabb0ed7b6f59a12f4
https://review.openstack.org/#/c/388688/ has removed ceilometer-dbsync
and ceilometer-upgrade must be used instead.
Additionally, ceilometer-dbsync enabled option --skip-gnocchi-resource-types
and ceilometer-upgrade doesn't, so i'm setting it by default to
ensure backwards compatibility.
Closes-Bug: #1641076
Change-Id: I383fb7922e7984b067742e10a370b0d2f574dbe9
The db_max_retries parameter regulates the number of reconnection
attempts performed after an error raised rather than at startup.
Change-Id: Iaf0d5ada30e0ea57d454ab1850cc61ee658cef64
Closes-Bug: 1579718
Co-Authored-By: Giulio Fidende <gfidente@redhat.com>
Additonal changes:
* switch oslo related parameters to $::os_service_default
as they are used in oslo defines
* update unit tests
* update docs for oslo parameters
Change-Id: I4f813444fbf141abe7f10b3aef7d1aa314ac0ac4
mongodb_replica_set parameter has been dropped in Mitaka [1] and has no
effect anymore.
This patch deprecated our interface by sending a warning if the param is
set. If set, it has no effect though, since the param does not exist
anymore upstream.
[1] a6d608a332
Closes-Bug: #1528612
Change-Id: I49123b0f1353e24b217ea6f16f556ab25a6c86b0
Switch to $::os_service_default all params in logging and db.
Changes: logging.pp, db.pp and tests.
Related-bug: #1515273
Change-Id: I412104bf46c4b40fdbd366e3a8a9dc9de5abb5fd
This patch introduce the same design than mysql for postgresql
by requiring dedicated lib::python class instead of declaring
a new resource package within ceilometer module.
Change-Id: Id01849badb4ed5aeae541d0ae7e0d47af5d1f245
In order to standardize the way dbsync are run across our modules,
we create a new class ceilometer::db::sync.
This class will be included if sync_db is enabled.
By making this transition the ceilometer::db::sync can be returned
by the ENC.
A use case would be in an highly available environment, with 3 galera
nodes, include ceilometer::db on every node with sync_db set to false
and have the ENC return ceilometer::db::sync just for one node.
Change-Id: I410f41fb4e61be848372820cdeb2110efc327161
When running MySQL for storage backend, we need to make sure
python-mysqldb is installed *before* the db_sync command, otherwise it
will fail:
"ImportError: No module named MySQLdb".
This patch ensure the ordering to ensure puppetlabs-mysql installed the
package before puppet-ceilometer tries to synchronize the MySQLdatabase.
Change-Id: Iae7c8f24fda32357a61ffa3b8597dd3413c303cb
Some users wish to override the default package provider by their own.
Tag all packages with the 'openstack' to allow mass resource attributes
override using resource collectors.
Closes-bug: #1391209
Change-Id: If43101b9974d26c88f8612da64c5356a644f892e
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins. Most of these plugins are for 4.x compat, but some
just catch common errors.
This commit also remove custom metadata rake task (this task is now
provided by puppetlabs_spec_helper).
Conflicts:
Gemfile
Change-Id: I22369948db6a2f8ddab9b8c93c3a047ff2e229ca
Currently secrets like rabbit_password or os_password are displayed in
puppet logs when changed. This commit changes ceilometer_config type
adding a new parameter that triggers obfuscation of the values in
puppet logs.
Change-Id: I9eb6504220c5337c154bf5ad86c7d22bea64df51
Closes-Bug: #1328448
This patch adds support for the new version of
puppetlabs-mysql via a parameter that will change
which types and classes to depend on from the
mysql module. No spec tests are included since any
tests relying on the new module will fail until
the fixtures are updated.
Change-Id: I3f76cc600ef8d6e0c88c988f96aadbf18d81f7f1
In db.pp, in the exec 'ceilometer dbsync' ressource the user
is supposed to be $::ceilometer::params::user, but it was
not defined.
Change-Id: I812b6ba2877faddfce86d3c97b95772b0d22d368
This commit allows one to configure the db fields without running the actual
dbsync command. It remains compliant with the current implementation, leaving
exec {'ceilometer-dbsync': in the catalog. One, now, can decide if it wants
the dbsync to take place or not.
This is useful when one picks mongodb as a backend and wants to use replicaset
This way it can scale horizontally and painlessly using the initSync feature
of mongodb. With this pattern one can add new member of the replica set
easily.
Change-Id: I8618bb385147176512fbda1540ba75ac95fccbf1
*) Removed the hardcoded postgres package from db.pp
*) Changed the mongo package to python-pymongo for RHEL
Change-Id: Ib975f9ce03ee8ffa423e75b62b595bcdefdd1eed
Signed-off-by: Francesco Vollero <fvollero@redhat.com>
This patch is aim to use new param connection in [database]
section to replace the deprecated option database_connection
in [DEFAULT].
Fixes bug #1222744
Change-Id: I82082b791a4c16eb50092b3a96fb8ae439af4e5b
RHEL/Centos has a different name for pymongo packages. Fedora doesn't
provide python-sqlite2 so we undef that.
Fixes bug 1194141
Change-Id: If03f420c41e518227a1422882842661dfc8edd7e