← Back to team overview

anvil-dev team mailing list archive

Re: [Devstackpy] download optimization idea

 

Title: Re: [Devstackpy] download optimization idea
Could be,

Just the question for that is glance is already a tool. The uploading is just a little helper ontop of that.

Might still be useful.

-Josh

On 3/22/12 5:12 AM, "Doug Hellmann" <doug.hellmann@xxxxxxxxxxxxx> wrote:



On Wed, Mar 21, 2012 at 1:31 PM, Joshua Harlow <harlowja@xxxxxxxxxxxxx> wrote:
Agreed, maybe we should have these post-install actions be separate tools?

Or at least separate classes, especially the img upload one, so say people could just invoke that tool/upload without the whole start process...

Maybe there is  a separate action called “upload” that does this and only this?

Yes, that's what I was thinking. Who makes the images referenced in the INI file now? How common is the use case of wanting to download and install an image like that? Would it make sense to package and release the tool separately, with devstackpy just installing and using it?
 


On 3/21/12 6:14 AM, "Doug Hellmann" <doug.hellmann@xxxxxxxxxxxxx <http://doug.hellmann@xxxxxxxxxxxxx> > wrote:



On Tue, Mar 20, 2012 at 1:39 PM, Joshua Harlow <harlowja@xxxxxxxxxxxxx <http://harlowja@xxxxxxxxxxxxx> > wrote:
It should right now do that.

Its not entirely obvious I guess...

But if u start with X image, then stop, then add X,Y image to the config it will upload Y the next time u start.

Ah, no, that wasn't obvious. But it sounds like improving that UI is probably a lower priority than starting the downloads as early as possible.
 

-Josh


On 3/20/12 10:26 AM, "Doug Hellmann" <doug.hellmann@xxxxxxxxxxxxx <http://doug.hellmann@xxxxxxxxxxxxx>  <http://doug.hellmann@xxxxxxxxxxxxx> > wrote:



On Tue, Mar 20, 2012 at 1:20 PM, Joshua Harlow <harlowja@xxxxxxxxxxxxx <http://harlowja@xxxxxxxxxxxxx>  <http://harlowja@xxxxxxxxxxxxx> > wrote:
Coool,

Either that or remove that image from the default list. Its possibly to big to be useful in initial setup?

Another option would be to provide a way to add the image later. If glance can't take a remote URL as input, we could wrap it and associate it with another action.
 

I had a OMG section on the Q/A that dealt with this, haha.

https://github.com/yahoo/Openstack-DevstackPy/wiki/Questions-and-answers (search for OMG)

-Josh


On 3/20/12 9:13 AM, "Doug Hellmann" <doug.hellmann@xxxxxxxxxxxxx <http://doug.hellmann@xxxxxxxxxxxxx>  <http://doug.hellmann@xxxxxxxxxxxxx>  <http://doug.hellmann@xxxxxxxxxxxxx> > wrote:

As I sit waiting for oneiric-server-cloudimg-amd64.tar.gz to download, I had an idea to start the big image downloads in a thread earlier in the process. Maybe in the warmup phase the glance installer could start a thread, and then it could join the thread later. We would need to be careful with error logging to make sure it shows up at the point where something tries to use the file.

What do you think of the idea?

Doug









References