swift_store_admin_tenants not working as expected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Stuart McLaren | ||
Grizzly |
Fix Released
|
High
|
Stuart McLaren |
Bug Description
When using a 'multi-tenant' swift backing store "swift_
seem to work as expected.
Eg if I set the following in glance-api.conf:
swift_store_
The swift object doesn't have any read acls:
$ swift --os-password hpinvent --os-tenant-name service --os-username glance --os-auth-url http://
Account: AUTH_0e041755ac
Container: glance_
Objects: 1
Bytes: 731
Read ACL:
Write ACL:
Sync To:
Sync Key:
Accept-Ranges: bytes
X-Timestamp: 1359477967.70988
X-Trans-Id: tx554851fcc75b4
Content-Type: text/plain; charset=utf-8
It looks like a possible indentation error in glance/
Changed in glance: | |
importance: | Undecided → High |
Changed in glance: | |
milestone: | none → grizzly-3 |
status: | Fix Committed → Fix Released |
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