swift-account-audit displays AttributeError stacktrace on 404
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Low
|
Roman Vasilets |
Bug Description
It's not that bad, but when an object response gives a 404, there's a bit of traceback:
Bad status HEADing object "/AUTH_
Traceback (most recent call last):
File "/usr/local/
func(*args, **kwargs)
File "/mnt/workspace
if resp.getheader(
AttributeError: 'NoneType' object has no attribute 'strip'
I just ran functests, rm -fr /srv/node1/sdb1/, and swift-account-audit AUTH_test on my saio.
Also the usage example could probably use an update to drop the SOSO reference, and maybe convert opt parsing to optparse.
Changed in swift: | |
assignee: | nobody → Daisuke Matsui (nanodayo) |
Changed in swift: | |
assignee: | Daisuke Matsui (nanodayo) → nobody |
Changed in swift: | |
assignee: | nobody → Roman Vasilets (rvasilets) |
I think we could add a directory, for example bin_script, at <swift-repo>/test/ to prevent some tiny mistakes like this.