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
For some inexplicable reason grenade seems to think
horizon is installed, and is in ENABLED_SERVICES.
To avoid breaking the testing done in the other gates,
enable horizon to ensure that it is there for the
configure_designatedashboard function.
Closes-Bug: #1618253
Change-Id: I37d8756ba9f1e9f55ac9dd787ed19564e398d0dc
- More information about the actual worker code can be found
in `designate/worker/README.md` and in the inline docstrings
- Stand up a `designate-worker` process with an rpcapi, all
the usual jazz
- Implement a base `Task` class that defines the behavior of
a task and exposes resources to the task.
- Implement CUD Zone tasks, which includes Tasks that poll for zones,
send Notifies, and update status. These are all done in parallel
with threads using a shared threadpool, rather than iteratively.
- Implement a `recover_shard` task that serves the function
of a periodic recovery, but only for a shard. Call that
task with various shards from the zone manager.
- Put some shims in central and mdns so that the worker can
be switched on/off with a few config values.
- Changes Zone Manager -> Producer
- Removes zm rpcapi
- Adds startable designate-producer service
- Makes zone-manager an alias for producer service with a warning log
- Lots of renaming
- Moves zone export to worker
- API now uses central_api.export_zone to get zonefiles
- Central uses worker_api.start_zone_export to init exports
- Now including unit tests
- Temporary workarounds for upgrade/migration move the logic
into central if worker isn't available.
- Deprecates Pool manager polling options and adds warning msg on
starting designate-pool-manager
- Get some devstack going
- Changes powerdns backend to get new sqlalchemy sessions for each
action
- Sets the default number of threads in a worker process to 200,
this is pretty much a shot in the dark, but 1000 seemed like
too many, and 20 wasn't enough.
- Grenade upgrade testing
- Deprecation warnings for zone/pool mgr
The way to run this is simple, just stop `designate-pool-manager`
and `designate-zone-manager`, toggle the config settings in the
`service:worker` section: enabled = true, notify = true
and start `designate-worker` and `designate-producer` and you
should be good to go.
Change-Id: I259e9825d3a4eea58e082303ba3bdbdb7bf8c363
Currently, there is no support for Microsoft DNS
in designate. This patch addresses this issue
by adding support for Microsoft DNS Server using
an agent backend in designate.
Change-Id: I8db1906e17e5fb20fa6f3e5d1f13b2d701f0c032
Implements: blueprint msdns-backend-support
Depends-On: I029747555a58e0a8e362b65e6c0c470cf2774e42
Replace dict.iteritems() with dict.items(). The Python 3 dict
type has no iteritems() method, the old iteritems() method was
renamed to items().
Change-Id: I16c3dc5d56c074097d7cdda6635796cdc9d851e3
This adds the quotas api from /admin to /v2 with some changes.
All users can GET /v2/quotas/<project_id>
Users with "All-Projects" permission can view other projects
(by setting X-Auth-All-Projects:True in the HTTP Headers)
Users with "All-Projects" and "set-quotas" can set other
projects quotas
Moved the API rendering to Designate Object based rendering
Change-Id: I7a0b828824ad6f274d922748f5f9a68157cd939a
Depends-On: I06180a7402fc45940d4b312666cf2dfd33af1305
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
As tempest is creating and deleting zones, it does not wait
for all zones to be deleted before moving onto the next test.
This can lead to having a large number of pending delete zones
which consume all/most of the default quotas, and tests begin
failing.
By setting the default quotas higher in DevStack, we allow the
tests to proceed.
Change-Id: I3652bb06724fb8b89bb341c9d9f61b1dde056119
The new tempest plugin uses a different group name to the legacy
functionaltests, so we should set both as we transition.
Change-Id: Ie6b0f11399cdcd3d2245872bcd24045e756a5c8a
Depends-On: If524b2d961088745b7e20a279626971c53db9d7c
This updates our devstack plugin to use the current clone+install
method for the client (missing vars) and dashboard (replaced with
the new method).
Designate itself is still using old vars, but I suspect this is
a leftover and there's really no need for Designate to try
clone itself since the plugin is inline now...
Change-Id: I2189abc196d74520fa3fae0da215a1c6dd891387
In order to fully remove the V1 API, we need to be able to
deploy DevStack entirely without the API. As a step towards
removing the API, we'll (at a date to be chosen later) disable
API v1 by default in both the codebase and DevStack plugin.
Change-Id: If1f27eb43f014959551c298f10c6c5fcb95e2fe8
* Add a new backend for DevStack allowing the Agent
backend to be configured.
* Change the agent to choose a sane port by default, it's extremely
unlikely anyone is exposing the agent on port 53 intentionally.
* The agent itself is not yet configured, this will come later as it
involves refactoring most of the BIND non-agent backend into a lib.
* Fail when the user asks for the agent backend, without also enabling
the agent service.
Change-Id: Iedde58f4f5a2ea89cb9da78aaec1853208af8fc9
It is required to compile i18n message catalogs during stack.sh
to display translated messages appropriately.
Change-Id: Ic44d8d5b12be1a9128c871f223c9d8712b3205e1
This change adds the tooling to use the DB Tables created for pool
config data and the tooling to migrate the config info itself.
Change-Id: If99dbf527ef1ac0f05f15fe77f68f64e357fe0a5
The package name is 'bind', it was bind even in el6.
Also the bind9 was hardoded instead of using the $BIND_SERVICE_NAME.
Change-Id: I4a02800e5b527f0887c02e9541dc34ac04f5b517
Reecently, while the "enabled" files were refactored from a
2 digit to 4 digit numbering scheme, we had to introduce
some logic to handle both the old and new numbering to
ensure the change made it through the gates.
Now that that change has successfully been committed,
this change cleans up that excess logic.
Change-Id: Ie7769a52f944fdceabdf9cec64c678425d341129
- This implements a few `TODO`s in the code around actually polling
nameservers for zone deletes. I found this necessary for changes
that were truing up missed DELETEs, and wanted to make a poll/
update_status call to verify deletion across a fleet of nameservers
when one was down.
- This originally failed in PowerDNS, because in older versions
that are still in all the distro repos, PDNS responded with a
NOERROR and empty answer section when it got a query for a zone
it knew nothing about. NEAT.
http://blog.powerdns.com/2015/03/02/from-noerror-to-refused/
- NOTE: This increases timeout for functional tests and we maybe
shouldn't do that.
Change-Id: Ied1e5daf4798127e00a06265164759d98fc9ba72
Recently, the Horizon Dashboard project launched a new approach
for loading dashboard panels at startup, and along with that, a
new 4 digit numbering scheme for the files that enable that to
happen.
The change is happening in the designate-dashboard project. This
patch updates the file names that get sym-linked into Horizon.
Change-Id: Ifc9ee0a2afbd6b826993ff03c1d23aacabf3144e
After merge of change [1] to devstack project, preconfigured creds for
Tempest cannot be used anymore. But Manila requires such.
For the moment, latest Tempest interfaces cannot allow us to use
preconfigured creds because of bug #1524717.
So, until this bug fixed, we should workaround Devstack changes and
set legacy opts explicitly.
[1] I65b56ff681d6c27094380693c953fbc3664eceb0
Related-Bug: #1531049
Closes-Bug: #1531189
Change-Id: I4dc266713ec06bc6e98616a1277c8ae6cadf199d
This patch will not remove the existing Devstack integration
in contrib/devstack.
Change-Id: I23ef00bb136e92abc5e69a9bbe1093cad9d2a362
Closes-bug: #1504214