Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-17 Thread Flavio Percoco
On 13/02/15 17:01 +0100, Jordan Pittier wrote: Humm this doesn't have to be complicated, for a start. Sorry for my late reply - Figuring out the http method the server expects (POST/PUT) Yeah, I agree. Theres no definitive answer to this but I think PUT makes sense here. I googled 'post vs

Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-17 Thread Jordan Pittier
Jay, Flavio, thanks for this interesting discussion. I get your points and they really make sense to me. I'll go for a specific driver that will inherits from the HTTP Store for the read path and implements the write path. Jordan On Tue, Feb 17, 2015 at 12:52 PM, Flavio Percoco

Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-16 Thread Jay Pipes
On 02/16/2015 01:39 PM, Jordan Pittier wrote: So, I don't understand what allowing the HTTP backend to support add() gives the user of Glance. It doesn't give anything to the user. glance_store is all about different backends, such as the VMWare datastore or the Sheepdog data store. Having

Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-16 Thread Jordan Pittier
So, I don't understand what allowing the HTTP backend to support add() gives the user of Glance. It doesn't give anything to the user. glance_store is all about different backends, such as the VMWare datastore or the Sheepdog data store. Having several backends/drivers allows the cloud

Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-13 Thread Flavio Percoco
On 13/02/15 16:01 +0100, Jordan Pittier wrote: What is the difference between just calling the Glance API to upload an image, versus adding add() functionality to the HTTP image store? You mean using glance image-create --location http://server1/myLinuxImage [..] ? If so, I guess adding the

Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-13 Thread Jay Pipes
On 02/13/2015 09:47 AM, Jordan Pittier wrote: Hi list, I would like to add the 'add' capability to the HTTP glance store. Let's say I (as an operator or cloud admin) provide an HTTP server where (authenticated/trusted) users/clients can make the following HTTP request : POST

Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-13 Thread Jordan Pittier
What is the difference between just calling the Glance API to upload an image, versus adding add() functionality to the HTTP image store? You mean using glance image-create --location http://server1/myLinuxImage [..] ? If so, I guess adding the add() functionality will save the user from having to

Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-13 Thread Jay Pipes
On 02/13/2015 10:01 AM, Jordan Pittier wrote: What is the difference between just calling the Glance API to upload an image, versus adding add() functionality to the HTTP image store? You mean using glance image-create --location http://server1/myLinuxImage [..] ? If so, I guess adding the

Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-13 Thread Jordan Pittier
Humm this doesn't have to be complicated, for a start. - Figuring out the http method the server expects (POST/PUT) Yeah, I agree. Theres no definitive answer to this but I think PUT makes sense here. I googled 'post vs put' and I found that the idempotent and who is in charge of the actual

Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-13 Thread Jordan Pittier
Jay, I am afraid I didn't understand your point. Could you rephrase/elaborate on What is the difference between just calling the Glance API to upload an image, versus adding add() please ? Currently, you can't call the Glance API to upload an image if the default_store is the HTTP store. On Fri,

Re: [openstack-dev] [glance]'Add' capability to the HTTP store

2015-02-13 Thread Jay Pipes
On 02/13/2015 11:55 AM, Jordan Pittier wrote: Jay, I am afraid I didn't understand your point. Could you rephrase/elaborate on What is the difference between just calling the Glance API to upload an image, versus adding add() please ? Currently, you can't call the Glance API to upload an image