← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1503712] Re: Error while deleting tenant in openstack Juno

 

I'm going to assume you're on a stable/kilo or older release of
Keystone, but I'll refer to master's setup.cfg as well. If you got that
configuration value from documentation somewhere, then we need to re-
open this as a doc bug.

Basically, you've set the trust driver to be a revocation driver, which
can't be expected to work.

The only supported backend driver for trusts is
keystone.trust.backends.sql.Trust:

https://github.com/openstack/keystone/blob/stable/kilo/etc/keystone.conf.sample#L1733

https://github.com/openstack/keystone/blob/01b5a711c3056a54e138f73ff5f78ff1827655ea/setup.cfg#L155-L156

Whereas you have a value intended to be used as a [revoke] driver:

https://github.com/openstack/keystone/blob/stable/kilo/etc/keystone.conf.sample#L1495

https://github.com/openstack/keystone/blob/01b5a711c3056a54e138f73ff5f78ff1827655ea/setup.cfg#L172

** Changed in: keystone
       Status: Incomplete => Invalid

** Tags removed: kestone

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1503712

Title:
  Error while deleting tenant in openstack Juno

Status in Keystone:
  Invalid

Bug description:
  Hi,

  When I'm trying to delete project with keystone:

  keystone tenant-delete radomirProject

  I get this error in keystone.log

  2015-10-07 16:28:49.132 2465 INFO eventlet.wsgi.server [-] 10.0.2.60 - - [07/Oct/2015 16:28:49] "POST /v2.0/tokens HTTP/1.1" 200 2494 0.091314
  2015-10-07 16:28:49.154 2455 INFO eventlet.wsgi.server [-] 10.0.2.60 - - [07/Oct/2015 16:28:49] "GET /v2.0/tenants/12a876bf668240de8bff9d9869bb4334 HTTP/1.1" 200 263 0.011250
  2015-10-07 16:28:49.182 2455 ERROR keystone.common.wsgi [-] 'Revoke' object has no attribute 'list_trusts_for_trustee'
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi Traceback (most recent call last):
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/common/wsgi.py", line 223, in __call__
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi     result = method(context, **params)
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/assignment/controllers.py", line 135, in delete_project
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi     self.assignment_api.delete_project(tenant_id)
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/notifications.py", line 112, in wrapper
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi     result = f(*args, **kwargs)
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/assignment/core.py", line 150, in delete_project
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi     self._emit_invalidate_user_project_tokens_notification(payload)
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/notifications.py", line 124, in wrapper
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi     public=self.public)
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/notifications.py", line 254, in _send_notification
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi     notify_event_callbacks(service, resource_type, operation, payload)
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/notifications.py", line 204, in notify_event_callbacks
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi     cb(service, resource_type, operation, payload)
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/token/provider.py", line 516, in _delete_user_project_tokens_callback
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi     project_id=project_id)
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/token/persistence/core.py", line 167, in delete_tokens_for_user
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi     for trust in self.trust_api.list_trusts_for_trustee(user_id):
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/common/manager.py", line 74, in __getattr__
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi     f = getattr(self.driver, name)
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi AttributeError: 'Revoke' object has no attribute 'list_trusts_for_trustee'
  2015-10-07 16:28:49.182 2455 TRACE keystone.common.wsgi

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1503712/+subscriptions


References