Ask Your Question
0

boto.exception.S3ResponseError: S3ResponseError: 404 Not Found [closed]

asked 2013-08-09 06:00:54 -0500

RohitGupta gravatar image

Dear Forum,

I have followed the below document to configure S3 emulation with Swift using Keystone as Auth middleware: http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-swift-with-s3-emulation-to-use-keystone.html

I have deployed multi node setup of swift whereby my keystone server, proxy server and storage nodes are separate servers. For assumption: Keystone Server: 10.0.0.151 Proxy Server: 10.0.0.154 Storage node: 10.0.0.155

In order to verify S3 is properly configured or not I am using Boto code on the Swift Proxy server with the following commands:

import boto 
import boto.s3.connection
connection = boto.connect_s3(aws_access_key_id='service:swift',
                             aws_secret_access_key='swift',
                             port=5000, host='10.0.0.151', is_secure=False,
                             calling_format=boto.s3.connection.OrdinaryCallingFormat())

connection.create_bucket('my_first_bucket')

I have given the Host, port aws_access_key_id, aws_secret_access_key considering I need to connect with Keystone server and not proxy server. Besides the following swift command is working fine and showing the containers\objects properly: swift -V 2.0 -A http://10.0.0.151:5000/v2.0 -U service:swift -K swift stat

I am getting the following error message:

Traceback (most recent call last):
  File "boto_test.py", line 11, in <module>
    connection.create_bucket('my_first_bucket')
  File "/usr/local/lib/python2.7/dist-packages/boto-2.9.9-py2.7.egg/boto/s3/connection.py", line 504, in create_bucket
    response.status, response.reason, body)
boto.exception.S3ResponseError: S3ResponseError: 404 Not Found

Please suggest!!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by RohitGupta
close date 2013-08-09 09:17:29.210271

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-08-09 09:17:21 -0500

RohitGupta gravatar image

Chmouel's help solved the issue - thanks Chmouel.

edit flag offensive delete link more

Comments

1

Can I know the answer of this question?

jayesh gravatar imagejayesh ( 2013-11-16 19:27:49 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2013-08-09 06:00:54 -0500

Seen: 1,405 times

Last updated: Aug 09 '13