A patch like this:
sam:glance$ git diff diff --git a/glance/api/v1/controller.py b/glance/api/v1/controller.py index 2234303..8b74e5d 100644 --- a/glance/api/v1/controller.py +++ b/glance/api/v1/controller.py @@ -76,9 +76,9 @@ class BaseController(object): write_tenants.append(member['member_id']) else: read_tenants.append(member['member_id']) - store.set_acls(req.context, location_uri, public=public, - read_tenants=read_tenants, - write_tenants=write_tenants) + store.set_acls(req.context, location_uri, public=public, + read_tenants=read_tenants, + write_tenants=write_tenants) except exception.UnknownScheme: msg = _("Store for image_id not found: %s") % image_id raise webob.exc.HTTPBadRequest(explanation=msg,
which is consistent with the v2 equivalent, makes the acls appear:
$ swift --os-password hpinvent --os-tenant-name service --os-username glance --os-auth-url http://localhost:35357/v2.0 stat glance_44e4144b-4345-4875-9a5c-de25495914e1 Account: AUTH_0e041755ac31411ba7ac0c8393bf51f9 Container: glance_44e4144b-4345-4875-9a5c-de25495914e1 Objects: 1 Bytes: 731 Read ACL: .r:* <<<< Write ACL: 0e041755ac31411ba7ac0c8393bf51f9 <<<<< Sync To: Sync Key: Accept-Ranges: bytes X-Timestamp: 1359479432.37732 X-Trans-Id: txe055679ebbe546419e0a1bf4471de43d Content-Type: text/plain; charset=utf-8
A patch like this:
sam:glance$ git diff api/v1/ controller. py b/glance/ api/v1/ controller. py api/v1/ controller. py api/v1/ controller. py object) :
write_ tenants. append( member[ 'member_ id'])
else:
read_tenants. append( member[ 'member_ id']) acls(req. context, location_uri, public=public, read_tenants, write_tenants) acls(req. context, location_uri, public=public, read_tenants, write_tenants) UnknownScheme:
msg = _("Store for image_id not found: %s") % image_id
raise webob.exc. HTTPBadRequest( explanation= msg,
diff --git a/glance/
index 2234303..8b74e5d 100644
--- a/glance/
+++ b/glance/
@@ -76,9 +76,9 @@ class BaseController(
- store.set_
- read_tenants=
- write_tenants=
+ store.set_
+ read_tenants=
+ write_tenants=
except exception.
which is consistent with the v2 equivalent, makes the acls appear:
$ swift --os-password hpinvent --os-tenant-name service --os-username glance --os-auth-url http:// localhost: 35357/v2. 0 stat glance_ 44e4144b- 4345-4875- 9a5c-de25495914 e1 31411ba7ac0c839 3bf51f9 44e4144b- 4345-4875- 9a5c-de25495914 e1 ba7ac0c8393bf51 f9 <<<<< 6419e0a1bf4471d e43d
Account: AUTH_0e041755ac
Container: glance_
Objects: 1
Bytes: 731
Read ACL: .r:* <<<<
Write ACL: 0e041755ac31411
Sync To:
Sync Key:
Accept-Ranges: bytes
X-Timestamp: 1359479432.37732
X-Trans-Id: txe055679ebbe54
Content-Type: text/plain; charset=utf-8