Glance image-download cli progress does not work

Bug #1456614 reported by Kyrylo Romanenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Medium
MOS Glance

Bug Description

Glance image-download command should display progress of operation if --progress option is specified.

root@node-1:~# glance help image-download
usage: glance image-download [--file <FILE>] [--progress] <IMAGE>

Download a specific image.

Positional arguments:
  <IMAGE> Name or ID of image to download.

Optional arguments:
  --file <FILE> Local file to save downloaded image data to. If this is not
                 specified the image data will be written to stdout.
  --progress Show download progress bar.

Steps:
1. # glance image-download --file ~/image.iso --progress <IMAGE_ID>
Expected to have image downloaded to specified file.
Actual ouput:
# glance image-download --file ~/image.iso --progress 8da6def2-7eae-4121-b80c-27886e83c449
object of type 'generator' has no len()
and download did not occurred.

Environement:
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  openstack_version: "2014.2.2-6.1"
  api: "1.0"
  build_number: "432"
  build_id: "2015-05-18_03-43-53"
  nailgun_sha: "076566b5df37f681c3fd5b139c966d680d81e0a5"
  python-fuelclient_sha: "38765563e1a7f14f45201fd47cf507393ff5d673"
  astute_sha: "cb655a9a9ad26848bcd9d9ace91857b6f4a0ec15"
  fuel-library_sha: "1621cb350af744f497c35f2b3bb889c2041465d8"
  fuel-ostf_sha: "9ce1800749081780b8b2a4a7eab6586583ffaf33"
  fuelmain_sha: "0e970647a83d9a7d336c4cc253606d4dd0d59a60"

Deployment in VirtualBox. Ubuntu 14.04.1, Neutron VLAN, Cinder and Glance on LVM
1 Controller+Cinder
1 Compute+Cinder
1 Cinder

Tags: glance
tags: added: glance
Changed in mos:
importance: Undecided → Medium
assignee: nobody → MOS Glance (mos-glance)
summary: - Glance cli progress does not work
+ Glance image-download cli progress does not work
Changed in mos:
milestone: none → 7.0
Revision history for this message
Inessa Vasilevskaya (ivasilevskaya) wrote :

Seems that it's already fixed in upstream: https://bugs.launchpad.net/python-glanceclient/+bug/1384664

Changed in mos:
status: New → Confirmed
Revision history for this message
Mike Fedosin (mfedosin) wrote :

Fixed in client 0.16.0 https://review.openstack.org/#/c/132432/ merged in MOS 7.0

Changed in mos:
status: Confirmed → Fix Committed
Revision history for this message
Alexey Galkin (agalkin) wrote :

Verified on MOS 7.0 in ISO #228.

root@node-1:~# glance image-download --file win.iso --progress 54dc8ba0-52a5-473f-aefd-0f9a187c5b62
glance image-download --file win.iso --progress 54dc8ba0-52a5-473f-aefd-0f9a187c5b62
[=============================>] 100%
root@node-1:~#

Changed in mos:
status: Fix Committed → Fix Released
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.