crmsh orderedset.py does not support python 3.10

Bug #1958393 reported by Athos Ribeiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
crmsh (Ubuntu)
Fix Released
Undecided
Athos Ribeiro

Bug Description

orderedset.py uses collections.MutableSet, which had been removed in python 3.10.

This has been fixed upstream in

https://github.com/ClusterLabs/crmsh/commit/c1356d64086d2e3f9d113f346a14e6dff1c2acb0

This blocks the python 3.10 migration, with:

crm cluster init --yes --name=autopkgtest --unicast
Traceback (most recent call last):
  File "/usr/sbin/crm", line 29, in <module>
    from crmsh import main
  File "/usr/lib/python3/dist-packages/crmsh/main.py", line 18, in <module>
    from . import ui_root
  File "/usr/lib/python3/dist-packages/crmsh/ui_root.py", line 23, in <module>
    from . import ui_cib
  File "/usr/lib/python3/dist-packages/crmsh/ui_cib.py", line 16, in <module>
    from .cibconfig import cib_factory
  File "/usr/lib/python3/dist-packages/crmsh/cibconfig.py", line 23, in <module>
    from . import orderedset
  File "/usr/lib/python3/dist-packages/crmsh/orderedset.py", line 29, in <module>
    class OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'
autopkgtest [06:36:57]: test pacemaker-cluster-init.sh: -----------------------]
autopkgtest [06:36:58]: test pacemaker-cluster-init.sh: - - - - - - - - - - results - - - - - - - - - -
pacemaker-cluster-init.sh FAIL non-zero exit status 1
autopkgtest [06:36:58]: @@@@@@@@@@@@@@@@@@@@ summary
command1 FAIL non-zero exit status 1
command2 FAIL non-zero exit status 1
command3 FAIL non-zero exit status 1
utils.sh PASS
testsuite.sh FAIL non-zero exit status 2
pacemaker-basic-resource.sh FAIL non-zero exit status 1
pacemaker-node-status.sh FAIL non-zero exit status 1
pacemaker-cluster-init.sh FAIL non-zero exit status 1

As shown in https://autopkgtest.ubuntu.com/results/autopkgtest-jammy/jammy/amd64/c/crmsh/20220115_063709_22736@/log.gz

Related branches

Changed in crmsh (Ubuntu):
assignee: nobody → Athos Ribeiro (athos-ribeiro)
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package crmsh - 4.3.1-1ubuntu1

---------------
crmsh (4.3.1-1ubuntu1) jammy; urgency=medium

  * Merge with Debian unstable (LP: #1958978). Remaining changes:
    - d/t/pacemaker-node-status.sh: Use the output of "uname -n" instead
      of "node1" as the pacemaker node name.
    - d/p/0020-Use-crmsh-hb_report.patch: use the crmsh shipped hb_report script
      when available (LP #1958247).
      [ Adjusted for 4.3.1 upstream release. ]
  * Dropped changes:
    - d/p/0017-Fix-health-scripts-python-38-support.patch: remove deprecated
      function usage (LP #1947022).
      [ Included in Debian in 4.3.1-1. ]
    - d/p/0018-Replace-crmd.patch: replace crmd calls with pacemaker-controld
      (LP #1958241).
      [ Included in Debian in 4.3.1-1. ]
    - d/t/testsuite.sh: set timezone for time conversion tests (LP #1958243).
      [ Included in Debian in 4.3.1-1. ]
    - d/p/0019-Add-hb_report-dpkg-support.patch: Add dpkg support to hb_report
      (LP #1958246).
      [ Included in Debian in 4.3.1-1. ]
  * Added changes:
    - d/p/0021-Support-python-310.patch: support Python 3.10 (LP: #1958393).

 -- Athos Ribeiro <email address hidden> Wed, 26 Jan 2022 09:27:26 -0300

Changed in crmsh (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.