Bug 2053250 - Creating security_group_rule fails on older OpenStack releases
Summary: Creating security_group_rule fails on older OpenStack releases
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-openstacksdk
Version: 35
Hardware: noarch
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: kkula
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2069885 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-10 18:57 UTC by Gerben Welter
Modified: 2022-04-14 16:07 UTC (History)
4 users (show)

Fixed In Version: python-openstacksdk-0.55.1-1.fc35
Clone Of:
Environment:
Last Closed: 2022-04-14 16:07:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 787838 0 None MERGED Don't send empty remote_address_group_id for security groups 2022-04-01 11:19:23 UTC
OpenStack gerrit 835788 0 None NEW Create new bug release in openstacksdk for wallaby 2022-04-01 11:20:04 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.