client.py error with container list greater than 10,000

Bug #711065 reported by Jay Payne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Critical
Jay Payne

Bug Description

get_account now returns a tuple.

Traceback (most recent call last):
  File "/usr/local/bin/swift-stats-report", line 7, in <module>
    execfile(__file__)
  File "/home/letterj/openswift/swift/bin/swift-stats-report", line 830, in <module>
    account, container_ring, options)
  File "/home/letterj/openswift/swift/bin/swift-stats-report", line 188, in container_dispersion_report
    full_listing=True)[1]]
  File "/home/letterj/openswift/swift/swift/common/client.py", line 772, in get_account
    prefix=prefix, full_listing=full_listing)
  File "/home/letterj/openswift/swift/swift/common/client.py", line 739, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/home/letterj/openswift/swift/swift/common/client.py", line 225, in get_account
    rv.extend(listing)
AttributeError: 'tuple' object has no attribute 'extend'

Related branches

Jay Payne (letterj)
Changed in swift:
assignee: nobody → Jay Payne (letterj)
status: New → In Progress
Revision history for this message
Chuck Thier (cthier) wrote :

This is critical for the release, as monitoring a production cluster will not work effectively without this change

Changed in swift:
milestone: none → 1.2-rc
importance: Undecided → Critical
Revision history for this message
Jay Payne (letterj) wrote :

The "st" tool builds a list of accounts and/or containers outside the client.py code.

The diff between client.py and the code section in st is 179 lines long. Reconciling this diff should not be critical to the BEXAR release.

Changed in swift:
status: In Progress → Fix Committed
Chuck Thier (cthier)
Changed in swift:
status: Fix Committed → Fix Released
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.