Commit Graph

66 Commits

Author SHA1 Message Date
Takashi Kajinami 1d4c78a694 Expose rabbit_transient_quorum_queue
Depends-on: https://review.opendev.org/911021
Change-Id: Idb975162d128112aaae1359b5d514cba59d180bf
2024-03-14 09:21:33 +09:00
Takashi Kajinami d241c81b53 RabbitMQ: Add support for quorum queue options
Depends-on: https://review.opendev.org/894866
Change-Id: I2ce794413c7245da8a52468d652e6d28d71f7829
2023-09-15 10:16:50 +09:00
Takashi Kajinami de577f08c9 Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: I2efca4fd863dde8b755c4cf3f6485351b5c4494d
2023-07-18 00:51:06 +09:00
Takashi Kajinami 35f8d7bd98 Expose executor_thread_pool_size
This option has been supported by puppet-oslo but has not been
configurable.

Change-Id: Iec33f81eca912e07d5864bf6f923ac7c09dc530c
2023-03-13 11:50:00 +09:00
Takashi Kajinami dd44ce031e Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ica6edbc7077c0bb2021cc737f44f3ced84cd5f83
2023-03-01 16:49:01 +09:00
Zuul a0bd6bdc92 Merge "Remove redundant hard-coded defaults of oslo.messaging parameters" 2022-08-29 16:32:58 +00:00
Takashi Kajinami 91a6bd2a6f Remove redundant hard-coded defaults of oslo.messaging parameters
These define same values as the default values in the oslo.messaging
library, thus can be replaced by $::os_service_default.

Change-Id: I7da6736c7a47ebdc988bc8e0d7274cba873f72c6
2022-08-28 23:38:59 +09:00
Takashi Kajinami 86766620b8 Add support for [DEFAULT] supported_record_type
Change-Id: I566dca39f9d0d9b85f33a30a593f08000f705baf
2022-08-28 23:35:42 +09:00
Takashi Kajinami 3d68d191e2 Add support for [DEFAULT] default_ttl
Change-Id: I3f53227902caebd6131d2ed4e1f0b5bc1dc2edcd
2022-08-28 23:35:42 +09:00
Takashi Kajinami 54545aacb6 Add support for [DEFAULT] host
... so that users can override this parameter to use static hostname
rather than the one deteted by socket.gethostname().

Change-Id: I909e40692aaa2b7a23a0efe8ff5a0392e8fe7293
2022-08-28 23:35:38 +09:00
Takashi Kajinami 01e72cbb9a Remove deprecated designate::neutron_network_type
The parameter was deprecated during Yoga cycle in favor of the separate
class to manage network_api:neutron parameters[1].

[1] 09a2c6b46c

Change-Id: I31f52fcda46c33bf0163733aece4fd1279f63cc7
2022-08-25 15:53:54 +09:00
Zuul 6274e74a34 Merge "Remove validations of oslo::messaging::rabbit parameters" 2022-01-25 00:48:48 +00:00
Takashi Kajinami 5d7577fa4b Remove validations of oslo::messaging::rabbit parameters
... to defer parameter validation to the resource class itself.

Depends-on: https://review.opendev.org/825699
Change-Id: Ia6d6855c6733f9a68d5a9649f00b87caf525677e
2022-01-21 11:27:06 +09:00
Takashi Kajinami 09a2c6b46c Add an independent class for [network_api:neutron] parameters
... and improve coverage of the supported parameters.

Change-Id: I1c3095561875cfa82e484c69173571ad6ba34428
2022-01-18 07:59:47 +09:00
Takashi Kajinami 1bd74f65ad Allow customizing [DEFAULT] state_path
Change-Id: Id94bbfc8693799e0456c9437c05de6477e8ee0af
2022-01-05 20:05:07 +09:00
Takashi Kajinami 2d759aa912 Remove redundant message to notify configuration change
... because puppet shows its built-in messages notifying the same.

Change-Id: I91c2b828d7cf8f8fe9883009faf4d8f9d8a0b4dd
2021-12-27 21:07:57 +09:00
Takashi Kajinami 0e30dd1220 Update comment to fix lint
manifests/config.pp:7:WARNING: No matching class parameter for
documentation of designate::config::xxx_config
manifests/init.pp:15:WARNING: No matching class parameter for
documentation of designate::service_ensure

Change-Id: Idacc31cf50ce2bc5774a4b3552161e489d0174d4
2020-10-06 01:31:38 +09:00
Tobias Urdin b7f73b35c5 Convert all class usage to relative names
Change-Id: Iae69aff79cc231336b14d65305fff9c64cbd27e0
2019-12-08 23:04:25 +01:00
ZhongShengping 521337906e 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: I3e4d9da942b352d446613c7241539f564b753d64
Closes-Bug: #1840868
2019-08-21 14:23:26 +08:00
Tobias Urdin 22892835e9 Remove deprecated logging
Change-Id: Ie331f058148f79a95bb8343f920654ef7dd5798b
2018-12-01 16:02:51 +01:00
Tobias Urdin 4b71a3b523 Fix rabbitmq examples and comments
Change-Id: I8ec3cd011a5e01332b5776f1b51bcadb72d9ea77
2018-10-21 16:27:46 +02:00
ZhongShengping a04816fa32 Add the default value of $::os_service_default
Change-Id: I6b80d80698267565d86398a0f253383e8fa24dda
2018-10-16 11:01:35 +08:00
Tobias Urdin 25f07ee1e1 Remove deprecated parameters
Removes deprecated parameters that has been
deprecated for one cycle or more.

Change-Id: I01e33221ef4f2c3afd5277dbc3f1787feee31f37
2018-05-22 12:18:55 +02:00
ZhongShengping bae7521e56 Designate/Neutron communicaton failure
Designate communicate on publicURL (Default) endpoint with Neutron.
When TLS is enabled it generates errors (Missing certificate). We
need to ensure designate communicate with neutron on internalURL.

Change-Id: I1474cd23affc6d019d9aa9e847e373fefc431e82
Closes-Bug: #1743509
2018-03-08 09:12:04 +08:00
ZhongShengping 15265bd46f 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: Ia08af6da0976697d65bcc1b55b857b0f4a5742bc
Closes-Bug: #1748353
2018-02-09 14:21:53 +08:00
Rocky 36a58315b1 Add amqp_durable_queues parameter
Change-Id: I3a32fb79030c61b271623f334f26fda85ad8e3fb
2017-09-15 18:23:28 +10:00
ZhongShengping fa62489943 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
* add release note

Change-Id: I8d838a123f4c5147bdbebfcc852da51080ed7982
2017-08-07 13:56:51 +08:00
ZhongShengping 821ef348df Add control_exchange and rpc_response_timeout options
Add control_exchange to configure an exchange name for message.
Add rpc_response_timeout to configure seconds time for waiting
for a response from a call.

Change-Id: I27b7d30bf422cd07b27ff248c7decd744c35427e
2017-01-28 13:42:16 +08:00
Alex Schultz a7695e4a34 Add oslo_messaging_notifications transport_url
Adding the ability to configure the oslo_messaging_notifications
transport_url.

Change-Id: Ia94e8df7fdc8bf0450c6038e46369d88adb6c608
2016-12-14 13:32:09 -07:00
ZhongShengping 1e95f32a6f 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: If9fa188b7dca47e6724a737d66e34c0c85668c36
2016-12-01 08:44:02 +08:00
Alex Schultz 609859b307 Deprecate rabbitmq connection parameters
The rabbitmq connection parameters have been deprecated in favor of the
transport_url setting. Additionally, the configuration has been switched
over to use the oslo::messaging::rabbit resource.

Change-Id: I43500ac7be4296ea534266fa14ca37fc700b0092
Related-Bug: #1625198
2016-11-09 07:43:54 -07:00
Jenkins 0e08f0adcb Merge "Fix documentation for log_dir parameter" 2016-11-04 14:40:07 +00:00
Mykyta Karpin b49fb78563 Fix documentation for log_dir parameter
Change-Id: I57127a32c40c4c47c40a71891b8ea10c2a71d838
Partial-Bug: #1600294
2016-10-10 17:47:40 +03:00
Iury Gregory Melo Ferreira d01eba77e6 Remove verbose
Since we are in Ocata we should remove the
verbose option that was deprecated

Change-Id: Ib9497ddfeafafb58da0fb9bda07bd974e3d90ced
2016-09-27 20:36:07 -03:00
Carlos Camacho c01907f5d7 Fix puppet-lint before upgrading gem
Removing puppet-lint warnings
in favor of upgrading to latest gem

2016-09-13 21:14:07.580653 | manifests/init.pp:168:WARNING: line has more than 140 characters

Change-Id: I3ebac947a33c42299aa48e02b7a80b19fdec1d03
2016-09-14 14:18:23 +02:00
David Moreau-Simard 50c12167f6 Remove POSIX users, groups and files managed by packaging
Both RDO and UCA provide packaging for designate and this packaging
takes care of creating the necessary user/group/directories.

Change-Id: Ic6af7dadb94a9ce22ad924184715b729b36ed16b
Related-Bug: #1458915
2016-07-05 21:30:21 -04:00
ZhongShengping 74037d729f 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: I4722fc674fe04127d825724f95b1d7be9576c4f0
2016-06-12 09:45:23 +08:00
Iury Gregory Melo Ferreira 7f70b7f548 Deprecate verbose option in logging
Option "verbose" from group "DEFAULT" is deprecated for removal.
The parameter has no effect.
-Deprecated verbose for logging and init
-Remove verbose in README
-Remove verbose from tests.
If this option is not set explicitly, there is no such warning

Change-Id: I4b148ae18f5196951f7de2afdff2fe815becfdb6
2016-05-18 23:21:05 -03:00
Arnoud de Jonge 779a18f23c Added SSL parameters for Rabbit
Added rabbit_use_ssl and kombu_* parameters to configure Rabbit over
SSL.

Change-Id: I198a099b33393fa72288510a8d9e8723dea6d105
2016-02-05 14:24:54 +00:00
Xingchao Yu 681250724c Remove pick for managing package name.
Change-Id: I861b7bfab076def6106df1a64e6479684f96a448
2016-01-14 04:10:23 +08:00
Andrew Spiers 0e9af4aee3 Configure rabbit_virtual_host
Designate uses oslo messaging, which looks for a value for
rabbit_virtual_host. This changes the module to configure this
setting instead of the unused
rabbit_virtualhost setting.

Parameter changes:
    rabbit_virtualhost:  Previously wrote a config setting of the
                         same name, which did nothing. Now emits a
                         warning and sets rabbit_virtual_host.

    rabbit_virtual_host: New parameter which sets
                         rabbit_virtual_host.

Change-Id: I8eb9b72812c00721886246406d668bbb2e6c1a93
Closes-Bug: 1515495
2016-01-06 15:17:44 +11:00
Denis Egorenko 5f8209f4ec Change section name for AMQP rabbit parameters
According to docs for liberty and kilo [1,2] should be
section 'oslo_messaging_rabbit' instead of 'DEFAULT'.

[1] http://docs.openstack.org/liberty/config-reference/content/configuring-rpc.html
[2] http://docs.openstack.org/kilo/config-reference/content/configuring-rpc.html

Change-Id: I6aa2b58d39d5089f97c4ab5dc7a03c2222b12640
2015-10-21 16:18:22 +03:00
Yanis Guenane 0c9951934b Put all the logging related parameters to the logging class
Currently logging configuration is splitted in two distinct classes,
the init.pp and the logging.pp classes. This review aims to centralize
all logging related parameters in a single class, the logging.pp one.

The impacted parameters are :

  * use_syslog
  * use_stderr
  * log_facility
  * verbose
  * debug
  * log_dir

This change remains backward compatible with what is currently in place.

Change-Id: I654f77d9c18401537f738d054d8e6be529d25fa2
2015-10-01 08:59:55 +02:00
Xingchao Yu 2dd7a9a0ee Use generic_service to manage services
This patch introduces designate::generic_service which is already
exists in other modules to manage designate packages and services.

Change-Id: Ic05539fbbcfb88ed95f35d5eb5ca95b7f7141ed1
Close-Bug: #1486860
2015-08-21 18:19:04 +08:00
Xiaohua Yuan cecf224184 Add notification related parameters to designate
This patch is aim to following params in designate::init

 - notification_driver
 - notification_topics

Change-Id: I92bea9449fbeee4f0cee53665a4037c2861d276f
Closes-Bug: #1481552
2015-08-04 19:13:12 -07:00
Clayton O'Neill 5a37cc8127 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: I2b5707a0fe3dd72a56bbf1d840b4197bfa3012db
2015-07-17 14:25:04 -04:00
Clayton O'Neill 93b35a93c1 Add support for RabbitMQ clustering
This adds support for the rabbitmq_hosts configuration option, which if
specified will also turn on rabbit_ha_queues.  This is needed if using
RabbitMQ in clustered mode.

Change-Id: I16001fba7198f0378c31310389b407b832ad6328
2015-06-19 14:41:28 +00:00
Gael Chamoulaud 572482ab24 Tag all Designate packages
Some users wish to override the default package provider by their own.

Tag all packages with the 'openstack' to allow mass resource attributes
override using resource collectors.

Closes-bug: #1391209

Change-Id: Idcd296c754c4c66efcbdd1672c8367ce3539b268
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-03-31 10:32:19 +02:00
Clayton O'Neill 4ce3c0558b Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins.  Most of these plugins are for 4.x compat, but some
just catch common errors.

Change-Id: I3b16baf063746024cb8dc89a931dae2f604258f6
2015-02-17 14:53:22 +00:00
Jenkins b6c463a595 Merge "Make all package name and ensure customizable" 2015-02-16 11:04:47 +00:00