Neutron fwaas adding rule to policy reports Error

Bug #2057816 reported by Benjamin Reichel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
In Progress
Undecided
Benjamin Reichel

Bug Description

The command to add a firewall rule to a policy does not work anymore since version python-neutronclient-11.1.0. The example command which is broken is the following:

openstack firewall group policy add rule test allow_ssh_egress
Firewall rule {'firewall_rule_id': '8cc78463-1eed-4062-ba86-3118756cd4e9', 'insert_before': '', 'insert_after': ''} could not be found.: Client Error for url: https://api.my.favorite.cloud:9696/v2.0/fwaas/firewall_policies/0c7c9983-614b-4523-b9c7-763c1cec291e/insert_rule

The put request looks different in the newer versions:
{"firewall_rule_id": {"firewall_rule_id": "8cc78463-1eed-4062-ba86-3118756cd4e9", "insert_before": "", "insert_after": ""}, "insert_after": null, "insert_before": null}

before it was:
{"firewall_rule_id": "8cc78463-1eed-4062-ba86-3118756cd4e9", "insert_before": "", "insert_after": ""}

Tags: fwaas
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-neutronclient (master)
Changed in python-neutronclient:
status: New → In Progress
Changed in python-neutronclient:
assignee: nobody → Benjamin Reichel (breichel)
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.