Bug 1320685 - RHEL 6.8 runs with python26 -- This breaks swift clients.
Summary: RHEL 6.8 runs with python26 -- This breaks swift clients.
Keywords:
Status: CLOSED NOTABUG
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
: 2.0
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:53 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Warren 2016-03-23 17:42:08 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 17:44:21 UTC
This is also true for RHEL 6.6 and 6.7

Comment 3 Warren 2016-03-23 18:06:14 UTC
Whoops. entered this twice.

Comment 4 Warren 2016-03-23 18:06:14 UTC
Whoops. entered this twice.

Comment 5 Warren 2016-03-23 18:06:29 UTC
Whoops. entered this twice.


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