update_security_group_rule always fails due to read only attributes of security rule

Bug #1464752 reported by Hardik Italia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack SDK
Fix Committed
High
Richard Theis

Bug Description

Security group rule update functionality is not available becasue all the attributes of the security rule are read only. Update security rule is also not availabel using openstackclient, horizon and neutron API.

Example of exception while updating security rule by protocol, remote_group_id,

openstack.exceptions.HttpException: HttpException: 400 Client Error: Bad Request, {"NeutronError": {"message": "Cannot update read-only attribute remote_group_id", "type": "HTTPBadRequest", "detail": ""}}

openstack.exceptions.HttpException: HttpException: 400 Client Error: Bad Request, {"NeutronError": {"message": "Cannot update read-only attribute protocol", "type": "HTTPBadRequest", "detail": ""}}

Tags: resource
summary: - update_security_group_rule always fails due to real only attributes of
+ update_security_group_rule always fails due to read only attributes of
security rule
Revision history for this message
Brian Curtin (brian.curtin) wrote :

Do you mean that we should set allow_update=False on the SecurityGroupRule resource?

Changed in python-openstacksdk:
status: New → Incomplete
Revision history for this message
Hardik Italia (hardik-italia) wrote :

Yes, we should not allow update of security group rule.

Changed in python-openstacksdk:
status: Incomplete → Confirmed
importance: Undecided → High
milestone: none → 1.0
tags: added: resource
Changed in python-openstacksdk:
milestone: 1.0 → none
Richard Theis (rtheis)
Changed in python-openstacksdk:
assignee: nobody → Richard Theis (rtheis)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstacksdk (master)

Fix proposed to branch: master
Review: https://review.openstack.org/248259

Changed in python-openstacksdk:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstacksdk (master)

Reviewed: https://review.openstack.org/248259
Committed: https://git.openstack.org/cgit/openstack/python-openstacksdk/commit/?id=dc6dd9154d23b5f42bea7843d3cc3d8eb6907eb2
Submitter: Jenkins
Branch: master

commit dc6dd9154d23b5f42bea7843d3cc3d8eb6907eb2
Author: Richard Theis <email address hidden>
Date: Fri Nov 20 15:46:11 2015 -0600

    Do not allow security group rule update

    Neutron does not allow security group rules to be updated. This
    patch set removes the update support for security group rules.

    Change-Id: I8748a7a274b3cbcbf4fc45598d8018ccaf95b082
    Closes-Bug: #1464752

Changed in python-openstacksdk:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.