object store doesn't like key with '/'

Bug #829880 reported by Kapil Thangavelu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Medium
Unassigned
ec2-api
Fix Released
Medium
Unassigned
pyjuju
Fix Released
Medium
Kapil Thangavelu
juju (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

It looks like it should be correct given that its taking a hash of the key for the filename in the bucket dir, but it looks like its running afoul before it gets there.. sample script to reproduce (python+boto) against nova-objectstore (s3server.py)

import boto
import os
from boto.s3.connection import S3Connection, OrdinaryCallingFormat

s3 = S3Connection(
    aws_access_key_id=os.environ["EC2_ACCESS_KEY"],
    aws_secret_access_key=os.environ["EC2_SECRET_KEY"],
    host = os.environ["S3_URL"][len("http://"):],
    is_secure = False,
    calling_format=OrdinaryCallingFormat())

bucket = s3.create_bucket("es-testing-123")

print "new key"
key = bucket.new_key("abc.txt")
key.set_contents_from_string("abcdef")

print "new nested key"
key = bucket.new_key("zoo/abc.txt")
key.set_contents_from_string("abcdef")

"""
Fails with
S3ResponseError: 404 Not Found
404 Not Found

The resource could not be found.
"""

Tags: ec2
Changed in ensemble:
milestone: none → eureka
assignee: nobody → Kapil Thangavelu (hazmat)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Milestoning this in Ubuntu for beta-1 ,which is on Sept. 1.

Changed in ensemble (Ubuntu):
milestone: none → ubuntu-11.10-beta-1
Revision history for this message
Thierry Carrez (ttx) wrote :

fwiw the objectstore was never meant as a S3 replacement, so I wouldn't be surprised if other things failed.

Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

Just to understand where the project is going, is there anything officially seen as an S3 replacement including API compatibility, Thierry?

Revision history for this message
Jay Pipes (jaypipes) wrote :

Gustavo: No, I don't think that is a priority. Swift has an S3-ish wrapper for its own interface:

http://swift.openstack.org/misc.html#module-swift.common.middleware.swift3

In addition, Glance supports S3 backends.

But I don't think it is on the roadmap to have an S3 replacement that uses the S3 API.

Cheers,
jay

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

Wow, ok.. I clearly missed the AWS compatibility take there. Thanks Jay.

Revision history for this message
Thierry Carrez (ttx) wrote :

@Gustavo: afaict it was always about "EC2" compatibility (not "AWS"). Eucalyptus had the same approach, btw (by their own admission, Walrus was never meant to be deployed as a S3 competitor).

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

http://open.eucalyptus.com/wiki/EucalyptusStorage_v1.4

"""
Walrus is a storage service included with Eucalyptus that is interface compatible with Amazon's S3. Walrus allows users to store persistent data, organized as buckets and objects (see Amazon's S3 Getting Started Guide for more information). Walrus system options can be modified via the administrator web interface.
"""

Martin Pitt (pitti)
Changed in ensemble (Ubuntu):
milestone: ubuntu-11.10-beta-1 → ubuntu-11.10-beta-2
Dave Walker (davewalker)
Changed in ensemble (Ubuntu):
milestone: ubuntu-11.10-beta-2 → ubuntu-11.10
Changed in juju:
status: Triaged → Fix Released
affects: ensemble (Ubuntu) → juju (Ubuntu)
Changed in juju (Ubuntu):
milestone: ubuntu-11.10 → none
status: New → Fix Released
Chuck Short (zulcss)
tags: added: ec2
Revision history for this message
Ewan Mellor (ewanmellor) wrote :

nova-objectstore is deprecated, and this ticket has been untouched for 6 months. Resolving as Won't Fix.

Changed in nova:
status: Confirmed → Won't Fix
Changed in ec2-api:
status: New → Fix Committed
importance: Undecided → Medium
Changed in ec2-api:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.