[Bug 2003974] Re: Fails in autopkgtest with python3.11
Simon Quigley
2003974 at bugs.launchpad.net
Mon Jan 30 18:27:27 UTC 2023
** Changed in: crudini (Ubuntu)
Assignee: (unassigned) => Simon Quigley (tsimonq2)
** Changed in: crudini (Ubuntu)
Importance: Undecided => Medium
** Changed in: crudini (Ubuntu)
Status: New => In Progress
** Changed in: crudini (Ubuntu)
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to openstack-trove in Ubuntu.
https://bugs.launchpad.net/bugs/2003974
Title:
Fails in autopkgtest with python3.11
Status in crudini package in Ubuntu:
Fix Committed
Status in openstack-trove package in Ubuntu:
New
Bug description:
openstack-trove currently fails in autopkgtest when triggered with
python 3.11, such as seen at
https://autopkgtest.ubuntu.com/results/autopkgtest-
lunar/lunar/amd64/o/openstack-trove/20230126_012539_e9a11@/log.gz
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/crudini:20: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
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/crudini:20: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
import pipes
So either fixing the deprecation, suppressing stderr, or adding allow-stderr should suffice.
(Unrelated - I believe this test wants restriction isolation-container)
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/trove-manage db_sync' trove
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/trove-manage", line 10, in <module>
root sys.exit(main())
root ^^^^^^
root File "/usr/lib/python3/dist-packages/trove/cmd/manage.py", line 390, in main
root Commands().execute()
root File "/usr/lib/python3/dist-packages/trove/cmd/manage.py", line 49, in execute
root args = inspect.getargspec(exec_method)
root ^^^^^^^^^^^^^^^^^^
root AttributeError: module 'inspect' has no attribute 'getargspec'
root
(timestamps trimmed from this log for readability)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/crudini/+bug/2003974/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list