2523 Commits

Author SHA1 Message Date
Federico Ceratto
4cf00bfb7f Check TXT record length limit
Change-Id: Ie423cb7037625d0cfaf4084bf8660790c45cd7c6
Closes-Bug: #1474012
2015-12-01 13:25:58 +00:00
Jenkins
aba5674b80 Merge "Another improvement of info level log messages" 2015-11-30 20:00:39 +00:00
Jenkins
aa756a56d4 Merge "Updated from global requirements" 2015-11-30 20:00:36 +00:00
Jenkins
e82d21181a Merge "Add mdns unit tests for main service handler" 2015-11-30 12:51:54 +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
OpenStack Proposal Bot
2c0357fd25 Updated from global requirements
Change-Id: I849b50f805fbd8de63a87e127b01b46462c668e1
2015-11-27 22:36:53 +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
f20ca36d15 Improving 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)

Change-Id: I6b3e578f2a0b66f253d49fe44766b6a31196a7c4
link: http://docs.openstack.org/developer/oslo.i18n/guidelines.html
2015-11-27 12:26:28 +05:30
Federico Ceratto
de03a46987 Test database schema and indexes
Ensure that tables and indexes have been created by the migrate scripts
Minor changes

Change-Id: I3c5025fc810677ac6f540b175bab7501268b2fa4
2015-11-25 15:31:40 +00:00
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
Jenkins
bb9de39180 Merge "Added HTTP_X_FORWARDED_PROTO/HOST support to API" 2015-11-24 16:55:09 +00:00
Jenkins
e0d8c65958 Merge "Ensure designate-manage reads config before policy" 2015-11-24 16:03:04 +00:00
Jenkins
291f0026dc Merge "Updated from global requirements" 2015-11-24 16:02:22 +00:00
Jenkins
3898da8c25 Merge "Adds api_export_size attribute to admin API" 2015-11-24 15:40:52 +00:00
Jenkins
b0b595b6e8 Merge "Add Reno for release notes tracking" 2015-11-24 15:30:18 +00:00
Graham Hayes
deb622eb4b Added HTTP_X_FORWARDED_PROTO/HOST support to API
* Added oslo.middleware's HTTPProxyToWSGI middleware
 * Deprecated designate's SSL middleware
 * Fixed "//" in versions URIs

Change-Id: Id205246f791f33fd02aa9a17d4247bdf5b310088
2015-11-24 15:25:17 +00:00
OpenStack Proposal Bot
ae22322751 Updated from global requirements
Change-Id: Ic26a3b059ea7e85e3d23099a59c16d98cf7184f6
2015-11-24 14:40:30 +00:00
Kiall Mac Innes
52500ae2e4 Ensure designate-manage reads config before policy
With the designate-manage command, the policy file is read before
the configuration is parsed.

If the policy file is in a non-default location, all designate-manage
commands would fail.

Change-Id: Ic1e37c18cc61732db8df0d59cdb687b0167d63c0
Closes-Bug: 1519356
2015-11-24 13:24:18 +00:00
sonu.kumar
9fe1eea2a8 Adds api_export_size attribute to admin API
Closes-Bug: #1513226

Change-Id: I23bcb9ebab6ee56fcdbe5916533a4a8249291f8f
2015-11-24 11:05:02 +05:30
Graham Hayes
08f30bda8b Add Reno for release notes tracking
Change-Id: If68f435f9b866a53e6b3a7b506a299eca6cf0b7e
2015-11-23 18:00:36 +00:00
Jenkins
e5e92222e2 Merge "Hide zones flagged for deletion in API v1" 2015-11-23 16:17:57 +00:00
Jenkins
a1fae38903 Merge "Add support for interface and service" 2015-11-23 16:16:48 +00:00
Eric Larson
b04466abe5 Add mdns unit tests for main service handler
At the midcycle we discussed improving the test suite. When writing
tests for ALIAS records, I ran into some dependencies that weren't
necessary. These tests are a start to allow small refactorings to
allow more incremental improvements to the code and require less
setup/teardown over time.

More specifically, this lazily loads the central api instance, allowing
it to be overridden in tests as well as providing clarification seen in
a comment regarding what DNS opcodes we actually support.

Change-Id: I065811c9cc22cd44d729f1578733514250cd3c71
2015-11-18 21:50:56 +00:00
Federico Ceratto
a0ff7859a7 Hide zones flagged for deletion in API v1
Add docstrings and improve testing
Related to https://bugs.launchpad.net/designate/+bug/1506757

Change-Id: Iaf4c2b28c7f62985c2b4abc0f7d791c91760bfa5
2015-11-18 17:17:42 +00:00
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
Graham Hayes
3e9ec422ab Added placeholder migrations for stable/liberty
Change-Id: Id48163a61c1b5884df6f623bb4abd7347792f955
2015-11-12 18:36:05 +00:00
Bertrand Lallau
74fa2407e3 Improve logging in designate.network_api
We should delegate (when possible) formatting to the logger in order to
perform formatting only when needed, by using:

 LOG.<level>(message, data)

instead of:

 LOG.<level>(message % data)

Change-Id: Ie6e9e18ea13affbb9321fb899d88a2290c56c71f
2015-11-12 15:28:58 +01:00
Endre Karlson
ad6bb2221c Add support for interface and service
Change-Id: I79af53c779e7b31e943cd3d3b3e3e446bce59707
2015-11-12 14:24:12 +01:00
Jenkins
e84810500f Merge "Handle NO_DOMAIN status" 2015-11-10 14:44:14 +00:00
Jenkins
c679735d85 Merge "Removes zone files when a zone is deleted" 2015-11-09 19:32:15 +00:00
TimSimmons
ed2861a019 Handle NO_DOMAIN status
Previous to this patch, when MiniDNS got a `NO_DOMAIN` status back,
it didn't do anything to handle it. Domains just hung in ERROR.

closes-bug: #1416264
Depends-On: I08d1eed1874eccb51b6a614f5e69207dd74196eb
Change-Id: I4348f714868f38c2549c516fe83cce608c0c8d59
2015-11-09 13:08:16 -06:00
Jenkins
6232567f8d Merge "Add functional tests for TLDs" 2015-11-09 18:54:23 +00:00
Jenkins
5295a39769 Merge "Fix argument order in assertEqual to (expect, obs)" 2015-11-09 18:39:59 +00:00
Jenkins
fe734d4004 Merge "Switch to oslo.reports" 2015-11-09 18:39:55 +00:00
Jenkins
966c0712dc Merge "remove default=None for config options" 2015-11-09 18:25:08 +00:00
Jenkins
b795fedb25 Merge "Use oslo_config PortOpt type for port options" 2015-11-09 15:53:33 +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
Bertrand Lallau
63d1b2a590 Fix argument order in assertEqual to (expect, obs)
assertEqual expects that the arguments provided to it should be
(expected, observed). If a particular order is kept as a convention,
then it helps to provide a cleaner message to the developer if Unit Tests
fail. There are several Unit Test files where the arguments for assertEqual
have been swapped.

Change-Id: I6fdedcde67f76883257d35d1b812ab8a0e3e0733
Related-Bug: #1259292
2015-11-05 21:39:38 +01:00
Jenkins
9fe583fcb2 Merge "Use assertIn and assertNotIn" 2015-11-05 16:44:00 +00:00
Bertrand Lallau
c68f876da9 Switch to oslo.reports
Oslo_reports enables OpenStack projects to dump Guru Meditation
Reports with useful debugging information to files or stderr.

Change-Id: I5d685c691ae519e6f027af4adf9a4690573e45ff
2015-11-05 10:55:29 +01:00
Bertrand Lallau
7ab46993a7 Use oslo_config PortOpt type for port options
The oslo.config>=2.6.0 library provides new PortOpt type to validate
a range of port.

Change-Id: I2b51a2640d0a6511c856815a8e3f428cacfe885a
2015-11-05 10:46:13 +01:00
kenichiro matsuda
7618d073c9 Removes zone files when a zone is deleted
Add "-clean" option to "rndc delzone".
Note:
 The "-clean" option will take effect on bind>=9.10.0.

Change-Id: I911e929a6fea1d8c73a7247a8a574abb95335709
Closes-Bug: 1507243
2015-11-05 09:52:11 +09:00
Jenkins
3c9a7794aa Merge "Fix order of argument in assertEqual" 2015-11-04 22:04:35 +00:00
Jenkins
13cd1d7bf0 Merge "Updated api-export-size attribute in quota update docs" 2015-11-04 21:55:56 +00:00
Jenkins
b7a157c2cd Merge "DevStack: Attempt to cleanup stale domains" 2015-11-04 21:55:53 +00:00
Jenkins
2f1766c934 Merge "Use oslo_config IPOpt support" 2015-11-04 21:43:39 +00:00
Jenkins
e6adbb99fe Merge "Fixes Output for zone type filter" 2015-11-04 21:43:33 +00:00
Jenkins
616b939f76 Merge "Uses assertIsNone instead of assertEqual(None, ***)" 2015-11-04 21:43:27 +00:00