[Bug 2003974] Re: Fails in autopkgtest with python3.11

Corey Bryant 2003974 at bugs.launchpad.net
Mon Apr 10 13:17:04 UTC 2023


Upstream bug: https://storyboard.openstack.org/#!/story/2010694

-- 
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 Released
Status in openstack-trove package in Ubuntu:
  Fix Released

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