Comment 1 for bug 1109089

Revision history for this message
Stuart McLaren (stuart-mclaren) wrote :

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