Bug 2147602
| Summary: | AttributeError: 'SecurityGroupDbMixinTestCase' object has no attribute 'mock_quota_make_res' | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Szymon Datko <sdatko> |
| Component: | openstack-neutron | Assignee: | Fernando Royo <froyo> |
| Status: | CLOSED ERRATA | QA Contact: | Eran Kuris <ekuris> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 17.1 (Wallaby) | CC: | chrisw, froyo, ralonsoh, scohen |
| Target Milestone: | ga | Keywords: | Triaged |
| Target Release: | 17.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-neutron-18.6.1-1.20221208161236.d76107b.el9ost | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-08-16 01:12:44 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: | |||
Bulk moving target milestone to GA after the release of Beta on 14th June '23. fix verified upstream https://zuul.opendev.org/t/openstack/build/466bcdb2020f471e8c7e45f51672d5f3/logs https://4dca9d38a541907e85e1-0253beca39d73a6e7192d5b32ed5edc2.ssl.cf2.rackcdn.com/887468/2/check/openstack-tox-py39/466bcdb/testr_results.html Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2023:4577 |
Hello, we observe a failure in RPM job executed as part of Component CI for OSP 17.1 ``` ============================== Failed 1 tests - output below: ============================== neutron.tests.unit.db.test_securitygroups_db.SecurityGroupDbMixinTestCase.test_create_security_group_no_quota ------------------------------------------------------------------------------------------------------------- Captured traceback: ~~~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "/home/zuul/src/code.engineering.redhat.com/neutron/neutron/tests/base.py", line 183, in func return f(self, *args, **kwargs) File "/home/zuul/src/code.engineering.redhat.com/neutron/neutron/tests/unit/db/test_securitygroups_db.py", line 94, in test_create_security_group_no_quota self.mock_quota_make_res.return_value = None AttributeError: 'SecurityGroupDbMixinTestCase' object has no attribute 'mock_quota_make_res' ``` 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/6a7f3818d006680108c4b842c39c58215f894dea/znoyder/config.yml#L406 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/neutron/+/435960 Yours, Szymon