show progress bar on upload

Bug #1231509 reported by Dafna Ron
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
python-swiftclient
Confirmed
Undecided
Jonas Lundqvist

Bug Description

I think it would be helpful to show a progress bar when uploading/downloading a file using swift

currently, if we try to upload a large file we have no status on the upload:

[root@nott-vdsa tmp(keystone_admin)]# swift upload dafna rhel-server-x86_64-kvm-6.4_20130130.0-2-sda.qcow2

Changed in swift:
assignee: nobody → Jonas Lundqvist (jonas-lundqvist)
Revision history for this message
Jonas Lundqvist (jonas-lundqvist) wrote :

I have implement a new optional argument --progress to the swift upload (and download) command.
Implementation is done in

python-swiftclient/bin/swift
python-swiftclient/swiftclient/client.py

If --progress is given progress are printed to stdout.

However I do not know if this a bug that should be fixed.

Revision history for this message
Jonas Lundqvist (jonas-lundqvist) wrote :
Revision history for this message
Fabien Boucher (fabien-boucher) wrote :

Hi,
Sound a good idea.
Maybe should send your patch via gerrit : https://wiki.openstack.org/wiki/GerritWorkflow

Cheers,
Fabien

affects: swift → python-swiftclient
Revision history for this message
Jonas Lundqvist (jonas-lundqvist) wrote :

Yes, I will send the patch to Gerrit. I will do some additional tests on the patch first.
Regards
Jonas

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

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

Revision history for this message
Nicolas (nicolascotsis) wrote :

Hi,
I can't find --progress option. Is it implemented ?
Thank you.

Revision history for this message
Jonas Lundqvist (jonas-lundqvist) wrote : Re: [Bug 1231509] Re: show progress bar on upload

Hi,
I do not now if it is implemented. I have not worked in this area for the
last two years. I have not done it, but it could be implemented by someone
else.
BR
Jonas

On 7 November 2015 at 15:13, Nicolas <email address hidden> wrote:

> Hi,
> I can't find --progress option. Is it implemented ?
> Thank you.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1231509
>
> Title:
> show progress bar on upload
>
> Status in python-swiftclient:
> In Progress
>
> Bug description:
> I think it would be helpful to show a progress bar when
> uploading/downloading a file using swift
>
> currently, if we try to upload a large file we have no status on the
> upload:
>
> [root@nott-vdsa tmp(keystone_admin)]# swift upload dafna rhel-server-
> x86_64-kvm-6.4_20130130.0-2-sda.qcow2
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/python-swiftclient/+bug/1231509/+subscriptions
>

Tim Burke (1-tim-z)
Changed in python-swiftclient:
status: In Progress → Confirmed
Revision history for this message
clayg (clay-gerrard) wrote :

If we revist this it might be a good idea to see what tqdm can do for us:

https://pypi.org/project/tqdm/

Revision history for this message
dziki_jam@mail.ru (dziki-jam) wrote :

I would really appreciate this feature since sometimes I need to download backup files which are are quite heavy and I have no idea of what's going on under the hood of the swift client.

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.