Fails in autopkgtest with python3.11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
crudini (Ubuntu) |
Fix Released
|
Medium
|
Simon Quigley | ||
openstack-trove (Ubuntu) |
Fix Released
|
Medium
|
Simon Quigley |
Bug Description
openstack-trove currently fails in autopkgtest when triggered with python 3.11, such as seen at https:/
I believe there are 2 reasons for this failure:
1) Message on stderr related to pipes deprecation
autopkgtest [01:13:15]: test trove-daemons: [------
/usr/bin/
import pipes
autopkgtest [01:13:19]: test trove-daemons: -------
trove-daemons FAIL non-zero exit status 1
autopkgtest [01:13:20]: test trove-daemons: - - - - - - - - - - results - - - - - - - - - -
autopkgtest [01:13:20]: test trove-daemons: - - - - - - - - - - stderr - - - - - - - - - -
/usr/bin/
import pipes
So either fixing the deprecation, suppressing stderr, or adding allow-stderr should suffice.
(Unrelated - I believe this test wants restriction isolation-
2) AttributeError: module 'inspect' has no attribute 'getargspec'
When I experimented with adding the allow-stderr restriction, I found that the test still failed.
If one runs the trove-manage db_sync step without redirection outputs to /dev/null, we get some useful info:
+ su -s /bin/sh -c 'python3.11 /usr/bin/
Command failed, please check log for more info.
root [-] Unhandled error: AttributeError: module 'inspect' has no attribute 'getargspec'
root Traceback (most recent call last):
root File "/usr/bin/
root sys.exit(main())
root ^^^^^^
root File "/usr/lib/
root Commands(
root File "/usr/lib/
root args = inspect.
root ^^^^^^^^^^^^^^^^^^
root AttributeError: module 'inspect' has no attribute 'getargspec'
root
(timestamps trimmed from this log for readability)
Changed in crudini (Ubuntu): | |
assignee: | nobody → Simon Quigley (tsimonq2) |
importance: | Undecided → Medium |
status: | New → In Progress |
status: | In Progress → Fix Committed |
Changed in openstack-trove (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
assignee: | nobody → Simon Quigley (tsimonq2) |
This is fixed in the latest crudini 0.9.4 release, so it would be good to update the crudini package in ubuntu