euca2ools, nova, and swift3 middleware
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/
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-
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
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Glance Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2011-02-23
- Last reply:
- 2011-02-24
Chuck Thier (cthier) said : | #1 |
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.
Wayne A. Walls (wayne-walls) said : | #2 |
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:/
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-objectstor
All my experience with Glance has been coupled with python-cloudservers (nova-tools now?).
Cheers
Jay Pipes (jaypipes) said : | #3 |
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...
Wayne A. Walls (wayne-walls) said : | #4 |
Greetings, Jay!
Are you referring to something like this:
######
connection = boto.s3.Connection(
port=8080,
#####
This is straight from '/usr/share/
Thoughts?
Jay Pipes (jaypipes) said : | #5 |
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.
Can you help with this problem?
Provide an answer of your own, or ask Wayne A. Walls for more information if necessary.