swift-recon broken in Icehouse

Bug #1358996 reported by Sam Morrison
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
Unassigned

Bug Description

After upgrading our swift from Havana -> Icehouse (ubuntu packages) we get the following error:

swift-recon --all
===============================================================================
--> Starting reconnaissance on 4 hosts
===============================================================================
[2014-08-20 12:06:22] Checking async pendings
[async_pending] low: 0, high: 0, avg: 0.0, total: 0, Failed: 0.0%, no_result: 0, reported: 4
===============================================================================
[2014-08-20 12:06:22] Checking on replication
[replication_time] low: 0, high: 6, avg: 1.9, total: 7, Failed: 0.0%, no_result: 0, reported: 4
Oldest completion was 2014-08-20 00:36:19 (1 hours ago) by 172.22.59.44:6000.
Most recent completion was 2014-08-20 02:06:09 (12 seconds ago) by 172.22.59.46:6002.
===============================================================================
[2014-08-20 12:06:22] Checking auditor stats
Traceback (most recent call last):
  File "/usr/bin/swift-recon", line 24, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/swift/cli/recon.py", line 906, in main
    reconnoiter.main()
  File "/usr/lib/python2.7/dist-packages/swift/cli/recon.py", line 847, in main
    self.object_auditor_check(hosts)
  File "/usr/lib/python2.7/dist-packages/swift/cli/recon.py", line 551, in object_auditor_check
    name='ALL_%s_last_path' % k)
  File "/usr/lib/python2.7/dist-packages/swift/cli/recon.py", line 130, in _gen_stats
    'total': sum(cstats), 'reported': len(cstats),
TypeError: unsupported operand type(s) for +: 'int' and 'generator'

Revision history for this message
Christian Schwede (cschwede) wrote :

This has been fixed recently: https://github.com/openstack/swift/commit/203515718a2bee8334bd4936201f00a929ccbd89

I don't know about the Ubuntu packages, but the fix might not be included there yet.

Changed in swift:
status: New → Fix Committed
Revision history for this message
Sam Morrison (sorrison) wrote :

OK thanks, I've put it up for stable/icehouse at

https://review.openstack.org/#/c/115514/

tags: added: icehouse-backport-potential
Thierry Carrez (ttx)
Changed in swift:
milestone: none → 2.1.0
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.