4097 Commits

Author SHA1 Message Date
Graham Hayes
ce7a4a8886
Update the Akamai DNS Driver matrix information
* Mark Akamai v2 as untested
* Mark Akamai eDNS as known broken due to the API being removed
* Add basic docs for Akamai v2

Change-Id: I4f6c6c1c96251bfc4f7ad3bb6b0bd2025397fa03
Signed-off-by: Graham Hayes <gr@ham.ie>
2020-02-13 15:11:54 +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
Zuul
f355aae939 Merge "Improve sink recordset creation" 2020-01-16 10:42:08 +00:00
Erik Olof Gunnar Andersson
14429136db Fixed neutron endpoint override
The network_api endpoint code would never
actually use the manually configured endpoints.

This patch changes that by first checking if
custom endpoints were configured, and if that
isn't the case it will use the service_catalog
instead.

In addition we introduce full testing on
this code path to make sure it behaves
as we expect.

Change-Id: I2e9f1485fce401336ab8a4a8b1aa1f971292168f
2020-01-16 05:30:09 +00:00
Zuul
a12d2d32d3 Merge "Simplified network api implementation" 2020-01-16 03:42:59 +00:00
Erik Olof Gunnar Andersson
4869913519 Improve sink recordset creation
Reduced the number of calls we need to make when creating records using
the sink by better using the create/update recordset api.

This also fixes a bug where the sink could trigger a race condition in
the worker causing it to throw a BadAction exception.

Partial-Bug: #1768618
Change-Id: Iaf21ec59755375d3c3bc043b16a1b14aa991475e
2019-12-29 02:48:05 +00:00
OpenStack Proposal Bot
0050549441 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3d8d4021b17b0522ab3a37a337f2a7a1936ca23b
2019-12-25 09:11:28 +00:00
Zuul
4d0496ffdc Merge "Delete removed dashboard panel when upgrading" 2019-12-25 00:15:14 +00:00
Erik Olof Gunnar Andersson
ac53cd4df0 Simplified network api implementation
Reduced the complexity of the neutron code
for looking up ptr records.

* Limit max concurrency to 5.
* Better error handling.

Change-Id: I0c50aaadaabb6e0f054121d8270fcb8e05b6e762
2019-12-18 23:09:12 +00:00
Erik Olof Gunnar Andersson
8fee76623e Don't use hasattr to lazy-load properties
This is a better pattern overall and most classes
has already had this changed as part of the service
refactor.

Change-Id: Ia6fb1f78a449bee48b9e4c86ca1334d0b28b28ef
2019-12-16 20:03:47 +00:00
Zuul
e7558b6c5c Merge "Clean up pecan Request patching" 2019-12-16 19:34:33 +00:00
Zuul
42d7c027d0 Merge "Move pecan_debug into cfg section" 2019-12-16 19:33:31 +00:00
Zuul
7fc3a50382 Merge "Remove broken target sync extension" 2019-12-16 19:31:37 +00:00
Zuul
be2f2b704f Merge "Removed unused SSLMiddleware" 2019-12-16 19:31:36 +00:00
Ghanshyam Mann
cdac0fc2f9 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Designate is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I5a5bdc859f87f82097b95b2ebb31edb6e9b72b3a
2019-12-13 18:49:14 +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
f628acd526 Removed unused SSLMiddleware
The SSL middlware has been replaced
by http_proxy_to_wsgi since Mitaka.

Change-Id: Ie36d184c3ed981193fb3ec77f586ed9870960b62
2019-11-27 19:49:07 +00:00
Erik Olof Gunnar Andersson
2698637dc4 Clean up pecan Request patching
* Removed hack for old pecan version.
* Cleaned up code.

Change-Id: I428ee4f1bf5de7cd369e3f82b059c0517f37e804
2019-11-27 19:48:57 +00:00
Erik Olof Gunnar Andersson
4301bbcf8a Move pecan_debug into cfg section
Change-Id: If3122f4719b1d52c5972e2d7869b521822de9422
2019-11-27 19:48:38 +00:00
Erik Olof Gunnar Andersson
2108a22037 Remove broken target sync extension
When we removed the pool-manager this was missed and the
extension is no longer functional.

Change-Id: Id3e5f87d18c7b6d79b44a6fa6df2f8efd2bf73ef
2019-11-27 18:39:25 +00:00
Jens Harbott
d9fb34767c Run grenade old side with python3
Jobs fail when the old side is running py2 and the new side has python3
now.

Change-Id: I9b0850a3544d5758b0357d941acc0cf6486a1c89
2019-11-26 14:33:23 +00:00
Zuul
7951a7d7f5 Merge "Make designate reproducible" 2019-11-20 00:25:55 +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
Zuul
836589cf3f Merge "Renamed enable_host_header by default reno" 2019-11-08 09:32:46 +00:00
Thomas Goirand
2ef51c5ee2 Make designate reproducible
I'm forwarding the patch against the Debian package at:
https://bugs.debian.org/942848

Whilst working on the Reproducible Builds effort [0] we noticed
that designate could not be built reproducibly.

This is because it embeds the absolute build path in the sample
configuration. Patch attached that uses oslo-config's sample_default
instead.

 [0] https://reproducible-builds.org/

Change-Id: I605bbdfe7d0b734b31cdf85691f8c6d3850fc8c7
2019-11-07 22:06:53 +01:00
Zuul
1cd2dddf3f Merge "Fix api version not providing the full url" 2019-10-22 20:56:19 +00:00
Erik Olof Gunnar Andersson
30d454a223 Renamed enable_host_header by default reno
Change-Id: I1fc06616ed410b473c587253f774ea0a13961707
2019-10-22 10:36:28 -07:00
Erik Olof Gunnar Andersson
2823921582 Fix api version not providing the full url
We are currently using host_url to build the version
href which causes the /dns portion to get dropped. This
patch changes host_url to url_root. We also enable
enable_host_header by default.

Finally we add a help url that points at the
designate api reference.

Change-Id: Ie8d815391b316d664b0c51099a08d8d32932c555
2019-10-22 01:43:54 -07:00
pengyuesheng
d8c2718e4f Switch to Ussuri jobs
Change-Id: Iaeae4497e3eb1ebe5888e9646acbf409c5332d9b
2019-10-22 10:54:58 +08:00
Erik Olof Gunnar Andersson
68d8d8f4e5 Remove wsgi eventlet monkey patch
We don't actually need to monkey patch the
api component.

Change-Id: Ib7e8bf2ad79ffe906698256664be680750f2e1e9
2019-10-21 19:56: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
Zuul
7dc2f9ac95 Merge "Enable graceful shutdown of mdns" 2019-10-19 05:28:27 +00:00
Zuul
2155923c84 Merge "fix Secondary zone can not xfr" 2019-10-18 23:27:21 +00:00
Erik Olof Gunnar Andersson
023855b3e9 Enable graceful shutdown of mdns
We are currently blocking tcp and udp connections,
which means that the connection will hang until killed.

This patch changes this by making the connection
non-blocking, to allow us to interrupt the flow
and gracefully shutdown.

Change-Id: Ic372572055736e091ef2c3fe0446e7f278b365b4
2019-10-18 22:24:12 +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
Zuul
dd2bb0486e Merge "fix ListObjectMixin._obj_from_primitive bug" 2019-10-11 22:51:50 +00:00
Zuul
3d73bb8288 Merge "Updated Readme" 2019-10-11 14:49:09 +00:00
Zuul
e5e97eeffa Merge "designate-manage pool update --dry-run not should pass argument" 2019-10-11 12:09:20 +00:00
zhouhenglc
d708ff588b designate-manage pool update --dry-run not should pass argument
--dry-run and --delete should be switchs.
now --dry_run acts as key value pair. users do not know what is behind
--dry-run. and now whatever the value is acceptable. this is unreasonable.

Closes-bug: #1847393

Change-Id: Ia6ab93395deb95173e443f9d3ea77dd52edfcf2c
2019-10-11 17:51:57 +08:00
zhouhenglc
2f86440507 fix Secondary zone can not xfr
``DesignateObject update`` method not judged whether the value
has changed, but directly override. ``zone name`` will be marked
as changed. But central api not allow update name. zone will be
PENDING for a long time and will eventually become ERROR.

Change-Id: Id67fbb9adee7593a03475f3bbabbb15d9a9cd4bd
2019-10-03 07:37:43 +00:00
zhouhenglc
4025db3287 fix ListObjectMixin._obj_from_primitive bug
The current method, if primitive don't contain changes, resolves to include
changes. I don't think instance._obj_changes are useful. so change to
instance._changed_fields

Change-Id: I087d050a06759679ea5aa6e8c3b94e54e22a9ad9
2019-10-03 07:37:29 +00:00
Erik Olof Gunnar Andersson
ba6f5e4a0c Updated Readme
Change-Id: I6ede1eafff109e585dd6424837ab4c028a08fa88
2019-10-03 00:36:42 -07:00
Zuul
d910d78162 Merge "Reduce log spam from coordinator" 2019-10-02 21:57:07 +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
acab709da5 Reduce log spam from coordinator
The current implementation has slightly
too aggresive defaults and logs an exception
for every missed heartbeat. This can cause
many lines of error logs from a millisecond
outage.

* Reduced default heartbeat from 1s to 5s.
* Changed heartbeat error into warning.

Change-Id: I2a8b8d137b31866dac40d2f80e47f09fe1a2b68d
2019-09-29 22:44:56 -07: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
d078b0abf3 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I950554d55c06185905af84e479b2895d18a60085
Sem-Ver: feature
2019-09-27 09:35:29 +00:00
Zuul
0f489412e8 Merge "Experimental wsgi support" 2019-09-27 09:18:35 +00:00
Zuul
63f216755a Merge "Adjusted default heartbeat interval and renamed file" 2019-09-25 18:37:56 +00:00
Zuul
89435416a1 Merge "fix get the name servers for a zone not validate zone_id" 2019-09-25 18:29:49 +00:00