15 Commits

Author SHA1 Message Date
Takashi Kajinami
505c5dbbe4 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

This also fixes the wrong wsgi script name introduced by [1] to fix
broken litmus jobs.

[1] d7a1ea5fb7632e58a69f7dead32c28f1a9419a2e

Change-Id: Idb7d655242ccd6f785ea4dfbb94d8ff3ad961b03
2023-03-02 13:53:25 +09:00
Takashi Kajinami
7d5e85200a Remove deprecated database options
... because these options were deprecated during Yoga cycle[1].

[1] a1f85ce1ef33f2d1f8c9bfe89e84d4f8a32248c0

Depends-on: https://review.opendev.org/842828
Change-Id: I6e7402bacd8ca23abda39d9fb3330cface5da288
2022-05-21 04:31:55 +00:00
Takashi Kajinami
e41f8f7c82 Remove deprecated database_min_pool_size
... because it was deprecated during Ussuri cycle.

Change-Id: I57058f3d7d671177bd842c921621467fb71739bd
2022-02-08 22:38:54 +09:00
Takashi Kajinami
47d8b0f264 Do not validate database_connection format
Currently we validate database_connection in 2 layers, each puppet
modules and puppet-oslo, however this makes it difficult to maintain
validation pattern because we always need to fix both.
This patch removes the validation from each puppet modules so that
we need to maitain only one place, puppet-oslo to update validation
logic.

Change-Id: I6de003300a7efdfca4b38c4b61859891fcc8780b
2020-08-31 17:57:44 +09:00
ZhongShengping
f6d7eb8794 Add mysql_enable_ndb option
Add mysql_enable_ndb parameter to select mysql storage engine.

Change-Id: I36c37be9c17cad076fb261457c5ee5ee3fb50cf7
Depends-On: https://review.opendev.org/#/c/748067
Closes-Bug: #1892952
2020-08-26 11:56:36 +08:00
ZhongShengping
b4fa0d647c Deprecate min_pool_size option
min_pool_size option is not used,see:

https://review.opendev.org/#/c/565090/

Change-Id: I40787084340ec84679d03728c25b5806e56fcefd
Closes-Bug: #1868511
2020-03-25 14:53:41 +08:00
ZhongShengping
c812c3a322 Remove idle_timeout option
The idle_timeout parameter has been deprecated for two releases.
We can remove it.

Change-Id: Ibc0ffde81f97d9b32a48166ff52661f74c296b54
2020-03-23 14:45:49 +08:00
Tobias Urdin
a053d4e86e Convert all class usage to relative names
Change-Id: Ic7b8f4e584e3f1ed1d5c6c568cc6caf67493cdda
2019-12-08 23:24:12 +01:00
ZhongShengping
2cbfbf7d5f Deprecate idle_timeout option
The idle_timeout parameter is deprecated, use connection_recycle_time
instead[1].

[1]https://review.opendev.org/#/c/334182/

Change-Id: Ifb876685e27df60f400105564b62eaf06be30287
Depends-On: https://review.opendev.org/656106/
Closes-Bug: #1826692
2019-04-28 15:00:14 +08:00
Tobias Urdin
880b5e0c1c Use validate_legacy
This changes all the puppet 3 validate_* functions
to use the validate_legacy function.

The validate_legacy function has been available since
about three years but require Puppet >= 4.4.0 and since
there is Puppet 4.10.12 as latest we should assume people
are running a fairly new Puppet 4 version.

This is the first step to then remove all validate function
calls and use proper types for parameter as described in spec [1].

[1] https://review.openstack.org/#/c/568929/

Change-Id: I5d1ebaf9a3b7f6637973ea846d3571c7364feb54
2019-02-23 23:12:52 +01:00
ZhongShengping
064ecaf4be Add pool_timeout option
Add pool_timeout option to configure this value for pool_timeout with
SQLAlchemy.

Change-Id: Ib2413bc9da8eb50e310ca1f1e99c5ea0e708d570
Closes-Bug: #1757581
2018-03-22 11:09:50 +08:00
Alexey Deryugin
b0804e5f8a Use oslo module for logging and database configuration
Additonal changes:

  * switch database related parameters to $::os_service_default
    as they are used in oslo::db
  * update unit tests

Change-Id: I2c79261d8000d68521f783b5df9a535ff47ce53d
2016-04-23 11:56:34 +00:00
Matt Fischer
59f75e6085 Trove external dependency management
Move all dependency tracking to an external class which simplifies the
relationships and allows managing Trove without necessarily using
packages.

This change also cleans up how the client is handled to make
it more configurable and match other modules.

Finally the reference to the deprecated and non-functional
keystone::python class is dropped.

Change-Id: I943685fbeb114dead80b7465b8f5c564a0bc9fe0
2016-03-21 19:42:26 -06:00
iberezovskiy
3c0ac8112e Support of PyMySQL driver for MySQL backend
Add ability to use python-pymysql library
as backend for MySQL connections.
Update acceptance tests to use pyMySQL.
Docs: https://wiki.openstack.org/wiki/PyMySQL_evaluation
The same implementation as it's done for keystone:
https://review.openstack.org/#/c/242134/

Change-Id: I937aa59984e6ff2f7aff28f56ce79e117e5aa0a9
2015-11-24 14:23:21 +03:00
Gael Chamoulaud
7b790cc663 Introduce trove::db class
Change-Id: Id2af304b7924e9a95a2e2ecf63c32f8dfa10f3f8
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-06 09:21:41 +01:00