'swift stat' prints exception trace when auth fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Regression in swiftclient: previously failed authentication generated helpful output, now it results in exception traces.
Similarly if auth succeeds but container not found using 'swift stat container'
BEFORE:
anc@u128:
No tenant specified
anc@u128:
No tenant specified
AFTER:
anc@u128:
Previous HEAD position was d97ec37... Merge "fixed unit tests when env vars are set"
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 143 commits.
anc@u128:
commit 8f1b394325804c2
Author: Pete Zaitcev <email address hidden>
Date: Wed Sep 17 20:27:05 2014 -0600
<snip>
anc@u128:
Traceback (most recent call last):
File "/usr/local/
execfile(
File "/anc/0dev/
sys.
File "/anc/0dev/
globals(
File "/anc/0dev/
stat_result = swift.stat()
File "/anc/0dev/
raise SwiftError('Account not found', exc=err)
swiftclient.
anc@u128:
Traceback (most recent call last):
File "/usr/local/
execfile(
File "/anc/0dev/
sys.
File "/anc/0dev/
globals(
File "/anc/0dev/
items = stat_result[
KeyError: 'items'
Changed in python-swiftclient: | |
status: | Fix Committed → Fix Released |
Looks like the regression is due to this patch:
commit 24673f8d19fe2f4 8964f528369081c 37e880ec47
Author: Joel Wright <email address hidden>
Date: Fri Apr 4 21:13:01 2014 +0200
Add importable SwiftService incorporating shell.py logic
This patch adds a SwiftService class that incorporates the high shell.py. It also ports shell.py to multithreading. py
level logic from swiftclient/
use the new class, and updates the code in swiftclient/
to allow the SwiftService to be used for multiple operations whilst
using only one thread pool.
Currently, code that imports swiftclient has to have its own logic for
things like creating large objects, parallel uploads, and parallel
downloads. This patch adds a SwiftService class that makes that
functionality available in Python code as well as through the shell.
Change-Id: I08c5796b4c0100 1d79fd571651c30 17c16462ffd logic-as- importable- library
Implements: blueprint bin-swift-