I guess the clients set the header for switching the driver, right? How's the header for EC2 looks like? EC2 also has separate URL for EC2 and S3 endpoints. If I understand this correctly, the eucalyptus driver should be able to parse "env['HTTP_X_DELTACLOUD_PROVIDER']" and set the endpoint accordingly..right?
Sang-min On Mon, Mar 28, 2011 at 4:44 PM, David Lutterkort <[email protected]> wrote: > On Fri, 2011-03-25 at 15:26 -0700, Sang-Min Park wrote: > > Thanks David. Yes the username/password is the same as EC2. > > Here's the note that we need to put on the table: > > "Access Key and Secret Access Key can be found in EC2_ACCESS_KEY and > > EC2_SECRET_KEY env. variables. > > Eucalyptus driver assumes EC2_URL and S3_URL is set to Eucalyptus > endpoint. > > All variables are set by sourcing 'eucarc' ( > > http://open.eucalyptus.com/wiki/EucalyptusGettingStarted_v2.0)" > > Ideally, we could enable dynamic driver switching for Eucalyptus, like > we do for the other providers. One way to do that is by sending a > special X-Deltacloud-Provider header. > > Does the driver always need two different URL's (one for compute, one > for storage) to talk to a Eucalyptus installation ? If so, we should > probably make the provider header something like > > X-Deltacloud-Provider: ec2=http://euca.example.com/; s3= > http://walrus.example.com/ > > Of course, a scheme that makes this header shorter would be better. > > David > > > > > >
