Bug 1320684 - RHEL 6.8 runs with python26 -- This breaks swift clients.
Summary: RHEL 6.8 runs with python26 -- This breaks swift clients.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: RGW
Version: 1.2.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: 1.2.4
Assignee: Yehuda Sadeh
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-23 17:42 UTC by Warren
Modified: 2017-07-30 15:49 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-21 22:17:40 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Warren 2016-03-23 17:42:01 UTC
Description of problem:
   On RHEL 6.8, Swift runs python26.  A dictionary comprehension reports a syntax
error that does not occur on python 2.7


Version-Release number of selected component (if applicable):
RHEL 6.8

How reproducible:
100% of the time.

Steps to Reproduce:
swift -A http://10.8.128.76/auth/1.0 -u testuser:swift -K 'N/wGw1h7SY5EdTrIH4P4V4DeeDyW36yJ7NCI6HLH'  list



Actual results:
Traceback (most recent call last):
   .
   .
   .
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 136
    return {key: safe_value(key, val) for (key, val) in headers}
                                        ^
SyntaxError: invalid syntax

Expected results:
a list of buckets

Additional info:
I changed the dictionary comprehension to an external for loop and the problem went away.   I think that the best thing here is for swift to run python 2.7

Comment 2 Warren 2016-03-23 18:04:22 UTC
This is also true for 6.6 and 6.7

Comment 3 Ken Dreyer (Red Hat) 2016-04-21 22:17:40 UTC
We are almost 30 days away from RHCS 1.2's EOL, so we won't fix bugs for RHCS 1.2 at this point.


Note You need to log in before you can comment on or make changes to this bug.