Make xrange py3 compatible

Bug #1596127 reported by Ji.Wei
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DriverLog
In Progress
Undecided
haobing1
Fuel for OpenStack
Fix Committed
Low
Unassigned
StackTach.v3
New
Undecided
Unassigned
Swift Authentication
In Progress
Undecided
haobing1
Swift3
New
Undecided
Unassigned
Tricircle
Fix Released
Medium
Chaoyi Huang
networking-calico
Fix Released
Undecided
Nell Jerram
nova-solver-scheduler
New
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)
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)
Revision history for this message
Julien Danjou (jdanjou) wrote :

Please don't spam Telemetry projects with such bugs.

no longer affects: aodh
Ji.Wei (jiwei)
description: updated
Ji.Wei (jiwei)
no longer affects: neutron
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
importance: Undecided → Low
milestone: none → 10.0
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-octane (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-stats (master)

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

Changed in tacker:
assignee: nobody → Yan Songming (songmingyan)
Changed in tempest:
assignee: nobody → Yan Songming (songmingyan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-stats (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tacker (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-octane (master)

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

Ji.Wei (jiwei)
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)
Changed in swauth:
assignee: nobody → haobing1 (haobing1)
Changed in tricircle:
assignee: nobody → haobing1 (haobing1)
Changed in driverlog:
assignee: nobody → haobing1 (haobing1)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swauth (master)

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

Changed in swauth:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tricircle (master)

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

Changed in tricircle:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to driverlog (master)

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

Changed in driverlog:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on driverlog (master)

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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on networking-calico (master)

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.

Revision history for this message
Nell 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)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-calico (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tricircle (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on swauth (master)

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

Revision history for this message
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)
Changed in swift3:
assignee: Ji.Wei (jiwei) → nobody
Changed in nova-solver-scheduler:
assignee: Ji.Wei (jiwei) → nobody
Ji.Wei (jiwei)
Changed in fuel:
assignee: Ji.Wei (jiwei) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.