Commit Graph

127 Commits

Author SHA1 Message Date
Takashi Kajinami d82a354686 Expose rabbit_transient_quorum_queue
Depends-on: https://review.opendev.org/911021
Change-Id: Idc2dc23f294e83ddc67225808c7976d03cc93907
2024-03-14 09:27:55 +09:00
Takashi Kajinami 638aff2a93 RabbitMQ: Add support for quorum queue options
Depends-on: https://review.opendev.org/894866
Change-Id: I97f12ff89e0dab936fb8419dce70412002cfc2c1
2023-09-15 10:35:05 +09:00
Takashi Kajinami 43384d02b1 Remove deprecated client parameters
These parameters were deprecated in favor of the separate classes for
client options[1].

[1] 0d043d793f

Change-Id: I28b7462f2330409b9dee7debba63ce756a0a74b1
2023-06-23 14:32:23 +09:00
Takashi Kajinami da923f2283 Do not autocomplete heat::trustee class
This behavior was deprecated a while ago when the separate class was
added.

Change-Id: Ic3bff87a551262fc9e343217c5c8a933691bc29d
2023-05-15 13:12:00 +09:00
Takashi Kajinami ee09225ba9 Expose executor_thread_pool_size
This option has been supported by puppet-oslo but has not been
configurable.

Change-Id: If4ea3913c5ec9c3719d57b8b682a87816cbaabf7
2023-03-06 13:48:27 +09:00
Takashi Kajinami da45ce8a21 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ib395d70d0d528adfef6600f67f9cd6bb238f8206
2023-03-02 11:31:36 +09:00
Takashi Kajinami 0d043d793f Support more clients configurations
This change introduces support for [clients] parameters and
[clients_<service>] parameters, which determine behavior of service
clients used by heat for communication with the OpenStack services.

- Implementation of heat::clients::<service> are generally same.
  Only cinder, heat, keystone and nova provides additional parameters.

- The existing parameters in the base heat class are deprecated in
  favor of the new classes.

Change-Id: Icdf4f0201dd1e5f93a450473709851977ec20034
2022-04-03 23:22:26 +09:00
Takashi Kajinami ed6e54bf51 Avoid testing details of oslo::messaging(::*)
... so that any change in puppet-oslo would not directly break unit
tests.

Change-Id: Ib6b2dbe5301604dac0f6790843931c6e367dcbec
2022-01-21 10:49:38 +09:00
Takashi Kajinami 6e8b799ba8 Create a separate class to manage the trustee options
This change introduces the new heat::trustee class to manage
the parameters in the [trustee] options. These options have been set
according to authtoken parameters but it makes maintenance complicated
and the logic doesn't work properly when noauth is used.

This change also removes the [trustee] project_domain_name parameter
because the parameter has never been used actually.

Change-Id: I694a8ea771cc4d4dcfbf8384ece2be10d83ab3f0
2021-10-13 22:06:58 +09:00
Takashi Kajinami e79e74cd08 Migrate max_stacks_per_tenant to heat::engine
... because the max_stacks_per_tenant parameter is used by heat-engine,
and the very similar max_resources_per_stack parameter is implemented
in heat::engine.

Change-Id: I57a8e8b9643d999c8ed379895f998ee1d09fb1a8
2021-08-07 00:20:17 +09:00
ZhongShengping bb28a6a9a4 Deprecate allow_insecure_clients option
The allow_insecure_clients has been deprecated[1].

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

Change-Id: Ia08ce1ffa507572f6eff0ad24415802b0b535a13
Closes-Bug: #1902158
2020-11-02 15:25:27 +08:00
Takashi Kajinami 6a8e1b15aa Deprecate database options from the heat class
... because these options have been implemented in the heat::db class.

Change-Id: I5724d843607d958bae9cc897899cd78dddd7cdea
2020-10-20 11:28:11 +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
Tobias Urdin 5f6411c3dd Convert all class usage to relative names
Change-Id: I9982b8476ca9dab8a338b66db75d6da6519f9266
2019-12-08 23:07:36 +01: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
Tobias Urdin ac9a56e841 Change keystone v2.0 url to v3
Change-Id: I91decea5388afce37b276c63ae3cb43cae768070
2019-02-24 13:03:46 +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
Tobias Urdin 432c51e52a Fix rabbitmq README and cleanup duplicate tests
Change-Id: I0c041685853c20a284233bace8d36b93c29cee07
2018-10-21 22:35:23 +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
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
melissaml e812bccbae fix typos in documentation
Change-Id: I88ab31414d4f2072c55b2f4736eaadfb08eee2b0
2018-03-23 06:40:04 +08:00
ZhongShengping 0e3dc29003 oslo middleware: check puppet resource instead of actual config in spec
Change-Id: Ic992b2044a9bf84d7584245df5f77cd252daf458
2018-03-21 11:19:09 +08:00
Sofer Athlan-Guyot 7870a0f8ff Add a parameter to be able to override clients_keystone/auth_uri.
It is usually the same as auth_url which is defined there
$::heat::keystone::authtoken::auth_url.  We can now point this to
another part of the catalog (ie, public vs internal for instance).

Co-Authored-By: Sergii Golovatiuk <sgolovat@redhat.com>
Change-Id: I4429d86d831f49f1bc0fef04379a81ada20b6ab6
2018-01-19 00:35:05 +01:00
Jenkins c62d27e56e Merge "Changed keystone_ec2_uri to be optional" 2017-08-22 22:43:22 +00:00
Daniel Pawlik 2d78f9253d Changed keystone_ec2_uri to be optional
Param keystone_ec2_uri was providing default value. It was raising an
engine service error on ifras where ec2 endpoint was not created.

Change-Id: I48c47a2c59ec89212a45125b373844e340731fd9
2017-08-22 12:20:46 +00:00
Daniel Pawlik 9fb1ab9414 Param rabbit_heartbeat_timeout_threshold should not be 0
Param heartbeat_timeout_threshold by default is set to 60 in oslo module.
We shouldn't set hardcoded value, but take default one.

Change-Id: Id572fd98846f640d88cbb46c4a74f9fd43813d8b
2017-08-22 12:13:27 +00:00
Andrew Smith a28c18cc00 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: I1537c9e0db956d4271c8334a0aa543cd20c57e67
2017-07-26 20:52:06 -04:00
Emilien Macchi 27a4d8a0cc Set endpoint_type to <SERVICE DEFAULT>
Now TripleO sets this value, we can use os_service_default for
the default value and we won't have duplicated resource.

Change-Id: I00a47d6dae5be6ea18d93ac8b47c0c0cc58fe43f
2017-03-29 13:46:29 +00:00
Emilien Macchi b865f447d9 Add support for clients/endpoint_type
Add support for clients/endpoint_type parameter.

Note: Default to False now, because TripleO already sets this resource.
      and we don't want duplicated resource.
      Once we switch TripleO to use this new option, the default will
      become os_service_default.

Change-Id: If707c5623c0e34e9219eeafdafaf0ac42daf5c8d
Closes-Bug: #1675409
2017-03-23 09:20:08 -04:00
Juan Antonio Osorio Robles c9a2f77138 rabbitmq SSL: check puppet resource instead of actual config
The configuration is done via the oslo::messaging::rabbit resource
from puppet-oslo. We should be checking for the resource that we're
using instead of the underlying configuration file.

Change-Id: Ibc69ae286d723ebecf8a86c247cf807ccf0604b4
2017-03-10 15:59:04 +02:00
Juan Antonio Osorio Robles d5ca9fb1b3 Remove checking for rpc_backend
A recent commit removed it from puppet-oslo. We shouldn't be checking it
any more here.

[1] I7ccd995ef01c2d54427684718adba054260fdd52

Change-Id: Ib7e30196d8b336aafc5ce92f7c5d62fe31adc5a8
2017-02-28 16:48:29 +02:00
ZhongShengping bf2d2fe504 Add notification_topics option
Add notification_topics to configure AMQP topic used for OpenStack
notifications.

Change-Id: Ib441d091b87685f3da77e18b7062fa0fdf116751
2017-02-20 20:45:43 +08:00
ZhongShengping 40bfe5ac4a Add control_exchange option
Add control_exchange to configure an exchange name for message.

Change-Id: Iac2f30b5a4a70cd44dce9385256339d67d0f40da
2017-01-28 14:08:11 +08:00
Iury Gregory Melo Ferreira da7bc46203 Remove old authtoken options
Since we are in ocata lets remove all old parameters in api
to configure the keystone_authtoken section

Change-Id: I7f18b79b9107baad78129b098246bd9c931420dc
2016-11-16 00:02:12 -03:00
Mykyta Karpin 7359b5129e Switch heat to rspec-puppet-facts
This change updates the heat tests to use rspec-puppet-facts
to test multiple operating systems.

Change-Id: Ic6e1542d5befba529f753b346ff842ed88d1292e
2016-11-11 13:11:39 +02:00
ZhongShengping 7171d68cc8 Deprecate auth_plugin option
Option "auth_plugin" from group "trustee" is deprecated in Heat.
Use option "auth_type" from group "trustee" instead.

Change-Id: I19024ad7be968c7364dbb8ff94372a168f6f6096
Closes-Bug: #1633282
2016-10-19 08:45:23 +08:00
Dan Prince 0b0f6289e1 Add options to configure yaql settings
Change-Id: Id41001d74ce1008dbb5a98b962d5c53dbf39c903
2016-09-27 11:05:57 -04:00
Jenkins 4d7b5be2e2 Merge "add parameter to configure the name of the node" 2016-09-01 03:22:25 +00:00
Marcus Furlong b0982fa982 add parameter to configure the name of the node
This may required in instances where socket.gethostname() (the default)
does not return an FQDN and an FQDN (or other identifer) is desired.

Change-Id: Ibb86cdcf7e6304eabc1fe165feec9555bfadb32f
2016-08-30 12:51:09 +10:00
Emilien Macchi cd0c068d75 Configure clients_keystone with admin URL
In Heat, [clients_keystone] auth_uri has to be the admin URL even we
would believe not.

It has been confired with how Heat's gate is running with Devstack and
also with TripleO CI currently failing with the current implementation.

Change-Id: I7a9d10b0a8092b3d0c70708b57637098cfe2b56d
2016-08-29 19:03:41 -04:00
Iury Gregory Melo Ferreira 85b55571b8 Move Heat to authtoken
Switch keystone_authtoken parameters for the new class
heat::keystone::authtoken to configure the keystone_authtoken section
in heat.conf.

Some deprecations:
- heat::auth_uri is deprecated in favor of
  heat::keystone::authtoken::auth_uri.
- heat::identity_uri is deprecated in favor of
  heat::keystone::authtoken::auth_url.
- heat::auth_plugin is deprecated in favor of
  heat::keystone::authtoken::auth_type.
- heat::keystone_user is deprecated in favor of
  heat::keystone::authtoken::username.
- heat::keystone_tenant is deprecated in favor of
  heat::keystone::authtoken::project_name.
- heat::keystone_password is deprecated in favor of
  heat::keystone::authtoken::password.
- heat::keystone_user_domain_name is deprecated in favor of
  heat::keystone::authtoken::user_domain_name.
- heat::keystone_user_domain_id is deprecated, use the name option.
- heat::keystone_project_domain_name is deprecated in favor of
  heat::keystone::authtoken::project_domain_name.
- heat::keystone_project_domain_id is deprecated, use the name option.
- heat::memcached_servers is deprecated in favor of
  heat::keystone::authtoken::memcached_servers.

Change-Id: I466558e98176f20743271191df64dc327f0efcc6
Closes-bug: #1604463
2016-08-25 18:08:22 -03:00
Steven Hardy 5b5e0b3211 Remove instance_user tests
The parameter was removed in 3b49812852
and support for it no longer exists in heat.

Change-Id: I64e52ec2fbbe1ab3196247188b21f83ff4ee5973
2016-07-12 14:52:31 +01:00
Emilien Macchi 3ae24a4815 Actually use domain_name parameters
In a previous patch [1] we introduced new parameters to configure domain
name for project & user but the parameters were not used anywhere.
Now they are, and we can deploy Keystone from trunk.
Also modify default values for *_domain_id parameters to use
os_service_default.

[1] 48b80077

Change-Id: Ib4e8590219559d056252924b21b93fd9acd08715
2016-07-04 10:37:40 -04:00
Alex Schultz 21a466b5ca Add memcached_servers for keystone authtoken
This change adds the abiltity to manage the memcached servers for the
keystone authtoken configuration in heat

Change-Id: Ifa1f98607b4c0298a2723765870ef466dbb8447a
2016-07-01 13:06:52 -06:00
ZhongShengping e1c09e7c38 Add purge_config option
Add the option in order to facilitate management.
User can ensure that only the options they hoped
are configured.

Change-Id: I3756c7123fe35dc15da9f0ee526c0039f9e74ad9
2016-06-08 10:47:04 +08:00