Swift backend not taking into account new Swift account:user:key in URI
Bug #717431 reported by
Jay Pipes
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Jay Pipes |
Bug Description
The old cloudfiles client handled URIs for Swift in the form of:
swift:/
However, newer Swift versions use an account system as well, so that a user is really "account:user". We need to take this into account when parsing the URIs coming into Glance.
Below is some IRC log discussing the issue.
<creiht> jaypipes: so the quick fix is to change line 102
<creiht> to
<creiht> user, key = creds.rsplit(':',1)
<creiht> that should still give you the right creds
<creiht> and the uri could be represented as:
<creiht> swift:/
<jaypipes> creiht: yup, that's what I was thinking too...
Related branches
lp:~jaypipes/glance/bug717431
- Cory Wright (community): Approve
- Rick Harris (community): Approve
-
Diff: 117 lines (+58/-13)3 files modifiedglance/store/swift.py (+10/-1)
run_tests.py (+10/-11)
tests/unit/test_swift_store.py (+38/-1)
Changed in glance: | |
milestone: | none → cactus-2011-03-14 |
Changed in glance: | |
assignee: | nobody → Jay Pipes (jaypipes) |
Changed in glance: | |
status: | Fix Committed → In Progress |
Changed in glance: | |
status: | Triaged → Fix Committed |
Changed in glance: | |
milestone: | cactus-2011-03-14 → 2011.2 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Marked this High priority since AFAICT, there is no workaround.