yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #56451
[Bug 1623102] [NEW] FWaaSv2 - Error message about 'Rule association' is wrong
Public bug reported:
When try to firewall_policy insert_rule or remove_rule with invalid
request, following error message is displayed:
[Error message]
{
"NeutronError": {
"message": "Operation cannot be performed since Firewall Rule 19230148-740b-4546-9d9a-ab0c50178369 is already associated with FirewallPolicy <built-in function id>",
"type": "FirewallRuleAlreadyAssociated",
"detail": ""
}
}
or
{
"NeutronError": {
"message": "Firewall Rule 19230148-740b-4546-9d9a-ab0c50178369 is not associated with Firewall Policy <built-in function id>.",
"type": "FirewallRuleNotAssociatedWithPolicy",
"detail": ""
}
}
In fact, <build-in function id> should be ID or name for
firewall_policy.
[How to reproduce]
$ source devstack/openrc admin admin
$ export TOKEN=`openstack token issue| grep ' id '| get_field 2`
$ curl -s -X PUT -H "content-type:application/json" -d '{"firewall_rule_id": "19230148-740b-4546-9d9a-ab0c50178369"}' -H "x-auth-token:$TOKEN" localhost:9696/v2.0/fwaas/firewall_policies/e84a79af-b16d-4e2d-a36e-ad3cff41dbd3/insert_rule
or
$ curl -s -X PUT -H "content-type:application/json" -d
'{"firewall_rule_id": "19230148-740b-4546-9d9a-ab0c50178369"}' -H "x
-auth-token:$TOKEN" localhost:9696/v2.0/fwaas/firewall_policies
/e84a79af-b16d-4e2d-a36e-ad3cff41dbd3/remove_rule
** Affects: neutron
Importance: Undecided
Status: New
** Tags: fwaas
** Summary changed:
- FWaaSv2 - Error message in FirewallRuleAlreadyAssociated is wrong
+ FWaaSv2 - Error message about 'Rule association' is wrong
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1623102
Title:
FWaaSv2 - Error message about 'Rule association' is wrong
Status in neutron:
New
Bug description:
When try to firewall_policy insert_rule or remove_rule with invalid
request, following error message is displayed:
[Error message]
{
"NeutronError": {
"message": "Operation cannot be performed since Firewall Rule 19230148-740b-4546-9d9a-ab0c50178369 is already associated with FirewallPolicy <built-in function id>",
"type": "FirewallRuleAlreadyAssociated",
"detail": ""
}
}
or
{
"NeutronError": {
"message": "Firewall Rule 19230148-740b-4546-9d9a-ab0c50178369 is not associated with Firewall Policy <built-in function id>.",
"type": "FirewallRuleNotAssociatedWithPolicy",
"detail": ""
}
}
In fact, <build-in function id> should be ID or name for
firewall_policy.
[How to reproduce]
$ source devstack/openrc admin admin
$ export TOKEN=`openstack token issue| grep ' id '| get_field 2`
$ curl -s -X PUT -H "content-type:application/json" -d '{"firewall_rule_id": "19230148-740b-4546-9d9a-ab0c50178369"}' -H "x-auth-token:$TOKEN" localhost:9696/v2.0/fwaas/firewall_policies/e84a79af-b16d-4e2d-a36e-ad3cff41dbd3/insert_rule
or
$ curl -s -X PUT -H "content-type:application/json" -d
'{"firewall_rule_id": "19230148-740b-4546-9d9a-ab0c50178369"}' -H "x
-auth-token:$TOKEN" localhost:9696/v2.0/fwaas/firewall_policies
/e84a79af-b16d-4e2d-a36e-ad3cff41dbd3/remove_rule
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1623102/+subscriptions
Follow ups