← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 829880] Re: object store doesn't like key with '/'

 

** Changed in: ec2-api
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/829880

Title:
  object store doesn't like key with '/'

Status in ec2-api:
  Fix Released
Status in pyjuju:
  Fix Released
Status in OpenStack Compute (nova):
  Won't Fix
Status in juju package in Ubuntu:
  Fix Released

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.
  """

To manage notifications about this bug go to:
https://bugs.launchpad.net/ec2-api/+bug/829880/+subscriptions