python 3.9 failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Brian Haley |
Bug Description
It looks like all of the unit tests fail on the same error "TypeError: cannot pickle '_thread.RLock' object":
tox -e py39
...
ovn_octavia_
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/
super().setUp()
File "/home/
super().setUp()
File "/home/
policy.init()
File "/home/
register_
File "/home/
enforcer.
File "/home/
self.
File "/home/
self.
File "/usr/lib/
y = _reconstruct(x, memo, *rv)
File "/usr/lib/
state = deepcopy(state, memo)
File "/usr/lib/
y = copier(x, memo)
File "/usr/lib/
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/
y = _reconstruct(x, memo, *rv)
File "/usr/lib/
state = deepcopy(state, memo)
File "/usr/lib/
y = copier(x, memo)
File "/usr/lib/
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/
y = _reconstruct(x, memo, *rv)
File "/usr/lib/
state = deepcopy(state, memo)
File "/usr/lib/
y = copier(x, memo)
File "/usr/lib/
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/
y = _reconstruct(x, memo, *rv)
File "/usr/lib/
state = deepcopy(state, memo)
File "/usr/lib/
y = copier(x, memo)
File "/usr/lib/
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/
rv = reductor(4)
TypeError: cannot pickle '_thread.RLock' object
======
Totals
======
Ran: 211 tests in 3.9547 sec.
- Passed: 111
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 100
Sum of execute time for each test: 11.8598 sec.
==============
Worker Balance
==============
- Worker 0 (54 tests) => 0:00:03.251029
- Worker 1 (50 tests) => 0:00:02.942199
- Worker 2 (53 tests) => 0:00:03.094253
- Worker 3 (54 tests) => 0:00:03.180170
To recreate:
lxc launch ubuntu-
lxc exec h1 /bin/bash
git clone https:/
cd ovn-octavia-
tox -e py39
description: | updated |
tags: | added: ovn-octavia-provider |
Changed in neutron: | |
assignee: | nobody → Brian Haley (brian-haley) |
status: | New → Confirmed |
importance: | Undecided → Medium |
I see this locally running unit tests as well, and the fix I've done is to update the neutron requirement in test-requiremen ts.txt to at least 18.0.0 (there was a fix in neutron for this and we inherit it). I should be able to do that once Wallaby is released, it doesn't like any RC tag I tried in the gate, like 18.0.0.0rc1.
At least I think that's the fix...