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

Bug 2147602

Summary: AttributeError: 'SecurityGroupDbMixinTestCase' object has no attribute 'mock_quota_make_res'
Product: Red Hat OpenStack Reporter: Szymon Datko <sdatko>
Component: openstack-neutronAssignee: 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: gaKeywords: 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:

Description Szymon Datko 2022-11-24 11:18:34 UTC
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

Comment 9 Lukas Svaty 2023-06-16 08:13:29 UTC
Bulk moving target milestone to GA after the release of Beta on 14th June '23.

Comment 17 errata-xmlrpc 2023-08-16 01:12:44 UTC
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