Commit Graph

27 Commits

Author SHA1 Message Date
Michael Johnson 4258633ae5 Add catalog zone support to devstack plugin
This patch adds the ability to configure devstack to use catalog zones
when using the BIND9 backend.

It also adds a test job "designate-bind9-catalog-zones" that uses catalog zones
with a BIND9 backend.

Change-Id: Ib618d7850b0a86a8eb10eaa52b0e330cf908883a
Signed-off-by: Jan Hartkopf <jhartkopf@inovex.de>
2024-02-20 18:24:36 +00:00
Erik Olof Gunnar Andersson 2868db4f66 Remove deprecated designate-agent
This patch completely removes the designate-agent service
and all agent related plugins.

Change-Id: Ibe4011fb85797282fa44742d4b9c9b7c00e78622
2023-10-04 14:39:57 +00:00
Erik Olof Gunnar Andersson 4b58446d37 Revert "Move back to mod_wsgi for devstack"
This reverts commit 185d92d230.

Reason for revert: Lets try to move back to uwsgi, as logging is a lot cleaner in the CI with uwsgi. Switches uwsgi from using uwsgi over socket to over localhost HTTP.

This patch also bumps the API_WORKERS setting for devstack from 2 to 4.
This will bump the uwsgi processes and threads from two to four.

Change-Id: I126133564e2ada32448ad36e0d021790939425d4
2021-11-13 01:33:50 +00:00
Jens Harbott 512943a037 Be explicit about the coordination URL
"localhost" can also point to ::1, but the memcached service is only
listening on 127.0.0.1, so be explicit about that in the URL that
we give to tooz.

Depends-On: https://review.opendev.org/759831
Change-Id: I2a2ec20b7645034a23337380005add2e953f9185
2020-10-27 19:17:44 +00:00
Erik Olof Gunnar Andersson 185d92d230 Move back to mod_wsgi for devstack
There is an issue with the unauthed tests
and uwsgi causing the CI to frequently fail.
Lets move back to mod_wsgi until we can figure
that out.

Change-Id: I9fd558cec85da87c8daea36f7a9e2666948e72f1
2020-09-18 19:43:04 +00:00
Erik Olof Gunnar Andersson 453a853391 Switch to uwsgi as default for devstack
Change-Id: I5b9abc3b71bd30dc9a0a546d64d77c7922a3718c
2020-05-26 20:26:04 +00:00
Erik Olof Gunnar Andersson 9e3c2bb65b Switch to apache for designate-api
This patch switches to Apache and mod_wsgi by default
for devstack.

Also, use memcached as the coordinatior for single node deployments.

Change-Id: I8798c04f2bc386aca32bda8961efd29298899890
2019-10-19 07:16:14 +00:00
Jens Harbott 6f209e05a7 Drop use of DESIGNATE_AUTH_CACHE_DIR
That directory was only needed when using PKI tokens, which have been
removed from keystone for some cycles now. Also replace the deprecated
devstack function configure_auth_token_middleware with the current
version.

Change-Id: I7d10a21ed90dc9ea762dc3ea28fb22f55acf413d
2019-10-01 10:11:53 +00:00
Erik Olof Gunnar Andersson 52ad1c4c13 Removed deprecated pool-manager implementation
The pool-manager has been deprecated since Newton and
is now being removed with the Train release.

Change-Id: Ib258043d492bb25e1c061d765b40885317c73804
2019-09-24 11:10:54 +00:00
Erik Olof Gunnar Andersson 178737c480 Fixing stevedore warning when running devstack
Currently when devstack runs, the following
error message is always displayed.
> WARNING stevedore.named [-] Could not load

This is because no notification driver is set. We
fix this by setting messagingv2 to default.

Change-Id: Id8c293cfab828b568b6cb2654530e8fe657fb69a
2019-03-21 20:23:12 -07:00
Zuul 85ae94e7ba Merge "Setup designate with default zones quota" 2019-03-07 13:40:58 +00:00
hamzah alqtaishat 91fb85429e Add devstack VENV build support
Change-Id: I7bccb19b9d629ccddac1dc2808f8a8b89ed5c7a7
2019-02-25 14:21:00 -08:00
Pavlo Shchelokovskyy 61bdc0d07d Setup designate with default zones quota
we need to test with default values to ensure validity of
designate-tempest-plugin for deployments with default config values.

Change-Id: Ifbcf8614fdcab5a97139234025ed0decf2e91f8e
Depends-On: https://review.openstack.org/638412/
2019-02-21 14:27:01 +00:00
ghanshyam 194d9fcd7f Remove use of unsupported TEMPEST_SERVICES variable
TEMPEST_SERVICES global variable is not supported
by devstack since long back.
- I380dd20e5ed716a0bdf92aa02c3730359b8136e4
- I9c24705e494689f09a885eb0a640efd50db33fcf

Service availability of tempest known services will be
set by devstack with local check.
- I02be777bf93143d946ccbb8e9eff637bfd1928d4

This commit removes the unused TEMPEST_SERVICES setting
Related-Bug: #1743688

Change-Id: I596e45d0922686ce916fe4342d3d6357b57b91bb
2018-01-23 16:46:20 +03:00
Graham Hayes c318106c01 Remove v1 API
This completes the long awaited removal of the V1 API.

Change-Id: I30c8a5e8569b1b86286c5e3cb07856c06ebe5803
2018-01-11 14:13:43 +00:00
Ritesh Anand 0f8db9f754 Enable worker and producer by default in devstack
In devstack settings we have pool-manager and zone-manager
enabled by default. This causes conflict if a user wants to run
designate plugin with worker and producer.

This change replaces pool-manager and zone-manager with worker
and producer in devstack settings.

Closes-Bug: #1733992

Change-Id: Id96f1430d1091f2485099523fae499bde377e7e6
2017-11-29 16:42:18 -08:00
Graham Hayes 8274c9394a
Move default DNS driver to bind9
Change-Id: I1791da2b7662620c050257535ed75a7ce8e90068
2017-09-13 10:26:16 -06:00
Jens Harbott 8291126e4e Fix tls startup in devstack plugin
In [1] the definition of start_tls_proxy was changed, we need to have a
service name as the first parameter now.

Also set the correct protocol when tls-proxy is enabled.

[1] Ifcba410f5969521e8b3d30f02795541c1661f83a

Change-Id: I64e6f9aefcc8da5b9988fb7bff894d9a4205f871
2017-08-29 10:35:50 +00:00
Tim Simmons 81ce132e90 Worker Model
- More information about the actual worker code can be found
  in `designate/worker/README.md` and in the inline docstrings

- Stand up a `designate-worker` process with an rpcapi, all
  the usual jazz

- Implement a base `Task` class that defines the behavior of
  a task and exposes resources to the task.

- Implement CUD Zone tasks, which includes Tasks that poll for zones,
  send Notifies, and update status. These are all done in parallel
  with threads using a shared threadpool, rather than iteratively.

- Implement a `recover_shard` task that serves the function
  of a periodic recovery, but only for a shard. Call that
  task with various shards from the zone manager.

- Put some shims in central and mdns so that the worker can
  be switched on/off with a few config values.

- Changes Zone Manager -> Producer
    - Removes zm rpcapi
    - Adds startable designate-producer service
    - Makes zone-manager an alias for producer service with a warning log
    - Lots of renaming

- Moves zone export to worker
    - API now uses central_api.export_zone to get zonefiles
    - Central uses worker_api.start_zone_export to init exports
    - Now including unit tests
    - Temporary workarounds for upgrade/migration move the logic
      into central if worker isn't available.

- Deprecates Pool manager polling options and adds warning msg on
  starting designate-pool-manager

- Get some devstack going

- Changes powerdns backend to get new sqlalchemy sessions for each
  action

- Sets the default number of threads in a worker process to 200,
  this is pretty much a shot in the dark, but 1000 seemed like
  too many, and 20 wasn't enough.

- Grenade upgrade testing

- Deprecation warnings for zone/pool mgr

The way to run this is simple, just stop `designate-pool-manager`
and `designate-zone-manager`, toggle the config settings in the
`service:worker` section: enabled = true, notify = true
and start `designate-worker` and `designate-producer` and you
should be good to go.

Change-Id: I259e9825d3a4eea58e082303ba3bdbdb7bf8c363
2016-08-24 14:54:31 +00:00
Jenkins b44f3c5d63 Merge "Update devstack dashboard+client clone+install method" 2016-06-02 16:07:37 +00:00
Kiall Mac Innes bef53dbe93 DevStack: Support setting default quotas
As tempest is creating and deleting zones, it does not wait
for all zones to be deleted before moving onto the next test.

This can lead to having a large number of pending delete zones
which consume all/most of the default quotas, and tests begin
failing.

By setting the default quotas higher in DevStack, we allow the
tests to proceed.

Change-Id: I3652bb06724fb8b89bb341c9d9f61b1dde056119
2016-05-23 14:15:10 +01:00
Kiall Mac Innes b4cd2c8042 Update devstack dashboard+client clone+install method
This updates our devstack plugin to use the current clone+install
method for the client (missing vars) and dashboard (replaced with
the new method).

Designate itself is still using old vars, but I suspect this is
a leftover and there's really no need for Designate to try
clone itself since the plugin is inline now...

Change-Id: I2189abc196d74520fa3fae0da215a1c6dd891387
2016-05-16 18:12:51 +01:00
Kiall Mac Innes 699468c52b DevStack: Allow disabling of API versions
In order to fully remove the V1 API, we need to be able to
deploy DevStack entirely without the API. As a step towards
removing the API, we'll (at a date to be chosen later) disable
API v1 by default in both the codebase and DevStack plugin.

Change-Id: If1f27eb43f014959551c298f10c6c5fcb95e2fe8
2016-05-03 18:04:07 +01:00
Kiall Mac Innes 620fc6ec97 Add Agent DevStack Backend
* Add a new backend for DevStack allowing the Agent
  backend to be configured.
* Change the agent to choose a sane port by default, it's extremely
  unlikely anyone is exposing the agent on port 53 intentionally.
* The agent itself is not yet configured, this will come later as it
  involves refactoring most of the BIND non-agent backend into a lib.
* Fail when the user asks for the agent backend, without also enabling
  the agent service.

Change-Id: Iedde58f4f5a2ea89cb9da78aaec1853208af8fc9
2016-04-14 20:58:06 +01:00
Kiall Mac Innes fc2fe86807 Add Tempest Plugin to DevStack Plugin
Additionally, execute the tests in the gate

Change-Id: I58930c40243068e97ff8f6f1684cfbe5565ac7f1
Depends-On: I7733e8786d6b525a7c9a8d4f12add329cd030d9d
Depends-On: Ic1ee7f8bfea7954fca4057b74b76fcb502bb782d
Partially-Implements: blueprint designate-tempest-plugin
2016-04-10 12:05:06 +00:00
Kiall Mac Innes e612a3974f Enable use of Pools YAML
This change adds the tooling to use the DB Tables created for pool
config data and the tooling to migrate the config info itself.

Change-Id: If99dbf527ef1ac0f05f15fe77f68f64e357fe0a5
2016-03-17 19:13:31 +00:00
Christian Berendt bb1b24c25a Migrate existing Devstack integration into a Devstack plugin
This patch will not remove the existing Devstack integration
in contrib/devstack.

Change-Id: I23ef00bb136e92abc5e69a9bbe1093cad9d2a362
Closes-bug: #1504214
2015-11-27 16:38:12 +01:00