252 Commits

Author SHA1 Message Date
Zuul
0b64fe765e Merge "Remove explicit lockdown of flake8" 2017-10-24 16:02:00 +00:00
Dirk Mueller
0534c3dc52 Remove explicit lockdown of flake8
The hacking version should require the proper dep
of flake8, which includes pep8 and pyflakes.

Change-Id: Ia55a7f355e4ddd190d5bb66491ba8f76b0912a3b
2017-10-24 14:39:40 +02:00
Nguyen Van Trung
e07f601a22 Remove SCREEN_LOGDIR from devstack
Screen support has been completely removed from devstack[1]

[1] I8c27182f60b0f5310b3a8bf5feb02beb7ffbb26a
    and cdba1b371628aa0e8bc5b687351c5ee9b39e9bc6

Change-Id: I363e140ab6ea9b7ac8f422146e70e203d6265e5b
2017-10-23 07:44:32 +00:00
Graham Hayes
90725f7b8c
Update vagrant boxes
Change-Id: Ie9e0291a59640ef91cb8286358163179d602c53e
2017-10-03 14:34:51 +01:00
Graham Hayes
8274c9394a
Move default DNS driver to bind9
Change-Id: I1791da2b7662620c050257535ed75a7ce8e90068
2017-09-13 10:26:16 -06:00
ChangBo Guo(gcb)
8062c3c3c1 Remove usage of option 'verbose'
Config option 'verbose' wase deprecated on aug 1, 2015 in review:
https://review.openstack.org/#/c/206437/
Oslo team decide to remove this option, need cleanup the usage of
it in consuming project before removing it from oslo.log.

Change-Id: I713e9e5107a64ec29c220d1150c1bf5fcf6f1135
2017-03-10 18:37:19 +08:00
Tim Simmons
93c0161242 Make notifications pluggable
- Defines a plugin interface for what's actually emitted as part
  of designate "notifications".
- The default plugin emits the same thing as notifications did prior
  to this patch.
- The "audit" notification plugin emits recordset data changes and
  zone/recordset names, if they exist, the notifications with this
  plugin look like http://paste.openstack.org/show/545210/
- Adds support for multiple notifications for a single change
- Also adds client IP to the context object, as it's a field that
  may be of interest to some types of notifications
- Many tests

Change-Id: I01118fae8ce6e38ccc61b0ce763fd759affd9a86
2017-01-19 16:10:15 +00:00
Cuong Nguyen
423e539e1e Use designate.utils.generate_uuid instead of str(uuid.uuid4)
This patch replaces str(uuid.uuid4) with designate.utils.generate_uuid

Change-Id: I424a13f9d241930414bfb4c4508fc56de2df0dcc
Closes-Bug: #1656765
2017-01-16 16:12:08 +07:00
Jenkins
7fa57eadbd Merge "Using sys.exit(main()) instead of main()" 2016-10-19 02:44:48 +00:00
Luong Anh Tuan
e5cb2569a6 Using sys.exit(main()) instead of main()
TrivialFix: Similar [1] in Kolla project
As we known, Exceptions are raised by the sys.exit() function. When they
are not handled, no stack traceback is printed in the Python interpreter.
Therefore, when using sys.exit(main()) instead of main()
may be more readable and reasonable.

[1] https://review.openstack.org/#/c/349353/

Change-Id: Ied52a7631da82a72f0dcf2fc9ed81840d24041d9
2016-09-26 03:23:44 +00:00
Erik Olof Gunnar Andersson
9648a3d1f5 Updating the sample handler to be compatible with mitaka/newton
Change-Id: I9440a9c7e268df346071b7d23d90ccc87345ee6d
2016-09-17 05:40:01 +02:00
Jenkins
86fcdd48e8 Merge "Add DESIGNATE_AGENT_BACKEND_DRIVER to devstack sample conf" 2016-08-24 15:44:26 +00:00
gecong1973
0c6babde08 Remove white space between print and ()
TrivialFix

Change-Id: I5219e319e9d7e5cc8307e45c60e1e2d2d25d9d5c
2016-08-23 16:14:07 +08:00
Kiall Mac Innes
54cea8955f Add DESIGNATE_AGENT_BACKEND_DRIVER to devstack sample conf
Change-Id: I6803f5993f2af12200bb6f2ce7f215f303d256fb
2016-07-28 11:01:36 +00:00
qinchunhua
bb35643c18 Python 3: dict.itervalues()
Replace dict.itervalues() with dict.values(). The Python 3 dict
type has no itervalues() method, the old itervalues() method was
renamed to values().

TrivialFix.

Change-Id: I5d96f26db2bb3490271962d9548672cfdd03357e
2016-07-27 00:37:07 +00:00
Graham Hayes
f374b5fe2c Grenade Plugin
Change-Id: I890fd4c6e329ad1875bac00e98156f90f52c78f5
2016-07-14 15:06:45 +01:00
Kiall Mac Innes
5d0e4da38c Add centos7, remove Fedora Vagrant VM
The Fedora box has not been available in some time, and most Designate
deployments running on RH based distros will be RHEL/CentOS.

Change-Id: I05e34c908ac1d5a7a2037d43f47987cad6c25531
2016-06-07 16:32:18 +01:00
Jenkins
ab121e66b9 Merge "Add djbdns backend" 2016-06-02 11:35:17 +00:00
Federico Ceratto
d1c6f4f90b Add Wily and Xenial devstack VMs
Change-Id: Iedf0f5b603357d9a0d36a8128b6a646783e2124a
2016-05-25 18:02:26 +00:00
Federico Ceratto
be7e32dfaa Add djbdns backend
Add docs and basic tests
Update config sample file and support matrix
Change-Id: I709cea4e321f6bbee3b0f9f718fa6a9836af3ca5
2016-05-20 10:46:36 +00:00
Jenkins
6f774fc2d0 Merge "Remove contrib/tempest, as they have moved to the tempest plugin" 2016-05-16 20:22:25 +00:00
Graham Hayes
e2c5d0703c Fix the memory of the VM in VirtualBox
Also mount the grenade folder where it exists

Change-Id: I7abf586b1280599c5954b641c95efaea1fd9cbc3
2016-05-09 20:44:19 +01:00
Federico Ceratto
7a04eea3e4 Add setup_ubuntu_devstack
Change-Id: Ie5bc01132d615128786ccd8382785f065b6a77b5
2016-04-26 15:02:32 +00:00
Kiall Mac Innes
954a08e51b Remove contrib/tempest, as they have moved to the tempest plugin
Change-Id: Id553e2aff03617ebe8021894889ccf5a50c2e5bd
Depends-On: Idc31c00c95fde96087f4f222ae9c17e554e6b1fc
2016-04-21 15:15:49 +01:00
Kiall Mac Innes
ae69b5be70 Vagrant: Suppport local devstack / tempest clones
Change-Id: I1a0089db4d4c928791e7009ed6abcf202fabe6b7
2016-04-12 21:48:02 +01:00
Jenkins
03ebbd250c Merge "Add Tempest Plugin to DevStack Plugin" 2016-04-12 16:13:48 +00: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
5f6f606f92 Update vagrant local.conf for rally DS plugin
Rally swiched to a DevStack plugin a while back!

Change-Id: Ifcee7076726f165253a826a4bf07e0265a4e33d0
2016-04-06 16:48:02 +01:00
Kiall Mac Innes
d63af23c99 Set Ubuntu as primary Vagrantfile VM
Change-Id: Ia98e50b170a9c2402a38e38318a3d72dd2474bb7
2016-02-23 15:15:02 +00:00
Swapnil Kulkarni (coolsvap)
60947dab2b Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places.
Updated to non-deprecated LOG.warning.

Change-Id: If2c041cc6bb9513d528ca35611e1e3a96946ce4d
Closes-Bug:#1508442
2016-01-05 09:20:58 +00:00
Jenkins
4e7d773d9d Merge "Switch devstack to use local.conf" 2015-12-04 13:33:21 +00:00
Jenkins
5f1a3433d8 Merge "Remove deprecated devstack in contrib" 2015-12-04 13:24:04 +00:00
Endre Karlson
7879bff48d Switch devstack to use local.conf
Change-Id: Iaa4aeeb551eefb27157fc48be8bff894b002f17e
2015-12-04 11:51:34 +01:00
Jenkins
aba5674b80 Merge "Another improvement of info level log messages" 2015-11-30 20:00:39 +00:00
Jenkins
95cd2cd4be Merge "Replaces map() with six.moves.map() to provide py2/3 compatibility" 2015-11-30 12:37:50 +00:00
Endre Karlson
49b5d0c4af Remove deprecated devstack in contrib
Change-Id: I0ee9b2cc099848011743c9fffce7d8e957726bfb
Depends-On: I5f859408069789e1900546b57037e6994721e684
2015-11-29 17:38:37 +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
sonu.kumar
c7eca3fbd8 Another improvement of info level log messages
String interpolation should be delayed to be handled by the
logging code, rather than being done at the point of the
logging call.

So we should use-

LOG.info(_LI('some message: variable=%s'), variable)

instead of

LOG.info(_LI('some message: variable=%s') % variable)
Reference: http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Change-Id: I409358d9e35813f1875993b96fce86a0e2bc940b
2015-11-27 13:15:03 +05:30
sonu.kumar
870d8ce15a Replaces map() with six.moves.map() to provide py2/3 compatibility
Partially-Implements: blueprint designate-py3

Change-Id: I0f2a62bf47f06f1dfbb9a89517c7552c5ad331e3
2015-11-25 10:22:52 +05:30
Graham Hayes
c5949ccb28 Rename all references of Domain to Zone
This is a pretty invasive change :)

A non complete list of changes:

* Database Tables
* Database Columns
* Designate Objects and fields on Objects
* Designate Objects Adaptors stop doing some of the renames
* All RPCAPI versions are bumped - totally backward
  incompatable (function names have changed)

Change-Id: Ib99e918998a3909fa4aa92bf1ee0475f8a519196
2015-11-17 15:22:16 +00:00
Shuquan Huang
dcb1ae9f89 remove default=None for config options
In the cfg module default=None is set as the default value.

Change-Id: I8bb9142ae506584ccc4099024b588ad639c2a242
Closes-bug: #1323975
2015-11-08 20:43:07 +08:00
Jenkins
b7a157c2cd Merge "DevStack: Attempt to cleanup stale domains" 2015-11-04 21:55:53 +00:00
Kiall Mac Innes
3e3d4681b7 Fix Vagrantfile for Rally repo changes
Change-Id: Ifb026caa7fbbf0f7162b8400e97fe818d2783156
2015-09-22 12:24:26 +01:00
Endre Karlson
e90dbe1ae5 Add backend for Designate using SECONDARY zones
This will allow the use of a Designate installation as a backend using the
recently added SECONDARY zones feature. The patch includes bits for devstack
and tests.

Implement blueprint: d2d-driver

Change-Id: I5fcaf36482cf692432f7871ef08b2ae7fefe749a
2015-09-16 18:48:35 +02:00
Jenkins
66015ea969 Merge "Grammar mistakes have been corrected" 2015-09-01 11:23:05 +00:00
Jenkins
0d3b81c338 Merge "Refactor notify logic into backends" 2015-08-22 16:12:53 +00:00
venkatamahesh
1f944da12f Grammar mistakes have been corrected
Change-Id: I3e19f22e78fe3904817b180687dc62a0a8a6bc77
Closes-Bug: #1487688
2015-08-22 21:32:18 +05:30
Tim Simmons
520c32e514 Refactor notify logic into backends
The idea here is, like many things, the time and frequency of sending
NOTIFYs is not the same for every backend. So we let the backends decide
when to send their NOTIFYs. Ideally this makes the Pool Manager code simpler
and the backend code easier to understand, and avoids sending some
unnecessary NOTIFYs.

This requires a change to MiniDNS' rpcapi to make notify_zone_changed and
get_serial_number take a host and port, instead of a nameserver object.

Change-Id: I8d67cebeecc8261e715849aefeafd20f0d60d304
2015-08-12 18:57:57 +00:00
Endre Karlson
48435d84ae Verify DNS changes when updating RRSet
Change-Id: Ic4379b95cdc2fa9d62cfe0394ff7329533f38374
2015-08-11 09:52:17 +02:00
Kiall Mac Innes
7cac0bd4ee Introduce a Production Guidelines document
This document aims to provide a location for documented production
configurations and considerations. Including common misconfigurations,
attack mitigation techniques, and other relavant tips.

Change-Id: Ifd5fdb2546cca90766dcfe0aa657ab8d236569e1
Closes-Bug: 1471159
2015-07-28 10:40:13 +01:00