323 Commits

Author SHA1 Message Date
Zuul
7750d9d2ed Merge "Add support for the interface parameter in authtoken middleware" 2020-07-08 16:43:25 +00:00
Takashi Kajinami
e633bc0ae5 Add support for the interface parameter in authtoken middleware
This patch adds support for [keystone_authtoken] interface parameter,
so that operators can define which endpoint should be used by authtoken
middleware.

Change-Id: I5325bdfbcec13b53b83ac669fb2b91885c370e60
2020-07-08 11:20:39 +09:00
Thomas Goirand
ac5eaeb657 Add a max_stacks_per_tenant parameter
The default of 100 is barely useable. Let's add a new parameter
max_stacks_per_tenant to allow increasing this.

Change-Id: I2bd9ce729b5e2b5ff6577951989b93390cb3a6bf
2020-07-03 02:41:56 +02:00
Takashi Kajinami
1de8cdd7a4 Remove password hash generation in each puppet modules
... and migrate it to openstacklib so that all logics about database
configuration are implemented in one common place.

Depends-on: https://review.opendev.org/#/c/728595/
Change-Id: I1e0061aea6782bd61e745bb39683589794231a5f
2020-05-19 20:00:03 +09:00
Takashi Kajinami
cb148c24b6 Add CentOS8 to nodesets
Change-Id: Icaba85b9bc063c10ff27bf5330f75f9f430c3847
2020-05-10 21:45:39 +09:00
Takashi Kajinami
4e760d477c Use anchor to require necessary packages
... so that correct packages are required according without re-defining
them in resource implementations.

Change-Id: Ia8e6256af44b29b9f3e5aa2ff3c7eeb6e7835a15
2020-05-04 02:21:17 +09:00
Takashi Kajinami
7dd8afd35d Deprecate heat::engione::deferred_auth_method
... because its actual parameter in heat was already deprecated[1].

[1] 9723b0dab707bcedc846415b932b2ade5b7c1317

Change-Id: I782d6b3833f450178ccd34736de4c9f861937399
2020-04-26 22:12:11 +09:00
Zuul
d155f6cb10 Merge "Expect python3 client package in CentOS8" 2020-03-31 22:11:48 +00:00
Zuul
fad1e5af7a Merge "Add support for cache options in specific module" 2020-03-31 15:35:28 +00:00
Takashi Kajinami
ace4e65596 Expect python3 client package in CentOS8
In CentOS, we expect to have python3 client package in 8.x while we
expect to have python2 in 7.x .
Fix unit tests to expect the correct version according to os major
version.

Change-Id: I7cbb56f310187234e753792e684ebcf7792a3b89
2020-03-31 16:34:45 +09:00
Takashi Kajinami
3cbb922235 Add support for cache options in specific module
This patch introduces several parameters in heat::cache class, so that
we can configure caching parameters for specific module.

Change-Id: I752c31825ec3f3f23df01a4d24a633b2453bff19
2020-03-29 08:59:23 +09:00
Zuul
9df2d37e69 Merge "Add server_keystone_endpoint_type param to heat::engine" 2020-03-26 23:37:56 +00:00
Tobias Urdin
093b663165 Add server_keystone_endpoint_type param to heat::engine
Adds the server_keystone_endpoint_type config option [1].

This is available all the way back from Stein and will
therefore be backported.

[1] https://github.com/openstack/heat/blob/master/heat/common/config.py#L99

Change-Id: Ia251802612e7a4cf5c6828f3b7c1a0ef63a3c069
2020-03-25 19:57:12 +01:00
ZhongShengping
1084af6e86 Deprecate min_pool_size option
min_pool_size option is not used,see:

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

Change-Id: Ibd40fed67872c502f54f12c07ebe20fa47089aa5
Closes-Bug: #1868511
2020-03-25 14:53:41 +08:00
Emilien Macchi
9fce8d211e Add vhost_custom_fragment option to wsgi/apache_api
Change-Id: I7da55899b9108daced7adb8f82bdb58fcf97aa09
2020-01-23 10:44:53 -05:00
Zuul
01e6e6681b Merge "Make heat config client_retry_limit configurable" 2019-12-11 08:00:01 +00:00
Rabi Mishra
876a4bddfe Make heat config client_retry_limit configurable
This adds a new parameter to configure client_retry_limit config
to a value higher than the default.

Change-Id: Ibd3999a394c8827efa7a6034e69e55858d2e44ed
2019-12-09 18:09:56 +05:30
Tobias Urdin
5f6411c3dd Convert all class usage to relative names
Change-Id: I9982b8476ca9dab8a338b66db75d6da6519f9266
2019-12-08 23:07:36 +01:00
Zuul
23bd04c02e Merge "Add support to configure service_token_roles in authtoken middleware" 2019-09-23 09:56:18 +00:00
Takashi Kajinami
9b4f933b4e Add support to configure service_token_roles in authtoken middleware
Change-Id: Idca4a0285d818b59920a26080bc594268a826b81
2019-09-21 10:21:36 +09:00
ZhongShengping
5d447cbe87 Introduce the new rabbit_heartbeat_in_pthread option
oslo.messaging RabbitMQ driver have now a new option that allow user to
run the RabbitMQ heartbeat over a native python thread.

These change allow user to use this new option.

Change-Id: Ifa7b63cf0e0f276c4bdfc1b840506303355647b1
Closes-Bug: #1840868
2019-08-21 14:23:36 +08:00
ZhongShengping
1d6872a856 Manage oslo_middleware/max_request_body_size
So that we can increase it from the default 114688

Useful in case for example the OS-Federation mapping is too large.

If this limit is breached heat will return a 413 Entity Too Large
and not log anything to heat.log.

Change-Id: I90f15091088db67e6d33ef6272e59de69c4fe601
Closes-Bug: #1835161
2019-07-04 11:36:38 +08:00
ZhongShengping
169e0ad3ce Change memcache_socket_timeout to a float
see https://review.opendev.org/#/c/519353/

Change-Id: I00f5e43146a0b937d2dfafa080f37c3601eed809
Closes-Bug: #1835162
2019-07-03 15:19:27 +08:00
ZhongShengping
b0fdde53b1 Fix client spec test
Change-Id: Id94c1a3b6980cfedee3950e6151a0d7558457dd5
2019-05-20 11:03:19 +08:00
ZhongShengping
e27652a02b Add openstackclient installation to the client class
The repo is inside the openstackclient plugin commands[1].

[1]https://docs.openstack.org/python-openstackclient/latest/cli/plugin-commands.html

Change-Id: I94d00a6ef9c8949b1de8f12328a8f40dc2ebf7ca
2019-05-17 16:31:17 +08:00
ZhongShengping
0e380a80b1 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: I8022329f612925eaad1efe7d445e584170b04d14
Depends-On: https://review.opendev.org/656106/
Closes-Bug: #1826692
2019-04-28 15:00:09 +08:00
ZhongShengping
778db279f1 Add log_file parameter
Change-Id: I6f8aead40646e54c8cca4a43a10ee0a9dcda09d2
Closes-Bug: #1819417
2019-03-12 13:25:42 +08:00
Tobias Urdin
ac9a56e841 Change keystone v2.0 url to v3
Change-Id: I91decea5388afce37b276c63ae3cb43cae768070
2019-02-24 13:03:46 +01:00
ZhongShengping
532ab0ec88 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: Ia22d5b59adea42c4f3d0792bf83b92fa0e11b0c5
Closes-Bug: 1778198
2019-02-15 10:03:04 +08:00
ZhongShengping
2c9b26482a Fix lint issue
Change-Id: I3195abab6e4253367d8badf1e008778168b55257
2019-01-25 12:23:44 +08:00
Tobias Urdin
ca287bfe48 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: I96eeeeec72ac565f2917e94359c449bab85577db
2019-01-18 10:34:52 +01:00
Lee Yarwood
01ac308d05 Inherit pyvers from openstacklib::defaults
Depends-On: I84b767921d151a61429b2c89e6372c4b447f0d7d
Change-Id: Ic5c4a5e5c50fb0058be94b3ee2ed9ceccb3eafdf
2019-01-17 15:56:35 +01:00
Zuul
ee43f289d8 Merge "Remove deprecated logging" 2018-12-12 04:02:41 +00:00
Tobias Urdin
b84662d7ab Deprecate heat_clients_keystone_uri
The heat_clients_keystone_uri parameter sets the
[clients_keystone]/auth_uri option which does not
exist anymore, see [1].

[1] https://docs.openstack.org/heat/latest/configuration/sample_config.html

Change-Id: I8cf34475aa0868da800bc5f37d20341f755b38a2
2018-11-29 13:09:51 +01:00
Tobias Urdin
2b5f6bc87a Remove deprecated logging
Change-Id: I6cdcfd0eb37444fc7e0fa02c4d875dd28537d6b9
2018-11-29 10:29:44 +01:00
ZhongShengping
d8e1123122 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: I6ed03f77f4a13bab4593b7669b331fc35a68854c
Closes-Bug: #1804562
Closes-Bug: #1804720
2018-11-23 10:22:42 +08:00
Zuul
95b720f7dc Merge "Convert spec testing to rspec-puppet-facts" 2018-11-12 05:59:48 +00:00
Tobias Urdin
ffc4e32f40 Convert spec testing to rspec-puppet-facts
Change-Id: I57fe44d8d6bc03d7560f68024c6af85a09936c92
2018-11-08 13:44:18 +01:00
ZhongShengping
08c50705db Add manage_backend_package parameter
Adds the manage_backend_package parameter that is sent to the
oslo::cache class that determines if we should install the backend
python library for caching.

The default value is not changed and defaults to true same as the
oslo::cache class does.

Change-Id: I44a475711f18b3175ab6e54fa1a83bcd6718a139
Closes-Bug: #1800774
2018-11-01 09:07:35 +08:00
Tobias Urdin
432c51e52a Fix rabbitmq README and cleanup duplicate tests
Change-Id: I0c041685853c20a284233bace8d36b93c29cee07
2018-10-21 22:35:23 +02:00
Tobias Urdin
8ef3646929 modulesync: sync and add nodepool-bionic for beaker
Change-Id: I705e07a6955600b9351477a1abef8d195ec5559b
2018-07-18 16:18:12 +02:00
schegi
ae564bbd7c Deprecate parameter heat_watch_server_url
When support for heat-api-cloudwatch was removed in
I155c92edd5d6959ac23d99804fd95dfb99c7042e the parameter,
heat_watch_server_url, was forgotten. This change marks the
forgotten parameter as deprecated and removes it from the
spec tests and heat config.

Change-Id: Icb9fa01cb37dd15b66fc6f1de183149ff884363d
Depends-On: https://review.openstack.org/581629
2018-07-12 12:32:52 +02:00
Zuul
09e9499c47 Merge "Remove deprecated rabbit params" 2018-05-28 13:46:19 +00:00
ZhongShengping
4e6d5bff11 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: I9c95be8843e51ac69c95d141507d767aa017afbf
2018-05-24 14:07:25 +08:00
ZhijunWei
016e2634c9 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: Ia81c354ea593954e79a0779f222208c027fcdede
2018-05-13 15:05:52 +08:00
zhubingbing
a121fa0bd3 Missing deps for unit test of config.pp
Change-Id: I6cf9b274e8cd7694160a8150385727cb14e4117d
2018-04-19 13:46:19 +08:00
Pierre Riteau
564b1a7234 Change clients_keystone/auth_uri default to public Keystone URL
By default, the ::heat class configures clients_keystone/auth_uri to the
value of ::heat::keystone::authtoken::auth_url, which is generally the
admin endpoint on port 35357.

However, since this URI can be used by non-admin clients running inside
instances, such as os-collect-config, a better default value would be to
use either the public or internal Keystone endpoint, depending on the
deployment. This commit changes the default to the public Keystone
endpoint defined in ::heat::keystone::authtoken::www_authenticate_uri.

It is still possible to provide a custom value using the
heat_clients_keystone_uri parameter.

Change-Id: Idb0f408776ef27f16a522e4443531fd97276669b
Closes-Bug: #1763700
2018-04-14 16:30:55 +01:00
Alex Schultz
8adb596e33 Switch heat-engine workers to use os_workers_heat_engine
Previously the default value for the heat-engine workers setting was set
to $::os_service_default. We usually use our specific facts for the
worker settings so this change switches it to use the
$::os_worker_heat_engine fact.

Change-Id: I6a8d745b76afca1b1958816fa10a3f1dd30face6
Related-Bug: #1763671
2018-04-13 14:47:32 +00:00
Zuul
bbb53148b1 Merge "Deprecate auth_uri option" 2018-04-13 04:03:51 +00:00
Thomas Goirand
da6e5c65a8 Debian is using Python 3
Change-Id: I115e40289781801f40a5cf489e2cc1a43a35da1c
2018-04-10 11:52:40 +02:00