swift-ring-builder rebalance goes into an infinite loop

Bug #1638917 reported by James Troup
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
swift (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On Ubuntu 16.04 with a Mitaka cloud the attached ring files cause
swift-ring-builder to go into an infinite loop when asked to
rebalance.

The problem seems to be the following line in place_parts():

            while parts:

Which seems to assume that parts can never be << 0, but with these
ring files that assumption breaks.

I added the following debug statements:

  http://paste.ubuntu.com/23419920/

To get the following debug output:

  http://paste.ubuntu.com/23419916/

Revision history for this message
James Troup (elmo) wrote :
tags: added: canonical-bootstack
Revision history for this message
James Troup (elmo) wrote :
Revision history for this message
James Troup (elmo) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in swift (Ubuntu):
status: New → Confirmed
Revision history for this message
Corey Bryant (corey.bryant) wrote :

This looks to be fixed on more recent versions of swift via: https://bugs.launchpad.net/swift/+bug/1642538

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Let's track this fix over in that bug since that's where it was fixed upstream. Marking this as a dup.

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.