This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2240187 - Assertion error in RootwrapTestCase.test_KillFilter: osp-rpm-py39 / OSP 18 job
Summary: Assertion error in RootwrapTestCase.test_KillFilter: osp-rpm-py39 / OSP 18 job
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-oslo-rootwrap
Version: 18.0 (Zed)
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Hervé Beraud
QA Contact: Nobody
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-22 11:02 UTC by Szymon Datko
Modified: 2024-01-19 07:22 UTC (History)
5 users (show)

Fixed In Version: python-oslo-rootwrap-7.0.1-18.0.20231030094658.b72372b.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-01-19 07:18:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad.net oslo.rootwrap/+bug/2037383 0 None None None 2023-09-26 08:34:51 UTC
OpenStack gerrit 896492 0 None MERGED Add coreutils as valid value to fix KillFilter test 2024-01-19 07:11:49 UTC
Red Hat Issue Tracker   OSP-28938 0 None None None 2024-01-19 07:18:48 UTC
Red Hat Issue Tracker OSP-31216 0 None None None 2024-01-19 07:22:25 UTC

Description Szymon Datko 2023-09-22 11:02:12 UTC
Hello,

we observe a failure in RPM job executed as part of Component CI for OSP 18

```
oslo_rootwrap.tests.test_rootwrap.RootwrapTestCase.test_KillFilter
------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/zuul/src/code.engineering.redhat.com/oslo.rootwrap/oslo_rootwrap/tests/test_rootwrap.py", line 211, in test_KillFilter
    self.assertTrue(f.match(usercmd) or f2.match(usercmd))

      File "/usr/lib64/python3.9/unittest/case.py", line 688, in assertTrue
    raise self.failureException(msg)

    AssertionError: False is not true
```

What we do in the job, is:
– we fetch the spec file and install the RPM dependencies listed there,
– we install some missing RPMs identified (that should be in spec file probably, but they are not),
– we run the tests defined in tox.

The additional RPMs we install are listed here:
https://github.com/RedHatCRE/znoyder/blob/58d71ba641ab69acca20d096627f1b64ed45af27/znoyder/config.d/43-override-OSP-18.yml#L349

So, in essence, this is a tox job but with truncated requirement.txt and site-packages enabled.

You can use this change for debugging the issue.
https://code.engineering.redhat.com/gerrit/c/oslo.rootwrap/+/446899

Yours,
Szymon


Note You need to log in before you can comment on or make changes to this bug.