Invalid API request during claim creation with maximum TTL

Bug #1575870 reported by Andrew Robbins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zaqar
Fix Released
High
Feilong Wang

Bug Description

To reproduce the issue:

$ openstack queue create Q1
+-------+-------+
| Field | Value |
+-------+-------+
| Name | Q1 |
+-------+-------+

# Then, post some messages to Q1 ...

$ openstack claim create --ttl 1209600 --grace 60 --limit 1 Q1
Error response from Zaqar. Code: 400. Title: Invalid API request. Description: The TTL for a claim may not exceed 1209600 seconds, and must be at least 60 seconds long..

You should see an error message similar to the above one. The weird thing is that this error does not happen for small TTLs, like 60.

Feilong Wang (flwang)
Changed in zaqar:
assignee: nobody → Fei Long Wang (flwang)
importance: Undecided → High
status: New → Triaged
Revision history for this message
Andrew Robbins (agdrew) wrote :

I found the exact value: --ttl 43200 works, but --ttl 43201 fails.

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

Reviewed: https://review.openstack.org/310569
Committed: https://git.openstack.org/cgit/openstack/zaqar/commit/?id=cae19a28864a753fd3c4aa8b1f88d3a4a8c12140
Submitter: Jenkins
Branch: master

commit cae19a28864a753fd3c4aa8b1f88d3a4a8c12140
Author: Fei Long Wang <email address hidden>
Date: Thu Apr 28 07:10:01 2016 +1200

    Fix wrong claim error message

    Now when create a claim with a big number, the message is not
    correct. It's showing the max TTL of message instead of claim.
    This patch fixes it.

    Closes-Bug: #1575870

    Change-Id: Ia948cc521a48101fa17ec23f49b5b03164f02940

Changed in zaqar:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/zaqar 3.0.0.0b1

This issue was fixed in the openstack/zaqar 3.0.0.0b1 development milestone.

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.