Commit Graph

135 Commits

Author SHA1 Message Date
Zuul 54e3ece623 Merge "Add catalog zone support to devstack plugin" 2024-02-27 16:44:15 +00:00
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
Takashi Kajinami cb47b4e00e Make edgegrid-python optional
The edgegrid-python library is not necessary unless akamai backend is
used, so this library should be an optional dependency to avoid pulling
unnecessary packages.

Note that akamai backend hasn't been updated since it was added 4 years
back. Probably we can deprecate and remove it assuming it's not really
used(or at least it's not maintained).

Change-Id: If13e722e5ec3cdcd11461201ea20b2dc022cce10
2024-01-22 21:47:31 +09:00
Zuul 21b266b070 Merge "Remove devstack support for suse" 2023-11-22 02:46:19 +00:00
Michael Johnson efaeb9085e Remove devstack support for suse
Devstack has removed support for suse[1], so we need to remove our usage of
functions from devstack that no longer exist (is_suse).

[1] https://review.opendev.org/c/openstack/devstack/+/871641

Change-Id: Ib136de0ee6cf5884918a29abd8b281d3b4cccf85
2023-11-14 18:02:01 +00:00
Michael Johnson 5809159e4a Add clean_zonefile to BIND9 pool.yaml doc
This patch adds an example of the "clean_zonefile" option in the BIND9 targets in the pools.yaml file. The option has existed in the code, but was not documented in any way.
It also enables this feature in the bind9 devstack plugin for testing and to reduce the storage utilization during test runs.

Change-Id: I70b92b400cfeb059d1a1889ffa72621e0011d8c6
2023-10-24 03:13:18 +00:00
Erik Olof Gunnar Andersson dc70b92140 Remove legacy unused devstack code
Change-Id: I23e0a5e72229ac3352f1dc51927451b3a1a5bac5
2023-10-18 03:39:44 -07: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
Michael Johnson 9c6ed29135 Add a tempest test job with sqlalchemy 2.x
Now that nova removed the use of "migrate" we can add a tempest test job
with sqlalchemy 2.x.

Change-Id: Ibc6b1a67a14c8a83c1f679a9e3302e9c2eb25983
2023-07-18 19:22:43 +00:00
Michael Johnson b8ec3b450b Restart neutron on grenade client update
During a grenade upgrade the Designate grenade plugin updates the
python-designateclient. This can cause the installation location to change
to under the /opt/stack/new path.
This patch makes sure we restart neutron q-svc after this update to make sure
it can still find the client.

Change-Id: I5ce96268cb39ae4a4a8d82a75ac192b2310455a1
2023-03-24 21:21:24 +00:00
Michael Johnson 8910a2014b Add hacking check for line continuation backslash
This patch adds a hacking check for line continuation backslashes and fixes the occurences that existed in the code.

Change-Id: I1d1269de231f6e747248a9d816a1d64e3968c69b
2023-02-21 20:12:04 +00:00
Nobuto Murata 04321d3324 Make sure proxy_http is always loaded for devstack
With the minimal Designate deployment with devstack, keystone module
doesn't load proxy_http so Designate API requests may fail. Explicitly
enable the module to make sure the apache2 setup always works for
Designate.

Closes-Bug: #1999019
Change-Id: I1fc02225b6676b68137245df2279340f215221f4
2023-01-03 08:32:36 +00:00
Erik Olof Gunnar Andersson 0b162a4c48 Add Ubuntu 22.04 CI support
Change-Id: I04a3a48c7e72797092fd1c3bdc6252085eff04df
2022-10-23 20:08:49 -07:00
Juan Pablo Suazo c230ddb8c5 Adds api_ca_cert configuration variable to pools.yaml
Adds a configuration variable that allows a user to
declare the CA certificate to be used to verify
traffic with a PowerDNS API endpoint.

Closes-Bug: #1971856
Signed-off-by: Juan Pablo Suazo <jsuazo@whitestack.com>
Change-Id: I57f3d5a1d1f79186cc5b38e76d30f62e01b60482
2022-05-13 11:21:47 -04:00
Erik Olof Gunnar Andersson 5fe269abf1 Enable ptr unset tempest test
Depends-On: https://review.opendev.org/c/openstack/designate-tempest-plugin/+/823905
Change-Id: Iac7c3758a06e99e56497f50385b4cea1856bfcaa
2022-05-06 07:35:13 +00:00
Nate Johnston 278b39c2fc Add a grenade job for bind9
The current grenade job tests only with pdns4, but it would be valuable
to also test with bind9 to discern upgrade issues when bind9 is in use.

Change-Id: I118cc92e3950540d725f433dfe5d9590cbdab616
2022-04-27 22:33:45 +00:00
Erik Olof Gunnar Andersson 244028674c Fix grenade job API startup for uwsgi
During a grenade upgrade test run, we updated the grenade test to migrate
to using uwsgi for the API during the from-Xena upgrade, but missed that
the main grenade upgrade script was starting the API without uwsgi.

This patch corrects the grenade upgrade script to run the API process
properly.

Change-Id: Ia54de92ec44641e16c20281cfa634599073f39e3
2022-03-31 18:22:14 +00:00
Michael Johnson b1e1974fe8 Fix grenade job for mod_wsgi to uwsgi transition
This patch updates the grenade job to migrate from using Apache mod_wsgi
to using uwsgi for the Designate API when upgrading from Xena to Yoga.

It also splits out the wsgi devstack configuration into a library file.

Change-Id: Icf8ee4a8e7e2dff67257b0e5f82fbeab6cb7e0b8
2022-02-18 17:58:41 +00:00
Michael Johnson 17dc01d677 Fix apache wsgi config for CentOS
The apache configuration file location is different between Ubuntu and CentOS.
Devstack provides us a helper function to get the correct filesystem path.
This patch switches the wsgi ProxyPass configuration to use this helper
function to place the file in the correct location.

Change-Id: Id0472fb25da106a74429e87ee26c5dfdd8c83b6f
2021-11-22 23:21:03 +00:00
Michael Johnson 0e16095a80 Enable H306 check and fix import ordering
To better align with other OpenStack projects and to reduce the
ongoing problem with duplicate imports, this patch re-enables the
H306 check for proper module import order.

Change-Id: Iced92590829f6d9177d64ad4868aebe6eafd6a8a
2021-11-18 00:30:05 +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
Gunju Kim 771197c2f3 Remove Akamai (eDNS SOAP API) backend
The Akamai eDNS SOAP API this backend uses no longer exists at Akamai.

Related-Bug: 1946340
Change-Id: I6545781f263c6a3d124364785aedcf2518116485
2021-10-12 16:32:49 +00:00
Michael Johnson b0e83084c2 Fix grenade upgrade API check URL path
Previously, the grenade API started check during the upgrade was
checking if the root of the web server was functioning. In this job
that is testing the horizon endpoint and not the designate API.
This patch fixes this to have the check run against the designate
endpoint under apache. This prevents false failures when horizon
has an issue.

Change-Id: Idbfec1adca2024cd5f352017a7c9319dcec65d42
2021-07-28 23:45:28 +00:00
Michael Hood 5aac48f08b Add NS1 backend
Introduce an NS1 backend.

Signed-off-by: Michael Hood <mhood@ns1.com>
Change-Id: I80fe08238005a94161e2dbcc89e77c90cde0a715
2021-03-08 10:55:06 -08:00
Jens Harbott 2255830a6a Drop deprecated tail_log function from devstack plugin
That function is to be removed from devstack, remove it in order to
avoid our plugin breaking.

Change-Id: I2ec7a5e641e6c1d2fa52ad410bb86de446694716
2020-10-27 19:19:58 +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
Jens Harbott 6f17fe10bb Fix pdns4 devstack plugin
We no longer need to deal with xenial or older distro versions, so we
can assume that we can always install pdns4 from the distro directly
and don't need the distro version check any longer.

Drop a config option that was removed in pdns 4.2.x.

Use mysql credentials correctly.

Change-Id: I90af3a092296f943509833608f25522b6f8e9ab6
2020-09-28 08:59:24 +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
Luigi Toscano 8cbfafdb8d Native Zuul v3 designate-grenade-pdns4 job
It matches the feature of the existing legacy job.

Depends-On: https://review.opendev.org/747579
Change-Id: I306599c0321ea40334750db57f39d9e3a237f13e
2020-08-23 16:54:43 +02:00
Jens Harbott 839d8b54e4 Fix uwsgi path
Devstack is switching back to using distro installed uwsgi, which will
not reside in the same directory as the python binaries. Make sure to
use the right path for it. See also [0].

[0] https://review.opendev.org/577779

Change-Id: Ic1b67c9d0ebfbf444f5ee096d6478fbe0c073329
2020-06-13 11:38:45 +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
Dr. Jens Harbott 31884f77d5 Fix issues with newer flake8
The updated flake8 seems to have fixed a check for .format() issues that
discovered a bug in one of our tests, which is fixed here.

Also get rid of using "l" as a variable name and tag the imports that
need to stay in order after setting an environment variable.

Change-Id: I28de0ffa68f9bff4685d81fe7b5a5d8909e2313c
2020-05-12 14:39:03 +00:00
Erik Olof Gunnar Andersson f6090d885c Adding distributed locking to central
The current locking implementation is limited to
the running process. This introduces distributed
locking that will help prevent race conditions
when there are many instances of designate-central
running.

Closes-Bug: #1871332
Change-Id: I98f7f80ce365cdee33528f9964c03274f62a795a
2020-04-08 00:18:33 -07:00
Andreas Jaeger 2e3d8ab80d Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

# to unbreak gate:
Depends-on: https://review.opendev.org/715835

Change-Id: Icc2f4368cc90689d74510ce36fe77d2346aec625
2020-04-01 21:52:38 +00:00
Zuul 899156da30 Merge "Implement create/delete zone for Akamai v2 API" 2020-02-12 19:18:15 +00:00
Zuul a5daaa9a04 Merge "Drop use of USE_SYSTEMD var in devstack plugin" 2020-01-29 23:30:01 +00:00
Dr. Jens Harbott 3770b006d0 Drop setcap on python binary
This is a bit of a security issue, also we don't seem to need it anymore
since we have long switched to running under python3 and the setcap
doesn't have any effect anyway. It will also break deployments once we
drop installing python2 completely, so just remove it now.

Change-Id: I7265c525f1091012011ba12d65e9669a826ab979
2020-01-29 15:35:25 +00:00
Dr. Jens Harbott d0731c03f5 Drop use of USE_SYSTEMD var in devstack plugin
The USE_SYSTEMD variable is to be dropped from devstack[0], as running
with systemd is the only option now. Drop it's usage in our plugin.

[0] https://review.opendev.org/703734

Change-Id: I0161bc82878ca936c3b0d9e9f9624be81fad21db
2020-01-27 14:17:20 +00:00
Sergey Kraynev 318b8d0319 Implement create/delete zone for Akamai v2 API
- Ignore duplicate Zone error
- Handle error when contractId or gid is missed
- Ignore port for masters servers, because Akamai uses only 53 port and
does not allow to specify any port in list of masters servers.
- Added timeout and retries for soft Zone Delete
- Added handling errors on the delete zone action
- Added Log info message with RequestId on soft zone delete
- Added processing for TsigKey during creation zone
- Added devsatck_plugin for akamai_v2 backend

Depends-On: https://review.opendev.org/#/c/692819/4

Change-Id: Ib221f4cf0371e70fc6900582d826ffc1bdfc12b9
2020-01-16 18:54:30 +00:00
Jens Harbott d5f6f2ab7a Delete removed dashboard panel when upgrading
The old v1 dashboard panel has been removed, when upgrading from an
older version we need to remove the symbolic link for it in order to
avoid horizon from failing.

Change-Id: I383884aa100fd983e1087d7458396f8053414d55
2019-11-28 01:39:32 +00:00
Erik Olof Gunnar Andersson 306e231c4b Don't install Horizon as part of the upgrade test
Change-Id: I961aecf23ee1a76e15c716c0733bd418b21efb58
2019-11-15 17:02:44 -08: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 b9e6549ad3 Don't install v1 dashboard panel
The panel _1720_project_dns_panel.py has been removed in [0], stop
trying to install it in our devstack plugin.

[0] Iabf7d396ea6feb0cd7de1c5408a81a7a3ce1efbf

Change-Id: I7ebc7991bd4f59579195d337f1787fd8abefbe90
2019-10-15 13:10:11 +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 ac52daa60e Update devstack to use workers
Use API_WORKERS for all services, to make sure we
are testing with at least 2 workers for every service.

* Use API_WORKERS for all services.
* Removed deprecated and removed settings for the worker.
* Use enable_host_header is tests.

Change-Id: Iba9ba655c47ee085a47ee98872437f07fdc3346c
2019-09-27 20:29:40 -07:00
Erik Olof Gunnar Andersson 660eacbce4 Removed deprecated powerdns 3 driver
This driver was replaced by the pdns 4 driver
many cycles ago and is being permanently removed.

Change-Id: Ic34cee5fde21f838b6dd6b54fcdd767ec8b0bc18
2019-09-24 04:26:19 -07: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
Zuul 1ebc46950d Merge "Fix ipv6 bugs with devstack and pdns4 driver" 2019-08-29 17:32:36 +00:00
Erik Olof Gunnar Andersson 2ad08a6a05 Fix ipv6 bugs with devstack and pdns4 driver
* Change dns backends and pools.yaml to use
  ipv6 addresses not wrapped in brackets.

* Changed MySQL backends to use MYSQL_HOST.

* Fixed bug in pdns4 driver not allowing
  masters to use an ipv6 address.

Depends-On: https://review.opendev.org/#/c/678324/
Change-Id: I8f469e732618732f5417c1b5e6c2049eaa83ea78
2019-08-29 08:12:38 -07:00
Jens Harbott e23f47d04a Drop creating extra endpoints in devstack
We don't need admin or internal endpoints in a normal devstack setup,
other basic projects are also only creating the public endpoint now.

Change-Id: Iaafec07cf9a0196b5da850924b98e3aa94d559f1
2019-08-12 14:27:15 +00:00