252 Commits

Author SHA1 Message Date
Kiall Mac Innes
6df939f2a3 Allow DevStack to retry DNS queries to handle async CRUD
With pool-manager, records are created/deleted asynchronously, so we update
the DevStack code to implement a retry+timeout on DNS queries.

Additionally, move exercises only functions into the exercises script.

Change-Id: Ic94fac4c4a2845780c24e9489d39b4f2f39a1d55
Closes-Bug: 1398786
2014-12-03 13:15:47 +00:00
rjrjr
33866dfbd1 Pool Manager
- Integrated with Central via pool_manager_proxy backend.
- Integrated with mDNS.
- Can create, delete, and update domains and records through Pool Manager.

Change-Id: I5e9697e2fe9f9749dac8dd7f542c38477d50c568
Partially-implements: blueprint server-pools-service
2014-12-02 07:59:14 -07:00
Jenkins
450665c0bf Merge "Update gate_hook to support multiple drivers" 2014-12-01 16:47:39 +00:00
Kiall Mac Innes
ba8f7d7729 Update DevStack PORT vars for naming consistency
Change-Id: I3c3687ab382202fda1445b96520fdf2ac72b06fa
2014-11-28 18:20:55 +00:00
Kiall Mac Innes
a91dfb1ffd Update gate_hook to support multiple drivers
The intent here is to begin allowing us to gate on more than
just PowerDNS.

Change-Id: Ib91a50a18293da672aedd590fc412a97fae3d348
2014-11-27 03:52:43 +00:00
Graham Hayes
46a50e06b8 Added designate-dashboard code to contrib/designate-dashboard
Added to devstack as well.

Change-Id: I98eed46a8dd9918ba36c97fe40619ec42136c723
2014-11-26 23:18:15 +00:00
Kiall Mac Innes
eb04d93ca3 Add Rally to Vagrant VM
Change-Id: I047752617c7808523c84c1920cc0a945ee1cd861
2014-11-19 15:59:44 +00:00
Endre Karlson
63b58ac2d0 Detect CPU on OSX as well
Change-Id: I91720ee359230ce06a524e2f850c41da8774e2a5
2014-11-15 14:04:33 +01:00
Jenkins
8dbaccc9c5 Merge "Pool Manager - Pool Manager Proxy Backend and Devstack" 2014-11-12 15:26:12 +00:00
Sergey Skripnick
2a5790c9c1 Add ability to configure extensions via local.conf
Add variables DESIGNATE_ENABLED_EXTENSIONS_V1 and V2
Enable quotas by default

Change-Id: Ieac9885f7571d4864eed109f3c5273e027d7f0d2
2014-11-11 15:51:10 +02:00
rjrjr
75986db67f Pool Manager - Pool Manager Proxy Backend and Devstack
- Implemented a pool manager proxy traditional backend
- Incorporated pool manager into Devstack
- Changed pool_name to pool_id in [service:pool_manager]

To use pool manager in Devstack add to the localrc:

    ENABLED_SERVICES+=,designate-pool-manager
    DESIGNATE_BACKEND_DRIVER=bind9_pool

Change-Id: I66b81e30067c7c5ff4f1d7c8fd2eecc3b0a3012c
Partially-implements: blueprint server-pools-service
2014-10-31 10:17:42 -07:00
rjrjr
bc17db433c Pool Manager Service Changes
- Added the Pool Manager cache (including test cases)
- Added the pool_manager_status table (including test cases)
- Added the PoolManagerStatus object
- Added the PoolServer object
- Added the BackendOption object
- Added support for global and server specific backend configurations
- Added a backend driver for pool manager (BIND9)
- Stubbed out the pool manager service (including periodic_sync)

Change-Id: I3d94e5df663d2938b0e6017fe43c28c71f7a29a0
Partially-implements: blueprint server-pools-service
2014-10-24 15:12:35 -07:00
Kiall Mac Innes
74817f90aa Add a new PowerDNS backend based on MiniDNS
This is stage one of phasing out the old PowerDNS driver, as we move
through the Kilo cycle and mDNS/pools become reality, the original driver
can be removed.

Implements-Blueprint: transition-powerdns-to-mdns
Change-Id: I7a3aa0a894e2c0a4fa565e8d58cccba3644e0cac
2014-10-10 14:36:44 +01:00
JordanP
b0c4c68862 Use devstack's new way of doing things
Recent commits in devstack introduce shinny new helper functions. Let's
use them.

run_process() introduced in Ia3843818014f7c6c7526ef3aa9676bbddb8a85ca

configure_auth_token_middleware() introduced in
I3b6727d5a3bdc0ca600d8faa23bc6db32bb32260

Change-Id: Id8c3f71c98c7582f6f0c5ef589396af741958484
2014-09-26 11:51:19 +00:00
Rafael Rivero
57c9682e1c Fixes docstring typos
Fixes several docstring typos.

Change-Id: I4330792c1d6945bd1ba624f8d07d43c7b791be31
2014-09-24 15:26:52 -07:00
Kiall Mac Innes
b266468945 Correct Vagrant+DevStack paths
Change-Id: Ic7ad413b7dab44fa9cf5d6f3d4cd9534d44d2414
2014-09-15 21:54:11 +01:00
Kiall Mac Innes
2343e34906 Split Vagrant out of contrib/devstack
Change-Id: I9680ab20cd480f3100a628675cc813f46bcb6813
2014-09-13 14:33:58 +01:00
Jenkins
981a132090 Merge "Fix warnings made by keystone_authtoken" 2014-09-13 11:11:06 +00:00
JordanP
6a8a488eb1 Fix warnings made by keystone_authtoken
auth_* config is deprecated in keystone_authtoken. This change
fixes the log "Configuring admin URI using auth fragments. This
is deprecated, use 'identity_uri' instead." in the gate logs.

The patch also configures auth_uri because keystone_authtoken now
requires it to be set (see the gate log "Configuring auth_uri to point to the
public identity endpoint is required; clients may not be able to
authenticate against an admin endpoint")

Change-Id: I5e067a3e4900e7eb5e0a1230532834e43538145a
2014-09-11 09:21:18 +00:00
JordanP
0dfd547571 Devstack Integration : Coding style fix
Prepare for contrib/devstack/lib/designate to be merged
in Devstack

Change-Id: I771b118fa0685fa3f489ed0d7b086b5d4d634b77
2014-09-11 08:11:55 +00:00
JordanP
f040a466d7 Devstack setup : use get_or_create_* helpers
These helper functions are sourced from functions-common

Change-Id: Ib0fe39c7478df189e9afa75e3355df5cfc8ed6b5
2014-09-10 11:18:45 +00:00
Vinod Mangalpally
08e0e04218 Add support for AXFR requests
AXFR requests are now handled by minidns.

Implements: blueprint mdns-designate-mdns-axfr
Change-Id: I2e89cffda53ece1876fc41b1ae5930a517ba0c27
2014-08-31 11:42:47 -05:00
Jenkins
d3bed0204b Merge "Fix get_record_id to return only the requested id" 2014-08-30 14:03:28 +00:00
Vinod Mangalpally
2a72017653 Fix get_record_id to return only the requested id
This fixes get_record_id to return the requested record id checking
both the record name and the record type.

Change-Id: I51ab0c92a2749442789a765d06aa62abd3a068ae
Closes-Bug: 1363425
2014-08-30 08:31:24 -05:00
Kiall Mac Innes
6ca850c5fa Fix DevStack xtrace output
This ensures xtrace is correctly restored, allowing us to see the commands
executed during, for example, exercise runs.

Change-Id: I49434ae752a6c214892634a3dfa9f24b814ebd59
2014-08-30 14:04:13 +01:00
ravikumar-venkatesan
cf8322e544 Designate API tests for Tempest Framework
Creates a new folder 'tempest' under 'designate/contrib' as a
placeholder for Designate API tests.
This submission implements CRUD operations on 'domains', 'records'
and 'servers' of Designate Api.
Adds related JSON supporting methods in client files
'domains_client.py', 'records_client.py', and 'server_client.py'
Also implemented schema validation for all the operations under
'domains.py', 'parameter_types.py', 'records.py', 'servers.py' files.
Modified 'tempest.conf.sample', 'config.py' , and 'clients.py' to
add parameters for enabling designate service.

Change-Id: I5fcac06200ce534a9cddf1e7ed9393ae5124a681
2014-07-30 11:44:27 +00:00
Kiall Mac Innes
fbb2401861 Install only the necessary files during a DevStack gate run
Previously, we installed all files in contrib/devstack, which includes
a sample localrc file which should not be used.

Change-Id: I5e73a42509e339e3f1a576b3e44ee00413fa566c
2014-07-25 15:56:57 -07:00
Rich Megginson
112d292a27 devstack exercise for deletion, dns checking
This adds record and domain deletion to the designate.sh devstack
exercise.  This also adds DNS checking for the domain/record operations,
to verify that the changes were made in DNS.  Some functions in
designate.sh were moved to lib/designate and refactored slightly.
This also removes some IPA variables that were refactored into a
backend specific file, and fixes a bug in the ipa backend file.

Closes-Bug: #1326141
Change-Id: Ibb86b0b237b3d73a145733bc88dbc18dddbc20f5
(cherry picked from commit 05291ddbf59f638870a561b1182908b676d92832)
2014-07-25 15:19:21 -07:00
Kiall Mac Innes
9552ccc2c9 Switchover to oslo.i18n package
Change-Id: I18d9a21b75053d382fb5bbebba226eda4c174f0c
2014-07-24 14:47:44 -07:00
Kiall Mac Innes
f819482af9 Add a minimal gate_hook.sh script
This will ensure that, even after I0c44229b2f67c9ea50e3f8786dccd8c50eb8e5e3
lands, our DevStack gate job will continue to pass.

Change-Id: I63ec82bf5b6ee2c6b58608676ed6709adec6fab2
2014-07-21 18:17:34 +01:00
Jenkins
0a6ad8fd1e Merge "Clear out junk from Vagrant+DevStack configs" 2014-07-18 18:36:38 +00:00
Jenkins
9500c37f44 Merge "DevStack: Enable V2 API" 2014-07-18 15:51:46 +00:00
Kiall Mac Innes
00a1a44651 Clear out junk from Vagrant+DevStack configs
Change-Id: Id5909cf2b43d4a91e5a62b11cfb9329cb84c762c
2014-07-18 16:50:59 +01:00
Kiall Mac Innes
e1046d1ae9 DevStack: Enable V2 API
Change-Id: I204a8169a7aff48215fb4e591a7999d307e3672d
2014-07-18 13:44:28 +01:00
Kiall Mac Innes
2c934b5a8e DevStack: Correct the key's passed to setup_colorized_logging
Change-Id: Ic3a1077a725d88b25d94c4418d3297f658f177f1
Closes-Bug: 1344011
2014-07-18 13:32:43 +01:00
Christian Berendt
6652bcc842 Enabled hacking check H401
* [H401] Docstrings should not start with a space.

Change-Id: I1e98718a6612aea04453904fa4eca892a1dd1744
2014-07-11 15:07:19 +02:00
Kiall Mac Innes
86554c4aee Ensure contrib/devstack/install.sh works from any path
Change-Id: I56af596488a2774e8426853550823d88759904e0
2014-07-01 16:26:28 +01:00
Kiall Mac Innes
08d494ee52 Update stackforge references to openstack
Change-Id: I5d99ed16e10bf8118ac253f097918b9ec78b1f85
2014-06-30 12:21:20 +01:00
Endre Karlson
9d5d70e7f1 Switch to oslo.db and fix cmd.manage
This change doesn't remove all of the d.sqla.* modules for compat so we don't
need to change more things then needed. Things like multiple engines etc are
supported via a _FACADE dict in d.sqla.session and other things we need as
well.

We remove d.o.common.db code since it is not needed anymore and technically
replaced by oslo.db.

Notably the *biggest* change is changing database_connection to connection.

Also fixes problems with arguments in cmd.manage

Change-Id: I948a42b7f3dbc1d484200e86b3f8d0b85769ad08
2014-06-20 15:27:54 +02:00
Jordan Cazamias
50295fb39e Fix style errors H305 and H307
H305: Imports not grouped correctly
H307: Like imports should be grouped together

Change-Id: Ic63d253e015298c7b952121a4b3634d2b1bdaf92
Implements: blueprint new-hacking-style-rules
2014-06-18 17:35:43 -05:00
Jenkins
07417b163c Merge "Update hacking package, fix I18n style issues" 2014-06-18 22:13:31 +00:00
Jordan Cazamias
cad8ab8785 Update hacking package, fix I18n style issues
Hacking package updated from '>=0.8.0,<0.9' to '>=0.9.2,<0.10'.
Many new style rules have been added, some of which Designate violates.
Only the style rules that pertain to I18n have been addressed.
The rest have been added to the ignore list in tox.ini for further review.

Change-Id: I5c559c491ff9bee2346b1589e7bb7e117137609b
Implements: blueprint standardize-logging
Closes-Bug: bug #1330540
2014-06-18 14:41:11 -05:00
Jenkins
0352854471 Merge "DevStack: Additional exercises for records and domain-servers-list" 2014-06-18 14:51:59 +00:00
Jenkins
ee45227f03 Merge "DevStack: PowerDNS and Bind9 should listen on SERVICE_HOST" 2014-06-16 20:19:36 +00:00
Jenkins
caa1c1df87 Merge "DevStack: Fix Bind9 Apparmor profile" 2014-06-16 20:18:18 +00:00
Kiall Mac Innes
71f6aec13f DevStack: PowerDNS and Bind9 should listen on SERVICE_HOST
Change-Id: I7eec6ddf9f7dd4ee17d0f50938b6fefdbfcc3dae
(cherry picked from commit 732b9cc9ae5792bdb154d318665d106152469d29)
2014-06-13 12:54:11 +01:00
Kiall Mac Innes
f91a179a18 DevStack: Fix Bind9 Apparmor profile
Change-Id: Ib44f4d9633161e7c019284488d4f31446f20622a
2014-06-13 12:50:08 +01:00
Jordan Cazamias
a0d9b4cac6 Change log statements to meet I18n guidelines
Change-Id: Id76bcb71369302a559d2c2c5bd6046dff05a488e
Implements: blueprint standardize-logging
2014-06-11 17:08:45 -05:00
Kiall Mac Innes
a67e6088d3 DevStack: Additional exercises for records and domain-servers-list
Change-Id: Idb810fb01fa89b6e5cfdaa3eddcdadae5b38d837
2014-06-10 08:38:47 +01:00
Kiall Mac Innes
d9b15425ed DevStack/Vagrant: Specify the minimum supported Vagrant version
Change-Id: I56cc2cc506c55deb2e11425a44b40f170492495e
2014-06-10 00:48:42 +01:00