Commit Graph

153 Commits

Author SHA1 Message Date
ZhongShengping
ff52d5f8a5 Deprecate pki related options
check_revocations_for_cached and hash_algorithms are deprecated for
removel because of PKI token format is no longer supported.
Update warning message and add a release note.

Change-Id: Ic360bd95c3cf542ca2833e366102950cecd7ef5b
Closes-Bug: #1804562
Closes-Bug: #1804720
2018-11-23 10:23:57 +08:00
Zuul
7e91b74d24 Merge "Replace port 35357 with 5000" 2018-06-25 09:30:08 +00:00
ZhongShengping
fdf5145eb6 Remove deprecated rabbit params
Remove the deprecated rabbit params which has been deprecated for
two years. The default_transport_url has been present for a while
now and should be used.

Change-Id: I0e220dddaac2cf35b84ba1d3cfcc0fe587acbbaa
2018-05-28 13:38:35 +08:00
Zuul
70b9cde131 Merge "Deprecate auth_uri option" 2018-05-15 19:16:32 +00:00
ZhongShengping
4e3341f589 Deprecate auth_uri option
Option auth_uri from group keystone_authtoken is deprecated[1].
Use option www_authenticate_uri from group keystone_authtoken.

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

Change-Id: If7049561c6a9e94fc5074112db9597cd8cb6996e
Depends-On: I4c82a63baabd6b9304b302c97cd751a0103d8316
Depends-On: I0dd36ef1f1f5dcdc57413736ecb8f2555712c36d
Closes-Bug: #1759098
2018-05-15 12:20:31 +02:00
ZhijunWei
35fc44fb95 Replace port 35357 with 5000
Now that the v2.0 API has been removed, we don't have a reason to
include deployment instructions for two separate applications on
different ports.

Change-Id: I6267a1b6189601e117d28be342864688d3522aa6
2018-05-13 15:10:23 +08:00
zhubingbing
9efdcbdad2 Missing deps for config.pp unit test
Change-Id: Ic36c7fb52b7badd54985cd7552488966985d0526
2018-04-19 13:57:24 +08:00
zhubingbing
1dfb0d428b Debian is using python3-troveclient
Change-Id: Ie5c525b42ff29f212d9e0b2de43c9a8dc93b2232
2018-04-12 13:30:44 +08:00
ZhongShengping
0d8382175a Add glance_service_type option
Add trove::glance_service_type option to configure glance service
type to use when searching catalog.

Change-Id: I14d137a06c793eba3cdff6f9d2776fa7f987dc40
2018-03-28 11:40:59 +08: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
ZhongShengping
90863dce61 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: I7baded10a128532f7267903fa8d14f576cd9f47a
Closes-Bug: #1755102
2018-03-12 16:33:10 +08:00
ZhongShengping
0763133219 Add endpoint_type options
Add trove::nova_compute_endpoint_type, trove::neutron_endpoint_type,
trove::glance_endpoint_type, trove::cinder_endpoint_type,
trove::swift_endpoint_type, trove::trove_endpoint_type options to
configure endpoint type to use when searching catalog.

Change-Id: Iba9d4033d4b5267c4b2a326499364ac44d89400a
2018-02-14 08:32:00 +08:00
Zuul
d33c0265c9 Merge "Add kombu_failover_strategy option" 2018-02-13 20:28:55 +00:00
ZhongShengping
ccf6a66e1f Add kombu_failover_strategy option
Adds the kombu_failover_strategy option for configuring
oslo.messaging.rabbit. This will determines how the next RabbitMQ node
is chosen in case the one we are currently connected to becomes
unavailable.

Change-Id: If59b301e533a509051876ed88f410c5101425ec2
Closes-Bug: #1748353
2018-02-09 15:05:28 +08:00
ZhongShengping
578556bdb4 Deprecate heat_service_type option
This patch[1] removed heat related support.

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

Change-Id: Ic81a9c0033d7f6bddb23f131954b57e608b3bb45
Closes-Bug: #1743713
2018-02-07 10:59:17 +08:00
ZhongShengping
6dc198fe4e Add use_journal option for logging configuration
This enables oslo.log to pass logging records to journald.

Change-Id: I36d78d2642ee7b2dbaa1256e69dbd963696dd8e3
2018-01-15 17:37:10 +08:00
Emilien Macchi
6941810418 Add group to policy management
The move of policy.json into code means the file may not exist. We've
added support to ensure that the file exists in the openstacklib but we
need to make sure the permissions are right for each service. This adds
the group information to the policies so it works right.

Change-Id: I3c680647c310ad87bb5fb790675a16da784e6e27
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2018-01-11 15:53:16 +00:00
ZhongShengping
b10d37ccbd Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: I725a38c71f199dd33aeb0f5f54af5164afc00998
2017-11-28 09:45:05 +08:00
Alfredo Moralejo
aa57603fb4 Force trove_auth_url to point to the v3 api URL
After removing keystone API v2, trove requires that
trove_auth_url parameter has the v3 URL. Note that
versionless url is not valid for trove_auth_url so
this patch enforces v3 url even when auth_url is
not versioned.

Additionally, the default value for auth_url parameter
has been updated to point to v3.

Change-Id: I8d0e200958c813101d72e180c6da8343b5fcae6e
2017-10-20 09:55:39 +02:00
ZhongShengping
a54b81c779 Configure *_domain_name to Default by default
Keystone v2.0 API was removed so we have no choice but configuring
user_domain_name and project_domain_name otherwise it fallbacks to
Keystone v2.0 and it fails. This patch sets the default value so we make
sure Keystone v3 will be used out of the box for our users.

Change-Id: I4d2a5620e7a4dc5c5fddabd3da0299e0f2211102
2017-10-13 14:44:08 +08:00
ZhongShengping
2d905626da Deprecate revocation_cache_time option
The revocation_cache_time is deprecated for removel because of PKI
token format is no longer supported.
Update warning message and add a release note.

Change-Id: Ib4030f83a9201155e5168c164d257a14b9da16e0
Closes-Bug: #1717144
2017-09-14 11:58:05 +08:00
Andrew Smith
6e1a56adb1 Deprecate oslo.messaging rpc_backend option parameter
Oslo.messaging uses the transport_url to represent the rpc and
notification messaging driver to use and its full configuration. The
rpc_backend configuration option is deprecated for removal and
should not gate oslo.messaging driver configuration options.

This patch:
* deprecate rpc_backend
* remove conditional check
* update spec tests
* add release note

Change-Id: Idbd5c231d85a0f4d249dabd14bc829844ee3e83d
2017-07-27 12:14:53 -04:00
ZhongShengping
331c0100b4 Fix unit test
The db_backend_package name has changed in puppet-oslo[0], so fix it.

[0]: https://review.openstack.org/#/c/467582/

Change-Id: I5b0f577949b8dfd91575a44a39153a8377fda905
Closes-Bug: #1693403
2017-05-25 11:35:25 +08:00
ZhongShengping
f92817c91d oslo policy: check puppet resource instead of actual config in spec
Change-Id: Ic72db18a8dc8b0c7448436290decb1c975047de2
2017-05-23 15:28:12 +08:00
ZhongShengping
264da12ac7 Add unit test for sync.pp
Change-Id: I9ac96d91693eaf066e4674a63199286063ef6f28
Closes-Bug: #1689241
2017-05-08 15:47:43 +08:00
Andy Botting
64b2ca9a5e Separate out api/taskmanager config settings
This commit removes config settings for the API that were set
from within the taskmanager class, and moves them into the API.

This fixes the issue where some neutron settings didn't get
set in the api config file when the api and taskmanager were run on
separate hosts. Specifically, API requests will now return the IP
address of the DB instance when Neutron is used.

Change-Id: I370f137ce12fedb527f1ae7adc013e1dac4dbffe
2017-04-12 03:08:18 +00:00
ZhongShengping
3705c795af oslo db: check puppet resource instead of actual config in spec
Change-Id: I4a0a8cb9e4b9e64091ea6a2d09f9e999720735ca
2017-04-11 14:31:09 +08:00
Mykyta Karpin
ca278bdf0c oslo log: check puppet resource instead of actual config in spec
Change-Id: I4c67e4be0ebca8731fa37ddfa948d7c07c487685
2017-04-03 14:48:29 +03:00
Jenkins
4d2d638ad1 Merge "Fix typo" 2017-03-15 21:49:16 +00:00
ZhongShengping
97f9ee66ca Fix ci
The review[0] is merged, we should update other releated
puppet modules in order to fix ci.

[0]https://review.openstack.org/#/c/444248/

Change-Id: Icbf1cdd0eaa7944dc2331d64a70e18cd1030ee15
Closes-Bug: #1672362
2017-03-13 21:54:40 +08:00
ZhongShengping
ab05262dbf Fix typo
Change-Id: I84666f180f512ae555e410c7400d0849e8907a50
2017-03-13 20:22:50 +08:00
Andy Botting
7fdbe6e50c Add support for single tenant mode
Single tenant mode creates all DBaaS resources in a given tenant,
rather than the default, which is to use the users own tenant.
It relies on the nova_proxy_admin_* vars for this.

This commit adds a new trove::single_tenant_mode variable, when set
to true, sets up the remote_(nova|cinder|neutron)_client config
vars in the each of the config files for this mode to be enabled.

Change-Id: Ic59bd227fff893c705931ced3add636844533d35
2017-03-09 12:51:15 +11:00
Alex Schultz
3df5ea37db Remove rpc_backend check for amqp
I7ccd995ef01c2d54427684718adba054260fdd52 removed the rpc_backend
declaration for amqp so we need to stop checking for it in the unit
tests.

Change-Id: I05e3252940889831b11245fc8c4df1a94b0505bc
2017-02-28 08:20:46 -07:00
ZhongShengping
370c0bf8fa Add rpc_response_timeout option
Add rpc_response_timeout to configure seconds time for waiting
for a response from a call.

Change-Id: Ib107713d8b2cc137e11c3d478f14f8a4f4d034a3
2017-02-08 11:35:26 +08:00
Shaik Apsar
ca075e0a9c Add backup_aes_cbc_key parameter
This patch will provide an option for configuring
custom value to the backup_aes-cbc_key parameter
in guestagent configuration file.

Closes-Bug: #1659875

Change-Id: I51a8176c7df4ee80fcf999c37143842f2fdc69ad
2017-01-27 15:01:50 -05:00
Matthew J. Black
1266a13ba0 Allow python-memcache install from authtoken class
The python-memcache package is required if using memcached. By
default the package is not installed and the define has it set to
false. This change allows managing the python-memcache package
install from the authtoken class.

Change-Id: Iee2b5a00c9eb026a42ebd4bf166d06f6bc5f6e27
2017-01-11 18:08:54 -05:00
ZhongShengping
160d44ab51 Deprecate signing_dir option
The signing_dir is deprecated for removel because of PKI token format
is no longer supported.
Update warning message and release note.

Change-Id: I91803e5f2c674e284657bbd40ea32b349a8f393f
Closes-Bug: #1652700
2016-12-28 14:36:31 +08:00
Jenkins
3beaf12a98 Merge "Deprecate rabbitmq connection parameters" 2016-11-22 01:25:38 +00:00
Jenkins
29c19ff637 Merge "Update tests to use rspec-puppet-facts" 2016-11-12 01:32:21 +00:00
Alex Schultz
8bf2f8c394 Deprecate rabbitmq connection parameters
The rabbitmq connection parameters have been deprecated in favor of the
transport_url setting.

Change-Id: I901eee39ae7da6164320f908a2719b8e35d46172
Related-Bug: #1625198
2016-11-09 07:56:02 -07:00
Iury Gregory Melo Ferreira
287ef4dfe2 Remove old authtoken options
Since we are in ocata lets remove all old parameters in api
to configure the keystone_authtoken section

Change-Id: I2ad9c559768324cb494bcbe719195817b3ca4864
2016-11-08 01:11:16 -03:00
Jenkins
1032a9e41e Merge "adding taskmanager_manager entry to define Trove taskmanager entry point" 2016-11-04 17:23:02 +00:00
Alex Schultz
e8be948eb7 Update tests to use rspec-puppet-facts
This change updates the tests to properly use rspec-puppet-facts and
on_supported_os.

Change-Id: Ia96c837440b1df3785d9abfd3a3ac8bfdf21c9ab
2016-10-26 08:19:13 -06:00
Jenkins
258a6bbfe8 Merge "Change worker defaults to ::os_workers" 2016-10-18 19:07:10 +00:00
Riccardo Pittau
483c1ff63c adding taskmanager_manager entry to define Trove taskmanager entry point
Change-Id: I287fdc10518024abad0003b9fffa25a1c7f5d6c0
2016-10-14 15:34:04 +02:00
Alexey Deryugin
3cb02d8768 Make swift_service_type configurable in guestagent.conf
Change-Id: Id167b0dcf68fc6d9b211ecb9c6acbfaf4b1afead
Closes-Bug: #1569658
2016-10-11 16:31:21 +03:00
Maksym Yatsenko
86221d0df0 Change worker defaults to ::os_workers
This patch changes the default worker count from ::processorcount to the
new ::os_workers fact. ::os_workers is based on the number of processors
(currently cpu/4) but is capped at a maximum of 8 worker processors.
This is a much more reasonable default in general and prevents excessive
resource consumption on systems with a large number of CPUs.

Change-Id: Idfd8e3f4fe91df7d70e8c35a491c076b0b8f2348
2016-10-08 02:07:19 +03:00
Jenkins
8f9f696708 Merge "Configure keystone authtoken options" 2016-08-25 22:07:10 +00:00
Matt Fischer
e2729f0fa8 Policy support for Trove
Trove is adding policy support, since it's not yet released (landing in
Newton) this code will not auto-include the policy class as other
modules do. That will be done later after all distros support a Trove
version with a policy.json file.

Change-Id: Iae8f8bf341ae17190676c524444600e660420e46
2016-08-24 11:17:23 -04:00
Alexey Deryugin
b51e789701 Configure keystone authtoken options
In trove::api, use keystone::resource::authtoken to configure
keystone_authtoken section in trove.conf, with all parameters required
to configure keystonemiddleware.
This patch will allow to deploy Trove to use Keystone v3
authentification.

Some deprecations:
- trove::api::keystone_tenant is deprecated in favor of trove::keystone::authtoken::project_name.
- trove::api::keystone_user is deprecated in favor of trove::keystone::authtoken::username.
- trove::api::keystone_password is deprecated in favor of trove::keystone::authtoken::password.
- trove::api::identity_uri is deprecated in favor of trove::keystone::authtoken::auth_url.
- trove::api::auth_uri is deprecated in favor of trove::keystone::authtoken::auth_uri.

Change-Id: I808ebda1c4ec3a5b2ed294eb8af4eecafa861051
Closes-Bug: #1604463
2016-08-23 22:08:04 -03:00