Producer range ignores shard 4095

Bug #2044278 reported by Erik Olof Gunnar Andersson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Critical
Unassigned

Bug Description

Producer range ignores shard 4095.

In the database we define the shard range like this
> 'shard': fields.IntegerFields(nullable=True, minimum=0, maximum=4095),

But in code we define it like this which generates a range from 0 to 4094.
> range(0, 4095)

Changed in designate:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/designate/+/901592

Changed in designate:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.opendev.org/c/openstack/designate/+/901592
Committed: https://opendev.org/openstack/designate/commit/54d2d2cf187aec8d73bd7588dabdc4279ca8851b
Submitter: "Zuul (22348)"
Branch: master

commit 54d2d2cf187aec8d73bd7588dabdc4279ca8851b
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Wed Nov 22 08:10:49 2023 -0800

    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

Changed in designate:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/designate/+/901938

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/designate/+/901939

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/designate/+/901940

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/designate/+/902021

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/designate/+/902022

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/designate/+/902023

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/designate/+/902024

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/designate/+/902025

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/designate/+/901938
Committed: https://opendev.org/openstack/designate/commit/78a53cde57e17fde59d5868255878ef19c64bcac
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 78a53cde57e17fde59d5868255878ef19c64bcac
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Wed Nov 22 08:10:49 2023 -0800

    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 54d2d2cf187aec8d73bd7588dabdc4279ca8851b)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/designate/+/901939
Committed: https://opendev.org/openstack/designate/commit/ff1986cbb755f0d74a7db98623d6d17816d933a6
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit ff1986cbb755f0d74a7db98623d6d17816d933a6
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Wed Nov 22 08:10:49 2023 -0800

    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 54d2d2cf187aec8d73bd7588dabdc4279ca8851b)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/designate/+/901940
Committed: https://opendev.org/openstack/designate/commit/d247267823034c5e656f74e91b50475aa54d3fa6
Submitter: "Zuul (22348)"
Branch: stable/zed

commit d247267823034c5e656f74e91b50475aa54d3fa6
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Wed Nov 22 08:10:49 2023 -0800

    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 54d2d2cf187aec8d73bd7588dabdc4279ca8851b)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/designate/+/902023
Committed: https://opendev.org/openstack/designate/commit/60e04455c55a175a04c9c25f864c5aa9b51b5dfa
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 60e04455c55a175a04c9c25f864c5aa9b51b5dfa
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Wed Nov 22 08:10:49 2023 -0800

    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 54d2d2cf187aec8d73bd7588dabdc4279ca8851b)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/designate/+/902025
Committed: https://opendev.org/openstack/designate/commit/46df77d731c4f01449e15ccbf032135e3033fd47
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 46df77d731c4f01449e15ccbf032135e3033fd47
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Wed Nov 22 08:10:49 2023 -0800

    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 54d2d2cf187aec8d73bd7588dabdc4279ca8851b)

tags: added: in-stable-ussuri
tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/designate/+/902024
Committed: https://opendev.org/openstack/designate/commit/b1cd253895b8cefad3a2fa662543f88185151309
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit b1cd253895b8cefad3a2fa662543f88185151309
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Wed Nov 22 08:10:49 2023 -0800

    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 54d2d2cf187aec8d73bd7588dabdc4279ca8851b)

tags: added: in-stable-xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/designate/+/902022
Committed: https://opendev.org/openstack/designate/commit/64655c9076a5487fc2dea59a109c7d0d5201b0e9
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 64655c9076a5487fc2dea59a109c7d0d5201b0e9
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Wed Nov 22 08:10:49 2023 -0800

    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 54d2d2cf187aec8d73bd7588dabdc4279ca8851b)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/designate/+/902021
Committed: https://opendev.org/openstack/designate/commit/3cce8991b85af30960d65541a2e84532f01aa4e1
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 3cce8991b85af30960d65541a2e84532f01aa4e1
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Wed Nov 22 08:10:49 2023 -0800

    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 54d2d2cf187aec8d73bd7588dabdc4279ca8851b)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate 15.0.2

This issue was fixed in the openstack/designate 15.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate 16.0.2

This issue was fixed in the openstack/designate 16.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate 14.0.4

This issue was fixed in the openstack/designate 14.0.4 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate 17.0.1

This issue was fixed in the openstack/designate 17.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate ussuri-eol

This issue was fixed in the openstack/designate ussuri-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate victoria-eom

This issue was fixed in the openstack/designate victoria-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate wallaby-eom

This issue was fixed in the openstack/designate wallaby-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate xena-eom

This issue was fixed in the openstack/designate xena-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate 18.0.0.0rc1

This issue was fixed in the openstack/designate 18.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.