Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2240187

Summary: Assertion error in RootwrapTestCase.test_KillFilter: osp-rpm-py39 / OSP 18 job
Product: Red Hat OpenStack Reporter: Szymon Datko <sdatko>
Component: python-oslo-rootwrapAssignee: Hervé Beraud <hberaud>
Status: CLOSED MIGRATED QA Contact: Nobody <nobody>
Severity: low Docs Contact:
Priority: medium    
Version: 18.0 (Zed)CC: apevec, lhh, lmiccini, morazi, njohnston
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-oslo-rootwrap-7.0.1-18.0.20231030094658.b72372b.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-19 07:18:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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