Commit Graph

10 Commits

Author SHA1 Message Date
Takashi Kajinami
f7dfc6abff Deprecate customization of PATH environment for db sync
Because we currently support installation by packages, we rarely expect
that users may need to override this option. Drop the parameter to
reduce complexity and make the implementation more consistent across
modules.

Change-Id: Iecf00bd3e241eb0c96b309dc18d0776c381146ac
2024-03-05 20:46:24 +09:00
Takashi Kajinami
317f62a3bc Stop hard-coding config file for db sync
The magnum-db-manage command by default loads /etc/magnum/magnum.conf.
Removing the override allows us to use additional paths such as
magnum.conf.d in the future.

Change-Id: I3efd9b50aace6661409d6dc726b94ec65a6f1410
2024-03-05 20:46:10 +09:00
ZhongShengping
0d0db77050 Allow db sync timeouts to be configurable
As Openstack projects continue to have longer database migration
chains, the Puppet default timeout of 300 seconds for an execution
is becoming too short a duration on some hardware, leading to timeouts.
As projects continue to add more migration scripts without pruning
the base, timeouts will continue to become more frequent unless
this time can be expanded.

Change-Id: I9abb1ed8ea8bdfc4bc4157ff47e86613077a9bd7
Closes-Bug: #1904962
2020-11-23 09:27:52 +08:00
ZhongShengping
7e71317f5b Include deps class in unit test for sync
Change-Id: I04e15a20a3b7120a942955c3a3ea5b36343888b6
2020-10-12 10:46:40 +08:00
ZhongShengping
f9dd363bc2 Add 'openstack-db' tag to db-sync Exec resource
In order to make easy orchestration on all OpenStack db-sync, add this
tag so people can use this tag in composition layer.
A use case it to set some orchestration to make sure MySQL Galera is
ready before running any Exec with this tag.

Change-Id: I632ec1cfcbe6085e27fa215d5d2efdeb625b736a
Closes-Bug: #1755102
2018-03-12 16:33:08 +08:00
Risto Laurikainen
f739aa363b Allow setting of the DB sync command path
The magnum-db-manage command is not necessarily located under /usr/bin
if Magnum is installed in e.g. a virtualenv. In cases like this, it is
useful to let the module user specify a different path, such as the bin
directory of a virtualenv.

Change-Id: I0687683558a4a9ed445642b36b2ce7b7075e49f7
2017-08-03 11:52:23 +03:00
ZhongShengping
c5544a5a66 Add hooks for external install & svc management
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: I7f3f97a54aec888d99c7405310afef8e1f3907f0
2016-12-07 11:18:53 +08:00
ZhongShengping
5dc51ed24e Fix spec test for sync
Change-Id: Iaf39183f02a0bd5e9aa3f17926bdacef5e409d2b
2016-12-01 17:07:35 +08:00
ZhongShengping
fc0d63757f Add magnum user to test magnum::db::sync
Change-Id: Icdb59f2c9608af4096cec1c7c852b6a7fbf198b2
2016-05-19 23:40:10 +08:00
Michal Adamczyk
e941ab51fa Various fixes
- correcting "host_ip" entry to be "host" entry for magnum.conf
- correcting "userid" to be "rabbit_userid" entry inside magnum.conf
- db sync function
- beaker tests are working on Ubuntu as well
- update metadata.json with new openstacklib version
- as we don't have a database parameters in main class we don't want to pickup values from it inside db class

Adding:
- client class with client package installation
- examples folder with example which works with Mitaka release
- spec for db_sync
- adding nodesets spec for CentOS 7.2
- adding class and spec for creating user and domain for trust setup: http://osdir.com/ml/openstack-dev/2016-02/msg02123.html
- class to configure cert_manager_type properties

Known issues:
- In CentOS/RDP cannot create magnum bay due to the neutron issues: https://bugs.launchpad.net/magnum/+bug/1575524
- Trust domain and trust domain user has to be set to ID, not a names. Bug reported to magnum devs: https://bugs.launchpad.net/puppet-magnum/+bug/1581372

Change-Id: Ib923f79da691b5c71bb1c4efba8935c774598888
2016-05-16 07:48:21 +00:00