Make xrange py3 compatible

Bug #1596127 reported by Ji.Wei on 2016-06-25
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DriverLog
Undecided
haobing1
Fuel for OpenStack
Low
Unassigned
StackTach.v3
New
Undecided
Unassigned
Swift Authentication
Undecided
haobing1
Swift3
Undecided
Unassigned
Tricircle
Medium
Chaoyi Huang
networking-calico
Undecided
Neil Jerram
nova-solver-scheduler
Undecided
Unassigned

Bug Description

In py3 ,

Xrange is renamed to range,
so it needs to be modified to make it compatible.

the code:

print (xrange(5))

Traceback (most recent call last):
  File "code", line 4, in <module>
    print (xrange(5))
NameError: name 'xrange' is not defined

https://github.com/openstack/swiftonhpss/blob/8127749f174589aca6b1e9f0497c4e65d3fc4d58/system_test/systemtest.py#L388

Ji.Wei (jiwei) on 2016-06-25
no longer affects: cinder
Changed in aodh:
assignee: nobody → Ji.Wei (jiwei)
Changed in stacktach:
assignee: nobody → Ji.Wei (jiwei)
Changed in fuel:
assignee: nobody → Ji.Wei (jiwei)
Changed in swift3:
assignee: nobody → Ji.Wei (jiwei)
Changed in networking-calico:
assignee: nobody → Ji.Wei (jiwei)
Changed in nova-solver-scheduler:
assignee: nobody → Ji.Wei (jiwei)
Changed in tricircle:
assignee: nobody → Ji.Wei (jiwei)
Changed in swauth:
assignee: nobody → Ji.Wei (jiwei)
Changed in driverlog:
assignee: nobody → Ji.Wei (jiwei)
Changed in neutron:
assignee: nobody → Ji.Wei (jiwei)
Julien Danjou (jdanjou) wrote :

Please don't spam Telemetry projects with such bugs.

no longer affects: aodh
Ji.Wei (jiwei) on 2016-06-25
description: updated
Ji.Wei (jiwei) on 2016-06-25
no longer affects: neutron
Dmitry Pyzhov (dpyzhov) on 2016-06-27
Changed in fuel:
importance: Undecided → Low
milestone: none → 10.0
status: New → Confirmed

Fix proposed to branch: master
Review: https://review.openstack.org/336342

Changed in fuel:
status: Confirmed → In Progress
Changed in tacker:
assignee: nobody → Yan Songming (songmingyan)
Changed in tempest:
assignee: nobody → Yan Songming (songmingyan)

Fix proposed to branch: master
Review: https://review.openstack.org/337050

Changed in tacker:
status: New → In Progress
Changed in fuel:
status: In Progress → Fix Committed

Reviewed: https://review.openstack.org/336346
Committed: https://git.openstack.org/cgit/openstack/fuel-stats/commit/?id=a3102f6fc61934f61c2a8a7a85024a0a2613f272
Submitter: Jenkins
Branch: master

commit a3102f6fc61934f61c2a8a7a85024a0a2613f272
Author: Ji-Wei <email address hidden>
Date: Fri Jul 1 11:10:46 2016 +0800

    Make xrange py3 compatible

    In py3 ,
    Xrange is renamed to range,
    so it needs to be modified to make it compatible.
    the code:
    print (xrange(5))
    Traceback (most recent call last):
      File "code", line 4, in <module>
        print (xrange(5))
    NameError: name 'xrange' is not defined.

    Change-Id: I3a0e22876c35ced5c961c092fcda25db33d1c599
    Closes-Bug: #1596127

Change abandoned by Songming Yan (<email address hidden>) on branch: master
Review: https://review.openstack.org/337050

no longer affects: tacker
no longer affects: tempest
Changed in networking-calico:
assignee: Ji.Wei (jiwei) → Yan Songming (songmingyan)
status: New → In Progress

Change abandoned by JiWei (<email address hidden>) on branch: master
Review: https://review.openstack.org/336342

Ji.Wei (jiwei) on 2016-08-13
Changed in driverlog:
assignee: Ji.Wei (jiwei) → nobody
Changed in swauth:
assignee: Ji.Wei (jiwei) → nobody
Changed in tricircle:
assignee: Ji.Wei (jiwei) → nobody
Changed in stacktach:
assignee: Ji.Wei (jiwei) → nobody
haobing1 (haobing1) on 2016-08-13
Changed in swauth:
assignee: nobody → haobing1 (haobing1)
Changed in tricircle:
assignee: nobody → haobing1 (haobing1)
Changed in driverlog:
assignee: nobody → haobing1 (haobing1)

Fix proposed to branch: master
Review: https://review.openstack.org/355162

Changed in swauth:
status: New → In Progress

Fix proposed to branch: master
Review: https://review.openstack.org/363561

Changed in tricircle:
status: New → In Progress

Fix proposed to branch: master
Review: https://review.openstack.org/363564

Changed in driverlog:
status: New → In Progress

Change abandoned by Ilya Shakhat (<email address hidden>) on branch: master
Review: https://review.openstack.org/363564
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Change abandoned by Neil Jerram (<email address hidden>) on branch: master
Review: https://review.openstack.org/337067
Reason: I'm not clear that this change is needed at all, so abandoning this for now.

&Songming Yan - please do feel free to restore or re-propose, if something is really needed here.

Neil Jerram (neil-jerram) wrote :

no longer affects: networking-calico

no longer affects: networking-calico
Changed in networking-calico:
status: New → In Progress
assignee: nobody → Neil Jerram (neil-jerram)

Reviewed: https://review.openstack.org/337067
Committed: https://git.openstack.org/cgit/openstack/networking-calico/commit/?id=70bc29166d3d485bcd02f41a046df992317cd4cb
Submitter: Jenkins
Branch: master

commit 70bc29166d3d485bcd02f41a046df992317cd4cb
Author: SongmingYan <email address hidden>
Date: Mon Jul 4 04:42:07 2016 -0400

    Use 'range' instead of 'xrange', for Py3 compatibility

    Closes-Bug: #1596127

    Change-Id: I4e4985f7ec7558b7293b08e7a90de60e2717a708

Changed in networking-calico:
status: In Progress → Fix Released

Change abandoned by haobing (<email address hidden>) on branch: master
Review: https://review.openstack.org/363561

Change abandoned by haobing (<email address hidden>) on branch: master
Review: https://review.openstack.org/355162

Chaoyi Huang (joehuang) wrote :

Tricircle has finished the goal to support python3 and WSGI : https://review.openstack.org/#/c/481927/

Changed in tricircle:
assignee: haobing1 (haobing1) → Chaoyi Huang (joehuang)
importance: Undecided → Medium
milestone: none → pike-3
status: In Progress → Fix Released
Ji.Wei (jiwei) on 2018-03-21
Changed in swift3:
assignee: Ji.Wei (jiwei) → nobody
Changed in nova-solver-scheduler:
assignee: Ji.Wei (jiwei) → nobody
Ji.Wei (jiwei) on 2018-03-22
Changed in fuel:
assignee: Ji.Wei (jiwei) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers