Commit Graph

22 Commits

Author SHA1 Message Date
Takashi Kajinami 00254f1f08 worker: Support tunebles about zones serial requests
Change-Id: I950f90e872fdfce8593b0c0577198451530bd6bf
2023-10-23 23:19:55 +09:00
Takashi Kajinami 68ceda6a23 Move some options from mdns to worker
... following the migration in designate itself.

Depends-on: https://review.opendev.org/c/openstack/designate/+/845508
Change-Id: I6528d7cbae72b8f6f9ae8d26f9258f3b9e82e560
2023-10-23 23:10:03 +09:00
Takashi Kajinami 8ed0bcb867 replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Note that this change looses validation about pool ids. Alternatively
we can define a new data type to keep the validation, but these defined
types for pool-manager were already deprecated and useless and will be
removed in a near future release so we avoid that redundant step.

Change-Id: I85d7058bf379c6aa0e787b2f806f14aebf0693d3
2023-06-19 17:27:32 +09:00
Takashi Kajinami 5e89485f5d Add strict validation about boolean parameters
This ensures the parameters used by if-else logic accept only boolean
values because non-boolean can result in unexpected behavior.

Change-Id: I703a2a64ce15ea6adf7cf233e635baf3ad963d31
2023-03-03 04:37:27 +00: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
Takashi Kajinami 6aeb861a3d worker: Remove deprecated worker_topic
The parameter was deprecated during the past cycle[1] in favor of
the new worker parameter.

[1] b3f2658886

Change-Id: I02673fe8ec9749c98f2381ab6b2bbe0c1093b576
2022-11-18 02:30:35 +00:00
Takashi Kajinami 4f2583ebe1 Clean up deprecated parameters of designate::worker
This change removes the two ineffective parameters which were
deprecated during Yoga cycle in favor of the refactoring work[1].

[1] 913b9a5af4

Change-Id: I103433bcfa4227422f7daf2daa565cd32bde6d55
2022-08-16 21:48:10 +09:00
Takashi Kajinami b8ddf2b1f3 Remove deprecated designate::worker::worker_notify
... because the parameter was deprecated during Victoria cycle[1].

The actual parameter was already removed from Designate by [2].

[1] 3134f475ab
[2] 5d5d83e511acbf5d6f34e9a998ff16d96c5bb162

Change-Id: I9eb1e7d7e2463d21a52b347ccc8e8b1da9b975fc
2022-08-16 21:44:09 +09:00
Rajesh Tailor d425d2ed73 Fix typos in parameter descriptions and tests
Change-Id: I23cf4500b147770f0863a2e73c94f4bbff22d37f
2022-06-17 18:40:22 +05:30
Takashi Kajinami b3f2658886 designate-worker: Raname the topic parameter
... following the renaming in Designate itself[1].

[1] fcb3290be7caf04b6b065f8a25bc4b8a3fd9113a

Related-Bug: #1968523
Change-Id: I05af3d8e4125f6563e80747759139c01649088f6
2022-04-11 14:57:59 +09:00
Takashi Kajinami 933517abcd designate-worker: Fix outdated topic parameter
The [service:worker] worker_topic parameter was renamed to the topic
parameter during Train cycle[1]. This change updates the parameter
configured accordingly.

[1] fcb3290be7caf04b6b065f8a25bc4b8a3fd9113a

Closes-Bug: #1968523
Change-Id: I2da91700288682e35d78e2eea1983a55c73fc483
2022-04-11 14:54:45 +09:00
Takashi Kajinami e586326e77 Stop inheriting the base designate class
... because it is not required and inheriting designate::params is
enough. Reducing scope of inheritance allows us to decouple individual
classes.

Change-Id: Iacb44a1d485c475bcb3a0be053c8ed7a60399866
2022-02-14 11:12:43 +09:00
Takashi Kajinami 913b9a5af4 Standardize parameters for package/service management
The designate::worker class provides some additional parameters than
the other classes. Because there is no clear requirement for these
parameters, this change deprecates these parameters so that we can
provide consistent interface to all service classes.

Change-Id: I5534cdf776d361a1ed7ecb54af85886e390e680e
2022-02-14 09:06:17 +09:00
Jacob Aharon b7cfb61a6d Standardize the manage service parameter
Rename confusing service_ensure parameter.
Based on:
https://review.opendev.org/c/openstack/puppet-designate/+/773372

Added manage service parameter to worker.pp, so it will have the same
service management functionality as the rest of the services.

Change-Id: Ibe58d1395ee0b79af7535714ef5c9d2b26b52780
2021-07-30 22:38:01 +09:00
Takashi Kajinami d997168369 Fix typo in warning message
Trivial-Fix

Change-Id: Idb4187b7d23b62a5c7aa575c2f4501e8e4a653a4
2020-05-06 14:33:53 +09:00
Zuul e186034b3b Merge "Deprecate designate::worker::worker_notify" 2020-04-27 19:47:21 +00:00
Takashi Kajinami a5c7189519 Do not set removed [service:worker]enabled
The [service:worker]enabled parameter was removed in Designate[1], so
we don't need to set the parameter.

[1] 52ad1c4c13d1fead646435634e4b07bb32c68d28

Change-Id: Ic5a51f003d112672210cd0fe9adec594ed338e06
2020-04-25 23:50:06 +09:00
Takashi Kajinami 3134f475ab Deprecate designate::worker::worker_notify
... because its actual parameter in designate was already deprecated in
designate.[1]

[1] 52ad1c4c13d1fead646435634e4b07bb32c68d28

Change-Id: If22e4f75a0959507d6d3a97036f873df2f284d03
2020-04-25 23:49:28 +09:00
Tobias Urdin b7f73b35c5 Convert all class usage to relative names
Change-Id: Iae69aff79cc231336b14d65305fff9c64cbd27e0
2019-12-08 23:04:25 +01:00
Ben Nemec dca15cf79a Enable worker service when deploying it
Currently when deploying the worker service, you get a message like

You do not have designate-worker enabled, starting designate-worker
is not allowed.

in the log when the service attempts to start.  This is because the
service:worker/enabled setting is not set to true.  When the worker
service is enabled that setting should be as well.

Change-Id: I150157162d7dce536606778d5dda5bd8356cb799
2017-12-14 18:28:30 +00:00
Thomas Herve 34e606c795 Use os_workers when applicable
This uses os_workers as default for every workers config setting of the
various services.

Change-Id: I828f7fd8000d8e386b4d794ba8bf308599aa5491
2017-11-28 09:39:26 +01:00
Thomas Herve 8120a19e9d Add support for worker service
This enables the worker service to be running.

Change-Id: I492b61f5eb07d2c3039c8bb0f3e99626399bba62
2017-11-16 08:44:25 +01:00