[Openstack] Progress bar for image create in python-glanceclient

Joshua Harlow harlowja at yahoo-inc.com
Fri Mar 7 00:37:55 UTC 2014


Does the glanceclient expose any kind of 'status listener', something that is called every X bytes uploaded? My guess is the underlying client uses something like this to do its own progress bar, probably can just hook into that (if its exposed). If not, then could be a useful patch (and makes me wonder if it's not exposed how the --progress works).

From: Alex L <buzz42j at gmail.com<mailto:buzz42j at gmail.com>>
Date: Thursday, March 6, 2014 at 3:23 PM
To: "openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>" <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>
Subject: [Openstack] Progress bar for image create in python-glanceclient


Hello,

I know that on the command line you can use

$ glance image-create ... --progress

to show your current progress when creating an image.

I want to be able to do something similar but inside my python program using the python-glanceclient tool. There seems to be no 'progress' attribute in the ImageManager object when creating images, so I'm not sure how you could get a progress bar with the python-glanceclient.

Thanks for any help!

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140307/cd659961/attachment.html>


More information about the Openstack mailing list