← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1503712] [NEW] Cannot delete tenant in openstack Juno

 

Public bug reported:

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

** Affects: keystone
     Importance: Undecided
         Status: New


** Tags: 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:
  Cannot delete tenant in openstack Juno

Status in Keystone:
  New

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


Follow ups