TypeError: object.__new__(thread.lock) is not safe, use thread.lock.__new__()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Marian Horban | ||
Liberty |
Fix Released
|
Medium
|
Matt Riedemann |
Bug Description
When using /usr/bin/nova-api, running $ openstack availability zone list -> works fine.
If using the wsgi scripts, and running nova-api via e.g. uwsgi, the same client command fails as following:
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.720 18938 ERROR nova.api.
2015-10-16 16:58:20.721 18938 INFO nova.api.
<type 'exceptions.
Looks like a dejavu of https:/
This is with liberty final release (or so i believe at the moment).
tags: | added: kilo-backport-potential liberty-backport-potential |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | nobody → Marian Horban (mhorban) |
Changed in nova: | |
assignee: | Marian Horban (mhorban) → Jay Pipes (jaypipes) |
tags: |
added: api wsgi removed: liberty-backport-potential |
Dimitri,
We don't see it in our tests running nova-api under Apache. what were the steps you used to run under uwsgi? There could be a code path that ends up adding more to the context which when deepcopy'ed causes issues in your case and not under apache.
-- Dims