Bug 2053250

Summary: Creating security_group_rule fails on older OpenStack releases
Product: [Fedora] Fedora Reporter: Gerben Welter <gerben>
Component: python-openstacksdkAssignee: kkula
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 35CC: apevec, daltonminer, openstack-sig, rptaylor
Target Milestone: ---   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: python-openstacksdk-0.55.1-1.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-14 16:07:15 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 Gerben Welter 2022-02-10 18:57:30 UTC
Description of problem:

Creating a security_group_rule fails on older OpenStack/Neutron releases due to an unrecognized attribute in the request.

Version-Release number of selected component (if applicable):
0.55

How reproducible:
Always on an older release of OpenStack. I'm not sure which release of OpenStack fixes this.

Steps to Reproduce:
Create a security group rule using Ansible:

- name: create security group rule
  openstack.cloud.security_group_rule:
    cloud: openstack
    security_group: target-sg
    protocol: tcp
    port_range_min: 22
    port_range_max: 22
    remote_ip_prefix: 0.0.0.0/0

Actual results:
BadRequestException: 400: Client Error for url: https://redacted:9696/v2.0/security-group-rules, Unrecognized attribute(s) 'remote_address_group_id'

Expected results:
The security_group_rule is created.

Additional info:
This issue has been fixed upstream in version 0.56 but unfortunately no release of Fedora provides an updated version. Currently the most recent version is 0.61.

Upstream bug: https://review.opendev.org/c/openstack/openstacksdk/+/787838

Comment 1 Alan Pevec 2022-04-01 11:16:38 UTC
*** Bug 2059357 has been marked as a duplicate of this bug. ***

Comment 2 Alan Pevec 2022-04-01 11:20:05 UTC
Pending upstream stable release 0.55.1

Comment 3 Alan Pevec 2022-04-01 11:21:43 UTC
*** Bug 2069885 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2022-04-06 13:46:08 UTC
FEDORA-2022-093702a119 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-093702a119

Comment 5 Fedora Update System 2022-04-06 19:48:32 UTC
FEDORA-2022-093702a119 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-093702a119`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-093702a119

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2022-04-14 16:07:15 UTC
FEDORA-2022-093702a119 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.