QPID functional tests broke the CI

Bug #1992587 reported by Herve Beraud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.messaging
Fix Released
Undecided
Unassigned

Bug Description

A recent oslo.messaging patch [1], not yet merged, who aim to update the test runtime for antelope lead us to the following error [2]:

```
qdrouterd: Python: ModuleNotFoundError: No module named 'qpid_dispatch'
```

Complete traceback:
```
2022-10-10 15:23:34.428616 | ubuntu-focal | py38-func-scenario03 start: run-test

2022-10-10 15:23:34.428680 | ubuntu-focal | py38-func-scenario03 run-test: commands[0] | /home/zuul/src/opendev.org/openstack/oslo.messaging/tools/setup-scenario-env.sh stestr run --slowest oslo_messaging.tests.functional

2022-10-10 15:23:34.428815 | ubuntu-focal | setting PATH=/home/zuul/src/opendev.org/openstack/oslo.messaging/.tox/py38-func-scenario03/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

2022-10-10 15:23:34.431010 | ubuntu-focal | [6027] /home/zuul/src/opendev.org/openstack/oslo.messaging$ /home/zuul/src/opendev.org/openstack/oslo.messaging/tools/setup-scenario-env.sh stestr run --slowest oslo_messaging.tests.functional

2022-10-10 15:23:41.126660 | ubuntu-focal | DEBUG [pifpaf.drivers] executing: ['saslpasswd2', '-c', '-p', '-f', '/tmp/tmp79tm1tvk/etc/sasl2/qdrouterd.sasldb', 'stackqpid']

2022-10-10 15:23:41.130660 | ubuntu-focal | DEBUG [pifpaf.drivers] saslpasswd2 input: b'secretqpid'

2022-10-10 15:23:41.136206 | ubuntu-focal | DEBUG [pifpaf.drivers] executing: ['qdrouterd', '-c', '/tmp/tmp79tm1tvk/etc/qdrouterd.conf']

2022-10-10 15:23:41.205242 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: 2022-10-10 15:23:41.204645 +0000 ERROR (error) Python: ModuleNotFoundError: No module named 'qpid_dispatch'

2022-10-10 15:23:41.205322 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: 2022-10-10 15:23:41.205135 +0000 ERROR (error) Traceback (most recent call last):

2022-10-10 15:23:41.205371 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/dispatch.py", line 150, in import_check

2022-10-10 15:23:41.205389 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: return builtin_import(name, *args, **kw)

2022-10-10 15:23:41.205432 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/config.py", line 27, in <module>

2022-10-10 15:23:41.205504 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: from qpid_dispatch.management.entity import camelcase

2022-10-10 15:23:41.205568 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/dispatch.py", line 150, in import_check

2022-10-10 15:23:41.205634 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: return builtin_import(name, *args, **kw)

2022-10-10 15:23:41.205706 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: ModuleNotFoundError: No module named 'qpid_dispatch'

2022-10-10 15:23:41.205775 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output:

2022-10-10 15:23:41.205852 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: 2022-10-10 15:23:41.205175 +0000 MAIN (critical) Router start-up failed: Python: ModuleNotFoundError: No module named 'qpid_dispatch'

2022-10-10 15:23:41.205918 | ubuntu-focal | DEBUG [pifpaf.drivers] qdrouterd[6653] output: qdrouterd: Python: ModuleNotFoundError: No module named 'qpid_dispatch'

2022-10-10 15:23:51.163808 | ubuntu-focal | DEBUG [pifpaf.util] Terminating (6653)

2022-10-10 15:23:51.169548 | ubuntu-focal | DEBUG [pifpaf.util] Waiting (6653)

2022-10-10 15:23:51.179944 | ubuntu-focal | WARNING [pifpaf.util] `psutil.Popen(pid=6651, status='terminated', exitcode=0, started='15:23:40')` is already gone, sending SIGKILL to its process group

2022-10-10 15:23:51.181477 | ubuntu-focal | ERROR [pifpaf] Traceback (most recent call last):

2022-10-10 15:23:51.181509 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/oslo.messaging/.tox/py38-func-scenario03/lib/python3.8/site-packages/fixtures/fixture.py", line 196, in setUp

2022-10-10 15:23:51.181522 | ubuntu-focal | self._setUp()

2022-10-10 15:23:51.181532 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/oslo.messaging/.tox/py38-func-scenario03/lib/python3.8/site-packages/pifpaf/drivers/qdrouterd.py", line 111, in _setUp

2022-10-10 15:23:51.181543 | ubuntu-focal | c, _ = self._exec(["qdrouterd", "-c", qdr_cfg],

2022-10-10 15:23:51.181553 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/oslo.messaging/.tox/py38-func-scenario03/lib/python3.8/site-packages/pifpaf/drivers/__init__.py", line 248, in _exec

2022-10-10 15:23:51.181564 | ubuntu-focal | raise RuntimeError("Program did not open port %s" %

2022-10-10 15:23:51.181574 | ubuntu-focal | RuntimeError: Program did not open port 5692
```

Neither debian or ubuntu in the latest releases have any binary built for qpid_dispatch, only the qpid proton, the client lib, is available.

As the qpid driver have been removed since a while, I'd suggest to remove these qpid functional tests, to unlock our gates.

[1] https://review.opendev.org/c/openstack/oslo.messaging/+/856643
[2] https://zuul.opendev.org/t/openstack/build/b8a0d4d0bbae4e70b4d30dcb1fa5ef9e/log/job-output.txt

Changed in oslo.messaging:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (master)

Reviewed: https://review.opendev.org/c/openstack/oslo.messaging/+/861070
Committed: https://opendev.org/openstack/oslo.messaging/commit/0f63c227f5425995ae8c61f1d40ec85e7728528a
Submitter: "Zuul (22348)"
Branch: master

commit 0f63c227f5425995ae8c61f1d40ec85e7728528a
Author: Hervé Beraud <email address hidden>
Date: Wed Oct 12 11:21:00 2022 +0200

    Deprecate the amqp1 driver and Remove qpid functional tests

    A recent oslo.messaging patch [1], not yet merged, who aim to update the
    test runtime for antelope lead us to the following error:

    ```
    qdrouterd: Python: ModuleNotFoundError: No module named 'qpid_dispatch'
    ```

    Neither debian nor ubuntu in the latest releases have any binary
    built for the qpid backend, not even 3rd party. Only qpid proton,
    the client lib, is available.

    To solve this issue, these changes propose to deprecate the AMQP1 driver
    who is the one based on qpid and proton, and propose to remove the
    related functional tests.

    The AMQP1 driver doesn't seems to be widely used.

    [1] https://review.opendev.org/c/openstack/oslo.messaging/+/856643

    Closes-Bug: 1992587
    Change-Id: Id2ca9cd9ee8b8dbdd14dcd00ebd8188d20ea18dc

Changed in oslo.messaging:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.messaging 14.4.0

This issue was fixed in the openstack/oslo.messaging 14.4.0 release.

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.