Your message dated Wed, 08 Jul 2026 11:20:35 +0000
with message-id <[email protected]>
and subject line Bug#1140944: fixed in crmsh 5.0.0-3.1
has caused the Debian Bug report #1140944,
regarding crmsh: autopkgtests fail: AttributeError: module 'ast' has no 
attribute 'Num'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1140944: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1140944
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: crmsh
Version: 5.0.0-3
Severity: serious

=================================== FAILURES
===================================
_____________________________ test_when_expression
_____________________________

    def test_when_expression():
        """
        Test when expressions
        """
        def runtest(when, val):
            the_script = '''version: 2.2
    shortdesc: Test when expressions
    longdesc: See if more complicated expressions work
    parameters:
      - name: stringtest
        type: string
        shortdesc: A test string
    actions:
      - call: "echo '{{stringtest}}'"
        when: %s
    '''
            scrpt = scripts.load_script_string('{}_{}'.format(when, val),
the_script % when)
            assert scrpt is not None

            a1 = scripts.verify(scrpt,
                                {"stringtest": val},
                                external_check=False)
            pprint(a1)
            return a1

>       a1 = runtest('stringtest == "balloon"', "balloon")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/usr/share/crmsh/tests/unittests/test_scripts.py:896:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/crmsh/tests/unittests/test_scripts.py:890: in runtest
    a1 = scripts.verify(scrpt,
/usr/lib/python3/dist-packages/crmsh/scripts.py:2198: in verify
    actions = _process_actions(script, params)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/crmsh/scripts.py:2173: in _process_actions
    when = str(action['when']).strip()
           ^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/crmsh/scripts.py:134: in __str__
    return str(minieval(inp, lenv)).lower()
               ^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/crmsh/minieval.py:370: in minieval
    return SimpleEval(env).evaluate(expr)
           ^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <crmsh.minieval.SimpleEval object at 0x7f5601729010>
names = {'stringtest': 'balloon', 'nodes': None, 'dry_run': 'no', 'action':
None, ...}

    def __init__(self, names):
        """
            Create the evaluator instance.  Set up valid operators (+,-, etc)
            functions (add, random, get_val, whatever) and names. """

        operators = DEFAULT_OPERATORS
        names = names.copy()
        names.update(DEFAULT_NAMES)

        self.operators = operators
        self.names = names

        self.nodes = {
>           ast.Num: self._eval_num,
            ^^^^^^^
            ast.Str: self._eval_str,
            ast.Name: self._eval_name,
            ast.UnaryOp: self._eval_unaryop,
            ast.BinOp: self._eval_binop,
            ast.BoolOp: self._eval_boolop,
            ast.Compare: self._eval_compare,
            ast.IfExp: self._eval_ifexp,
            ast.keyword: self._eval_keyword,
            ast.Subscript: self._eval_subscript,
            ast.Attribute: self._eval_attribute,
            ast.Index: self._eval_index,
            ast.Slice: self._eval_slice,
        }
E       AttributeError: module 'ast' has no attribute 'Num'

/usr/lib/python3/dist-packages/crmsh/minieval.py:186: AttributeError
____________________________ TestSBD.test_do_purge
_____________________________

self = <unittests.test_ui_sbd.TestSBD testMethod=test_do_purge>
mock_purge_sbd_from_cluster = <MagicMock name='purge_sbd_from_cluster'
id='140007337183616'>
mock_check_all_nodes_reachable = <MagicMock name='check_all_nodes_reachable'
id='140007337193360'>

    @mock.patch('crmsh.utils.check_all_nodes_reachable')
    @mock.patch('crmsh.sbd.purge_sbd_from_cluster')
    def test_do_purge(self, mock_purge_sbd_from_cluster,
mock_check_all_nodes_reachable):
        self.sbd_instance_diskbased._load_attributes = mock.Mock()
        self.sbd_instance_diskbased._service_is_active =
mock.Mock(return_value=True)
>       res = self.sbd_instance_diskbased.do_purge(mock.Mock())
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/usr/share/crmsh/tests/unittests/test_ui_sbd.py:579:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/crmsh/ui_sbd.py:590: in do_purge
    sbd.SBDManager.restart_cluster_if_possible()
/usr/lib/python3/dist-packages/crmsh/sbd.py:565: in restart_cluster_if_possible
    bootstrap.restart_cluster()
/usr/lib/python3/dist-packages/crmsh/bootstrap.py:2911: in restart_cluster
    utils.cluster_run_cmd("crm cluster restart")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cmd = 'crm cluster restart', node_list = []

    def cluster_run_cmd(cmd, node_list=[]):
        """
        Run cmd in cluster nodes
        """
        nodelist = node_list or list_cluster_nodes()
        if not nodelist:
>           raise ValueError("Failed to get node list from cluster")
E           ValueError: Failed to get node list from cluster

/usr/lib/python3/dist-packages/crmsh/utils.py:1743: ValueError
----------------------------- Captured stdout call
-----------------------------
.EXT cibadmin -Q
=========================== short test summary info
============================
FAILED test_scripts.py::test_when_expression - AttributeError: module 'ast' has
no attribute 'Num'
FAILED test_ui_sbd.py::TestSBD::test_do_purge - ValueError: Failed to get node
list from cluster


-- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), 
(101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.0.12+deb14.1-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages crmsh depends on:
ii  gawk                 1:5.3.2-1
ii  iputils-ping         3:20250605-1
pn  pacemaker-cli-utils  <none>
ii  python3              3.13.9-3+b1
ii  python3-dateutil     2.9.0-4
ii  python3-lxml         6.1.0-1
ii  python3-packaging    26.2-2
ii  python3-yaml         6.0.3-1

Versions of packages crmsh recommends:
pn  pacemaker  <none>

Versions of packages crmsh suggests:
ii  bash-completion    1:2.16.0-8
pn  cluster-glue       <none>
pn  csync2             <none>
ii  dmidecode          3.7-1
ii  fdisk              2.42.2-1
pn  ocfs2-tools        <none>
ii  openssh-server     1:10.3p1-5
ii  parted             3.7-1
pn  sbd                <none>
pn  ufw                <none>
ii  util-linux         2.42.2-1
ii  util-linux-extra   2.42.2-1
ii  vim-addon-manager  0.5.11

--- End Message ---
--- Begin Message ---
Source: crmsh
Source-Version: 5.0.0-3.1
Done: Adrian Bunk <[email protected]>

We believe that the bug you reported is fixed in the latest version of
crmsh, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <[email protected]> (supplier of updated crmsh package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 05 Jul 2026 19:39:35 +0300
Source: crmsh
Architecture: source
Version: 5.0.0-3.1
Distribution: unstable
Urgency: medium
Maintainer: Debian HA Maintainers 
<[email protected]>
Changed-By: Adrian Bunk <[email protected]>
Closes: 1140944
Changes:
 crmsh (5.0.0-3.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Backport upstream fixes for Python 3.14. (Closes: #1140944)
Checksums-Sha1:
 1856908ae82beedd42e83d138f258bd5fc756593 2438 crmsh_5.0.0-3.1.dsc
 050d11641bb67eea47428b570df85ca2f398ce47 31728 crmsh_5.0.0-3.1.debian.tar.xz
Checksums-Sha256:
 6793d20cec3603aebf3b06c72a910c31eecf191473712da3041613657d98eb75 2438 
crmsh_5.0.0-3.1.dsc
 6368eecda3f833c84271040da877a8deb780d700eaf66d51157a62961c219a30 31728 
crmsh_5.0.0-3.1.debian.tar.xz
Files:
 b58040de95d2eed5c084c337e4b11e17 2438 admin optional crmsh_5.0.0-3.1.dsc
 71a20c2fa99d7c1469e9ff0515b1b845 31728 admin optional 
crmsh_5.0.0-3.1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmpM8yoACgkQiNJCh6LY
mLG3thAAwM/fr43/d2pdU4jWg1dMJYA6gXBftgFB2BA4kCk9ektd3BPkD6FnwC93
286EZOsZHGp759dhSXp8PKNIYsz10vmn+FjfnnmIEbGwcymUad94m87t5Yn0s+ZT
zviaJl+rghmgZCLMfQiGy7LKAYT6xZ11l2bJCg7WS7zFmVYBpNwNk9CenRU8DCOr
GbIkF0Oi8QopQcTilpRnHg6b8c81FWqGc+5bpRQZryRaoXxVJFSwpIEZMg+Cjd9/
4ETNTOhBDTS3HhElhUrNWyMRQE3AfVJXcKCwJPkwkTYIb4MC8NEOqWSZ6v7oWGHZ
OUuV2+GCogvvC8vwXj/sp8S8WkyZrz3DTFaYRZAbKrRYn0mlOVkRjXeoGo0Nnuc7
StFV0db19jjRwjN45MIm+q0UmQfW5fR99B9OUtzGuCsBxImDj4ahYYm29ozzDFRM
Yw7/Bi8f9egm6vumVPY3t52Vh2mOer3SN2jRylRLwIKheEIfo57kzpmfaWvuQl02
uFyf69bW62Ieci4YccRDV9P0hFYDd6SNAWksJAbJ8xlfi7Xkbo1+yM8gIf6slTuX
INLZsx1d7igx18flHBia6D/TXYx+QkpYN8P8ut6TcBLy1hkWDBI7Sl37YtpiTZ3R
+VEVXC+ahVHedq9mmF79lSYfqd+R/ieW/98lP6CqSKSy+GozMfg=
=G8ZH
-----END PGP SIGNATURE-----

Attachment: pgp8zF_EDYTXq.pgp
Description: PGP signature


--- End Message ---

Reply via email to