Downloading image with --progress fails for python3

Bug #1671365 reported by Abhishek Kekane
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Undecided
Abhishek Kekane

Bug Description

Downloading image with --progress fails for python3 with,
TypeError: 'IterableWithLength' object is not an iterator

Steps to reproduce:
Ensure OpenStack is installed for python3

$ glance -d image-download 2974158b-383d-4fe6-9671-5248b9a5d07d --file bmc-base.qcow2 --progress

Output:
$ TypeError: 'IterableWithLength' object is not an iterator

Changed in glance:
assignee: nobody → Abhishek Kekane (abhishek-kekane)
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

Sorry to "steal" this bug, but I proposed a fix since it's getting a bit old: https://review.openstack.org/#/c/465469/

affects: glance → python-glanceclient
Changed in python-glanceclient:
assignee: Abhishek Kekane (abhishek-kekane) → Cyril Roelandt (cyril-roelandt)
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

The patch by Abhishek can be found at https://review.openstack.org/#/c/444104

Changed in python-glanceclient:
assignee: Cyril Roelandt (cyril-roelandt) → nobody
Changed in python-glanceclient:
assignee: nobody → Abhishek Kekane (abhishek-kekane)
Changed in python-glanceclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/444104
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=bb2a5e946f36fc28ffa138357d644c2b7ec52242
Submitter: Jenkins
Branch: master

commit bb2a5e946f36fc28ffa138357d644c2b7ec52242
Author: Abhishek Kekane <email address hidden>
Date: Thu Mar 9 12:54:07 2017 +0530

    Downloading image with --progress fails for python3

    Downloading image with --progress fails for python3 with,
    TypeError: 'IterableWithLength' object is not an iterator. This
    is because IterableWithLength class does not implemented python3
    compatible __next__ method.

    Added __next__ method for python3 compatibility.

    Change-Id: Ic2114180fac26e9a60678f06612be733e8671bdb
    Closes-Bug: #1671365

Changed in python-glanceclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-glanceclient 2.7.0

This issue was fixed in the openstack/python-glanceclient 2.7.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/471580

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (stable/ocata)

Reviewed: https://review.openstack.org/471580
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=9e014efbc15c9a6518c979958227d87bb14ae9ea
Submitter: Jenkins
Branch: stable/ocata

commit 9e014efbc15c9a6518c979958227d87bb14ae9ea
Author: Abhishek Kekane <email address hidden>
Date: Thu Mar 9 12:54:07 2017 +0530

    Downloading image with --progress fails for python3

    Downloading image with --progress fails for python3 with,
    TypeError: 'IterableWithLength' object is not an iterator. This
    is because IterableWithLength class does not implemented python3
    compatible __next__ method.

    Added __next__ method for python3 compatibility.

    Change-Id: Ic2114180fac26e9a60678f06612be733e8671bdb
    Closes-Bug: #1671365
    (cherry picked from commit bb2a5e946f36fc28ffa138357d644c2b7ec52242)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-glanceclient (master)

Change abandoned by Abhishek Kekane (<email address hidden>) on branch: master
Review: https://review.openstack.org/465469
Reason: This issue is already resolved and merged, https://review.openstack.org/#/c/444104/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-glanceclient ocata-eol

This issue was fixed in the openstack/python-glanceclient ocata-eol release.

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.