Erik Olof Gunnar Andersson 46df77d731 Fix Producer shard range ignoring the last shard
We define the shard range like this in objects
> 'shard': fields.IntegerFields(nullable=True, minimum=0, maximum=4095),

The problem is that in code we handle it using range(0, 4095), but that
range does not include the final shard value of 4095.

Closes-bug: #2044278
Change-Id: I71b0b1b237b5d5f12209f431db19cda1b44a1112
(cherry picked from commit 54d2d2cf18)
2023-11-27 22:32:09 +00:00
2020-02-23 17:33:27 +01:00
2020-04-01 21:52:38 +00:00
2021-02-16 15:22:09 -07:00
2019-03-25 15:32:40 +00:00
2018-06-03 11:32:57 -04:00
2018-07-11 17:44:40 +07:00
2020-04-23 15:33:29 +00:00
2018-06-03 11:32:57 -04:00
2014-07-04 16:40:02 +02:00
2013-06-18 16:13:03 -04:00
2019-10-03 00:36:42 -07:00
2020-04-05 08:11:51 +02:00
2020-04-05 08:11:51 +02:00

Team and repository tags

image

OpenStack Designate

Designate is an OpenStack project, providing DNSaaS.

IRC: #openstack-dns @ freenode

Installation: https://docs.openstack.org/designate/latest/

API

To learn how to use Designate's API, consult the documentation available online at:

For more information on OpenStack APIs, SDKs and CLIs in general, refer to:

Development

Designate follows the OpenStack Gerrit Workflow

Setup

Setup a working environment:

git clone https://opendev.org/openstack/designate
cd designate
virtualenv .venv
. .venv/bin/activate
pip install -r requirements.txt -r test-requirements.txt
pip install -e .

Building Docs

To build the documentation from the restructured text source, do the following:

tox -e docs

Now point your browser at doc/build/html/index.html (the official documentation is published to docs.openstack.org by the maintainers.

Testing

Execute all unit tests

tox -e py36

Execute only backend tests

tox -e py36 -- unit.backend

Execute only a single test

tox -e py36 -- unit.backend.test_pdns4.PDNS4BackendTestCase.test_create_zone_success

Contributing

Install the git-review package to make life easier

pip install git-review

Branch, work, & submit:

# cut a new branch, tracking master
git checkout --track -b bug/id origin/master
# work work work
git add stuff
git commit
# rebase/squash to a single commit before submitting
git rebase -i
# submit
git-review

Other Information

Description
OpenStack DNS As A Service (Designate)
Readme 60 MiB
Languages
Python 93.8%
Shell 3.4%
PHP 2.6%
HTML 0.1%