Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-3892

BZ#2240187 Assertion error in RootwrapTestCase.test_KillFilter: osp-rpm-py39 / OSP 18 job

XMLWordPrintable

    • Moderate

      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

              herveberaud Hervé Beraud (Inactive)
              jira-bugzilla-migration RH Bugzilla Integration
              rhos-dfg-pidone
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: