ZFSSA drivers' restclient.py needs to fix PEP 476 and debug format messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Diem Tran |
Bug Description
There are 2 bugs in restclient.py of ZFSSA Cinder drivers that need to be fixed:
1. Python 2.7.9 implemented PEP 476 which causes the ZFSSA Cinder driver to fail early on with errors of the form:
2015-04-22 23:18:45.231 4327 ERROR cinder.
[req-96cbec71-
CERTIFICATE_
2.Line 271 has a redundant pair of parentheses that causes the following error:
2015-05-24 19:31:29.693 DEBUG cinder.
Traceback (most recent call last):
File "/usr/lib/
msg = self.format(record)
File "/usr/local/
return logging.
File "/usr/lib/
return fmt.format(record)
File "/usr/local/
return logging.
File "/usr/lib/
record.message = record.getMessage()
File "/usr/lib/
msg = msg % self.args
TypeError: not enough arguments for format string
Logged from file restclient.py, line 271
summary: |
- ZFSSA drivers' restclient.py needs to be enhanced to avoid 2 existing - bugs + ZFSSA drivers' restclient.py needs to be fix to deal with PEP 476 and + debug format messages |
summary: |
- ZFSSA drivers' restclient.py needs to be fix to deal with PEP 476 and + ZFSSA drivers' restclient.py needs to be fixed to deal with PEP 476 and debug format messages |
summary: |
- ZFSSA drivers' restclient.py needs to be fixed to deal with PEP 476 and - debug format messages + ZFSSA drivers' restclient.py needs to fix PEP 476 and debug format + messages |
Changed in cinder: | |
assignee: | nobody → Diem Tran (diem-tran) |
status: | New → In Progress |
Changed in cinder: | |
assignee: | Diem Tran (diem-tran) → abhiram moturi (abhiram-moturi) |
Changed in cinder: | |
assignee: | abhiram moturi (abhiram-moturi) → Diem Tran (diem-tran) |
Changed in cinder: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | liberty-3 → 7.0.0 |
Title is too generic. Can you make it more explicit?
Thanks