TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType

Bug #1786383 reported by Liyingjun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Incomplete
Undecided
Liyingjun

Bug Description

when running keystone-manage bootstrap multiple times, the following error raised:

2018-08-10 09:44:36.641 392 CRITICAL keystone [req-cc9332f8-b77f-442e-a35a-8fbe9ff2b3cf - - - - -] Unhandled error: TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
2018-08-10 09:44:36.641 392 ERROR keystone Traceback (most recent call last):
2018-08-10 09:44:36.641 392 ERROR keystone File "/usr/bin/keystone-manage", line 10, in <module>
2018-08-10 09:44:36.641 392 ERROR keystone sys.exit(main())
2018-08-10 09:44:36.641 392 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/cmd/manage.py", line 45, in main
2018-08-10 09:44:36.641 392 ERROR keystone cli.main(argv=sys.argv, config_files=config_files)
2018-08-10 09:44:36.641 392 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/cmd/cli.py", line 1349, in main
2018-08-10 09:44:36.641 392 ERROR keystone CONF.command.cmd_class.main()
2018-08-10 09:44:36.641 392 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/cmd/cli.py", line 398, in main
2018-08-10 09:44:36.641 392 ERROR keystone klass.do_bootstrap()
2018-08-10 09:44:36.641 392 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/cmd/cli.py", line 287, in do_bootstrap
2018-08-10 09:44:36.641 392 ERROR keystone role_id=self.role_id
2018-08-10 09:44:36.641 392 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/common/manager.py", line 116, in wrapped
2018-08-10 09:44:36.641 392 ERROR keystone __ret_val = __f(*args, **kwargs)
2018-08-10 09:44:36.641 392 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/assignment/core.py", line 184, in add_role_to_user_and_project
2018-08-10 09:44:36.641 392 ERROR keystone role_id, user_id=user_id, project_id=tenant_id)
2018-08-10 09:44:36.641 392 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/notifications.py", line 614, in wrapper
2018-08-10 09:44:36.641 392 ERROR keystone raise e
2018-08-10 09:44:36.641 392 ERROR keystone TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
2018-08-10 09:44:36.641 392 ERROR keystone
2018-08-10 09:44:44.678 401 INFO keystone.cmd.cli [-] Domain default already exists, skipping creation.

Liyingjun (liyingjun)
Changed in keystone:
assignee: nobody → Liyingjun (liyingjun)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/590606

Changed in keystone:
status: New → In Progress
Revision history for this message
Colleen Murphy (krinkle) wrote :

Could you add more information? What does "multiple times" mean - twice? 5 times? 100 times? Is it consistent - e.g., does it always happen on the Nth try? Are you running bootstrap in rapid succession?

Changed in keystone:
status: In Progress → Incomplete
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by "Gage Hugo <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/keystone/+/590606
Reason: Abandoning since there hasn't been any recent activity, if anyone wants to continue this work, please feel free to restore this or create a new change.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.