Ask Your Question
0

euca2ools, nova, and swift3 middleware

asked 2011-02-23 06:18:00 -0500

wayne-walls gravatar image

Greetings, everyone!

I have a Nova cluster, and a Swift cluster set up. I want to be able to use Swift as my backend for Nova, which is using euca2ools (EC2 API). I read about Swift3, the middleware to translate EC2 API, so swift could understand it. I have added 'swift3' in my pipeline in /etc/swift/proxy-server.conf in the appropriate location, and believe that everything is set up correctly here. Is there any additional steps I need to take to make my Swift cluster 'nova ec2 ready?'

From the Nova side, I changed my nova.conf to point to the proxy server, and also edited novarc with the updated S3_URL. Whenever I try to run a 'euca-describe-images', it just hangs. Might be an authentication issue? I can't find where Swift logs auth requests, so not sure what is happening here.

I can run all the curl commands from the proxy localhost just fine, so I know that Swift is working as expected.

Does anyone have experience setting this up, and would be able to provide some feedback?

Cheers

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2011-02-24 16:09:50 -0500

jaypipes gravatar image

No, that's not what I was referring to... I was referring to something a bit more involved that that.

I guess I'm having a bit of trouble understanding why you want to use an S3 service in the first place? If you are using XenServer with Nova, you can set the image_service to nova.image.GlanceImageService and a similar flag for the Xen API plugin (xenapi_image_service I believe) and you won't need to use S3 at all...

edit flag offensive delete link more
0

answered 2011-02-24 14:39:59 -0500

jaypipes gravatar image

Hi Wayne!

OK, so right now, the s3 image service in Nova is the nova-objectstore program. You would have to write an adapter image service that used Swift's S3 compat ability and put that into Nova's nova/image/ directory. Not sure if this is worth the effort or not, though...

edit flag offensive delete link more
0

answered 2011-02-24 03:50:47 -0500

wayne-walls gravatar image

Greetings, Chuck!

I actually don't want to use Swift as a glance imagestore, but Swift as an S3 nova-objectstore. From the Bexar wiki release page,

"An experimental S3 compatibility middleware has been added to OpenStack Object Storage. This middleware intercepts S3 style requests and authorization, and transforms them into swift requests."

The idea is to have a Nova cluster that uses a Swift cluster as the image backend, all being driven with euca2ools. Why not just use Glance? --> https://bugs.launchpad.net/glance/+bug/713126 (https://bugs.launchpad.net/glance/+bu...) & https://bugs.launchpad.net/glance/+bug/717431 (https://bugs.launchpad.net/glance/+bu...) <--

One of the most important features to this audience will be the OpenStack Dashboard (all driven by EC2 API). I'd like to show them Swift is being used by Nova, and also make connections to Swift via Cyberduck. Am I correct in my assumption that Glance will work with eucatools (when Glance gets fixed)? Just use glance over the nova-objectstore/euca-upload/euca-register etc etc commands...

All my experience with Glance has been coupled with python-cloudservers (nova-tools now?).

Cheers

edit flag offensive delete link more
0

answered 2011-02-23 18:59:05 -0500

cthier gravatar image

I moved this over to the glance project, as I expect that is what you will need to run to use swift for nova image storage.

edit flag offensive delete link more
0

answered 2011-02-24 15:25:31 -0500

wayne-walls gravatar image

Greetings, Jay!

Are you referring to something like this:

######

connection = boto.s3.Connection(
    aws_access_key_id='test:tester',
    aws_secret_access_key='testing',
    port=8080,
    host='127.0.0.1',
    is_secure=False,
    calling_format=boto.s3.connection.OrdinaryCallingFormat())

#####

This is straight from '/usr/share/pyshared/test/unit/common/middleware/test_swift3.py' on my Swift install. I don't mind using glance for imagestore, especially if nova-objectstore is going to be a huge PITA, but if it's something I can just drop in and use until more bugs get worked out of glance, I'd be down with that.

Thoughts?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-02-23 06:18:00 -0500

Seen: 89 times

Last updated: Feb 24 '11