146 Commits

Author SHA1 Message Date
ZhongShengping
6390054934 Add log_file parameter
Change-Id: Ib4c8bc9d75317c742ee845db889ce5cd07041144
Closes-Bug: #1819417
2019-03-12 11:06:20 +08:00
ZhongShengping
d3b2dd80ab Service_token_roles_required missing in the server config file
Service_token_roles_required missing in the server config file which
allows backwards compatibility to ensure that the service tokens are
compared against a list of possible roles for validity.

Change-Id: I75c8036cfd0e538309f11284a087753c50d12394
Closes-Bug: 1778198
2019-02-14 17:27:04 +08:00
ZhongShengping
9849c4803c Fix lint issue
Change-Id: If85594b769fbbc96d3b6ad27ab4bb31170c31faf
2019-01-25 12:23:42 +08:00
Tobias Urdin
758c0dd90e Remove redundantly tested code
Remove code that is redundantly tested.

This should not be tested here but in puppet-oslo
where this logic resides.

If we keep this and we do changes in puppet-oslo we
will break these unit tests, this is something we need
to sort out for all modules.

Change-Id: I946583c1f348e57d1738d30db7f48ccf80e27e48
2019-01-18 11:59:45 +01:00
Lee Yarwood
abbef3e120 Inherit pyvers from openstacklib::defaults
Depends-On: I84b767921d151a61429b2c89e6372c4b447f0d7d
Depends-On: I6769ae262cbe112c63c14b43acbbcdff13ea5e16
Change-Id: I65bd5fe3660afb218ffdab9837f42ea322307e61
2019-01-17 15:32:15 +01:00
Tobias Urdin
d8f602d631 Remove deprecated logging
The logging should be set in the logging class.

Change-Id: Ibf2d5ee85913aa45c5e47ec8d713f7d252c9c6b3
2018-12-01 15:59:50 +01:00
ZhongShengping
768fa0661c 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: If6988f9cdf4e3edc825b6f9dbfcdb24155458e51
Closes-Bug: #1804562
Closes-Bug: #1804720
2018-11-23 10:17:51 +08:00
Daniel Pawlik
fb8128d0db Added missing slave_connection param
Slave_connection was available in main class, but it doesn't
configure service correctly.

Change-Id: I7a585c5481b80e5e0d12ad97271632c2abada1c1
2018-07-20 10:44:21 +00:00
Tobias Urdin
76c94fc154 modulesync: sync and add nodepool-bionic for beaker
Change-Id: I99680ec11175d6b2b7ee4291c9a6f1446d19a578
2018-07-18 16:17:01 +02:00
Zuul
0a08281fa0 Merge "Deprecate aodh::gnocchi_url as it has no effect" 2018-07-10 03:50:56 +00:00
Zuul
fccf5331e0 Merge "Fix explicit endpoint configuration" 2018-07-10 03:50:55 +00:00
Matthias Bastian
a4f6673a02 Fix explicit endpoint configuration
When trying to specify the endpoint type in the identity service catalog
to use for communication with OpenStack services an outdated
configuration option was written: endpoint_type was replaced by
interface in aodh.

This change therefore also deprecates the aodh::auth::auth_endpoint_type
parameter in favor of a new aodh::auth::interface parameter.

Change-Id: Ifca3ddc47e02752dcf8503e5691005382bb6073c
2018-07-06 14:19:48 +02:00
Matthias Bastian
3d4f500e6f Deprecate aodh::gnocchi_url as it has no effect
Usage of the gnocchi_url configuration option was removed from aodh in
I41ef467750a403841ad96bfa7607ad63bd55702d.

Change-Id: I49f9c44adb3d0dfabfbb701d41c99a8267bed5cf
2018-07-06 14:19:04 +02:00
Matthias Bastian
7d240874e0 Deprecate aodh::api::host and aodh::api::port
Both have no effect as aodh-api does not read them as of
Iefd6f4d9f76c69ed9b49483e1feda0b7dbe2cb81.

Change-Id: I0da4dc1ba52bae5becd5e2a9c0f008cbe2907446
2018-07-06 14:16:48 +02:00
Zuul
47c6327822 Merge "Replace port 35357 with 5000" 2018-05-30 03:14:19 +00:00
Tobias Urdin
bf5d06f640 Remove deprecated parameters
Removes deprecated parameters that has been
deprecated for one cycle or more.

Change-Id: Iaf45947643b0fb6495fa44c6410a7e6e98aac197
2018-05-19 23:44:56 +02:00
caoyuan
61d07624ce 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. This change updates the guide to be consistent with
recent changes to the ubuntu packages:

https://git.launchpad.net/~ubuntu-server-dev/ubuntu/+source/keystone/commit/?id=915d787af42096b0fad715e49759cd357e47787e

Change-Id: I555e3559af1f8db9a14e0667969327ea06903c21
2018-05-12 14:55:14 +00:00
zhubingbing
fc5e618d21 Missing deps for config.pp unit test
Change-Id: I2d3c1ed60b42314c85be76adef2ee00a048dea85
2018-04-19 09:19:59 +08:00
Zuul
5bf175b49c Merge "Deprecate auth_uri option" 2018-04-13 03:55:27 +00:00
Thomas Goirand
12ade99544 Debian is using Python 3
ACK Debian's switch to Python 3

Change-Id: I2f88ba6a6ecd18f9d2719fff869045f4c5b9be69
2018-04-10 20:53:11 +02:00
ZhongShengping
f1237a940d 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: I89f82693b22cc61c97f9df3fbbd2bdbfe482f549
Depends-On: I4c82a63baabd6b9304b302c97cd751a0103d8316
Closes-Bug: #1759098
2018-04-04 16:08:01 +08:00
ZhongShengping
c0518d8082 Use the pbr generated wsgi binary file located in binary folder
Since pbr 1.4.0, wsgi_scripts entrypoing is supported and it will
generated a wsgi compatible binary file.
Not yet supported on Debian systems.

Change-Id: Ie9b0fe1b7923dbf68db665982eb6003c83c0b4a8
2018-03-26 16:48:04 +08:00
Zuul
bc81160769 Merge "Add pool_timeout option" 2018-03-23 18:35:48 +00:00
melissaml
943345ece1 fix a typo in documentation
Change-Id: I0c89f0630701fce3e2c97f53080f48ef6084d687
2018-03-23 06:25:58 +08:00
ZhongShengping
261f5649ae Add pool_timeout option
Add pool_timeout option to configure this value for pool_timeout with
SQLAlchemy.

Change-Id: Id6e7a30c6a94d6bf10ed924003dcf672e331c647
Closes-Bug: #1757581
2018-03-22 10:34:07 +08:00
ZhongShengping
f4d814f5d4 oslo middleware: check puppet resource instead of actual config in spec
Change-Id: I8871163c877ecd5c79e254d3d2643c7dcdc85cc8
2018-03-21 11:09:14 +08:00
ZhongShengping
18db7cd4b4 Switch acceptance tests to use integration classes
Change-Id: I4f21dff29d557474302b233fc40e6c6bfc219987
2018-03-14 10:37:11 +08:00
ZhongShengping
d411323255 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: I8215df855b260b9421df121d136be2e77eab1346
Closes-Bug: #1755102
2018-03-12 16:33:05 +08:00
ZhongShengping
7c8720ede8 Add some kombu options
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: I8c44d54bdefc22bd30d0bc35486354b09611680a
Closes-Bug: #1748353
2018-02-09 13:46:45 +08:00
ZhongShengping
60e55b7255 Add use_journal option for logging configuration
This enables oslo.log to pass logging records to journald.

Change-Id: I3289fae9f08607767f7cf2be78a4f6eac512f963
2018-01-15 15:22:11 +08:00
Emilien Macchi
a36dca7216 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.

Depends-On: I26e8b1384f4f69712da9d06a4c565dfd1f17c9ed
Change-Id: I26091326a1b50e977612a2b34a03bf8a938bfb33
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2018-01-10 14:22:13 -08:00
Juan Antonio Osorio Robles
a4e2b53a70 Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: I2b5c6ac36e7c4fb37dbd69f7386c9ac9a99956c2
2017-11-27 12:47:10 +00:00
ZhongShengping
893a54e984 Switch to use keystone v3
Keystone v2 api's are removed in [1], so it's required
to use keystone v3 otherwise all requests fallbacks to
keystone v2.0 and fails.

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

Change-Id: Ie2794d5fb12785e7c620c4ec8e3ccc2fb64d9e3b
Closes-Bug: #1723838
2017-10-31 04:12:32 +00:00
Zuul
ed70d3b682 Merge "Allow setting log files for apache vhost" 2017-10-21 21:00:15 +00:00
Juan Antonio Osorio Robles
fb86336bf7 apache wsgi: Exchange defaults for workers and threads
Due to Python's GIL [1], we can't use multiple threads for running
OpenStack services without a performance penalty, since the execution
ends up serialized, which defeats the purpose.

Instead, we should use several processes, since this approach doesn't
have this limitation.

[1] https://wiki.python.org/moin/GlobalInterpreterLock

Change-Id: I3aa3757a991d4437d0921cb55c1d08b5c9179de1
2017-10-13 08:47:48 +00:00
Juan Antonio Osorio Robles
d262e03ec9 Allow setting log files for apache vhost
This allows the setting of the error and access file logs, as well as
the access log format. This was done in a similar fashion as one can
configure these ones in the keystone wsgi manifest.

Change-Id: I0e42e5edacc10060c2906f21fd907845cda203a4
2017-10-12 04:14:32 +00:00
Jenkins
061a963e3e Merge "add parameter to overwrite/add wsgi process options" 2017-09-21 02:12:51 +00:00
Benedikt Trefzer
5e0be79f84 add parameter to overwrite/add wsgi process options
Add parameter to apache_wsgi to allow overwrite
and/or add additional wsgi process options.

This possibility was added to openstacklib
with Change-Id: I41914ce3361988d5db1695f09d21209772fdf548

Change-Id: I93e1d46e1f7c3121f866251620bf88435d4084d1
2017-09-19 14:17:31 +02:00
ZhongShengping
c477791fc9 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: I18389ff125c9f116b0f0682371698473e6974ac2
Closes-Bug: #1717144
2017-09-14 10:51:20 +08:00
Sam Morrison
6a0225617f Support setting paste_config setting on api.
Change-Id: I65ce3da1c8af997e0a659e0e65daab6ef645b8fa
2017-08-18 14:52:02 +10:00
ZhongShengping
f7c20d6bad Fix unit test
The rpc_backend option has been removed in puppet-oslo[0], so we should
remove it.

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

Change-Id: I2899da67ed9da1497904f41f6fa38d59e10a4cf9
Closes-Bug: #1708976
2017-08-07 11:54:53 +08:00
Andrew Smith
c194351429 Remove rpc_backend conditional for oslo.messaging driver options
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: Id779b3cc169bee0d30ae16b37a6e03004b2e0dcc
2017-07-26 13:56:45 -04:00
Mehdi Abaakouk
03bd82ca15 Configure the Ceilometer project name
This change configures the Ceilometer project name.

This allow to use Aodh and Gnocchi alarms as non admin user.

Change-Id: I8b8328a87997a3ba4e15bd711d266b564153a2d3
2017-07-18 16:23:23 +02:00
Alex Schultz
6d1d70ac8b Fix unit tests
The unit tests were broken by a change to openstacklib
Id09c3358c5843510e6a2a8c0e2d4aeb3607e098b which renamed some of the
resources in the openstacklib classes. The problem is that our tests in
this module should not have been testing what occurs within openstacklib
so this fix updates the tests to only check what we are doing within
this module.

Change-Id: I0daf11f459ceffecd53a1291a700bb7fcfa21483
Depends-On: I9d535ab38afea852559df2b3073bd4b74a2a3947
2017-07-13 15:12:57 -06:00
Mehdi Abaakouk
131a8be8be Allow to configure evaluation interval
This change allows to change the period of alarm evaluation cycle.

Change-Id: I0d6ffe6b2682dc94c4252727c0a42c53c22ccbd2
2017-07-12 08:39:18 +02:00
ZhongShengping
681e348f6d Missing some parameters to test in db.pp
Add max_pool_size and max_overflow options to test.

Change-Id: I47c6554cc9c21c4e93917725b9e1aa2be7e7a026
Closes-Bug: #1694871
2017-06-01 10:00:38 +08:00
ZhongShengping
c97e1eb123 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: Id13a756cd8b2aace71c47d7d061e77e6cc1dfcf6
Closes-Bug: #1693403
2017-05-25 10:57:30 +08:00
ZhongShengping
f851057b7e oslo policy: check puppet resource instead of actual config in spec
Change-Id: I04ba39feb1667a9d308ecbea87072be522124497
2017-05-23 11:07:35 +08:00
ZhongShengping
18b75c43fc oslo db: check puppet resource instead of actual config in spec
Change-Id: Ia35109a32bd642408aab8c5069dd9cf7d08fb102
2017-04-08 11:19:45 +08:00
Mykyta Karpin
2122bffd63 oslo log: check puppet resource instead of actual config in spec
Change-Id: I573d9090874e39ae769aee520a468dc6e70583a1
2017-03-16 18:40:39 +02:00