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

BZ#2239837 MismatchError errors in osp-rpm-py39 / OSP 18

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • openstack-aodh
    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • Committed
    • Committed
    • Committed
    • No
    • CloudOps

      Hello,

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

      ```
      aodh.tests.functional.api.v2.test_alarm_scenarios.TestAlarmsRuleThreshold.test_post_invalid_alarm_statistic
      -----------------------------------------------------------------------------------------------------------

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

      File "/home/zuul/src/code.engineering.redhat.com/aodh/aodh/tests/base.py", line 121, in skip_if_not_implemented
      return func(*args, **kwargs)

      File "/home/zuul/src/code.engineering.redhat.com/aodh/aodh/tests/functional/api/v2/test_alarm_scenarios.py", line 2175, in test_post_invalid_alarm_statistic
      self.assertIn(expected_err_msg,

      File "/usr/lib/python3.9/site-packages/testtools/testcase.py", line 399, in assertIn
      self.assertThat(haystack, Contains(needle), message)

      File "/usr/lib/python3.9/site-packages/testtools/testcase.py", line 480, in assertThat
      raise mismatch_error

      testtools.matchers._impl.MismatchError: "aggregation_method should be in ['count', 'mean', 'max', 'min', 'first', 'last', 'std'] not magic" not in "aggregation_method should be in ['count'] not magic"
      ```

      ^--- and a few similar errors.

      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/6e728306f860ed90054144fefa454d5cd90cc4d0/znoyder/config.d/43-override-OSP-18.yml#L41

      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/aodh/+/446895

      Yours,
      Szymon

            ykulkarn@redhat.com Yadnesh Kulkarni
            jira-bugzilla-migration RH Bugzilla Integration
            rhos-dfg-cloudops
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: