yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60681
[Bug 1657377] Re: FWaaS - message of FirewallGroupPortInvalidProject should be fixed
Reviewed: https://review.openstack.org/422480
Committed: https://git.openstack.org/cgit/openstack/neutron-fwaas/commit/?id=19033950d515128417c3929527126c07608d7223
Submitter: Jenkins
Branch: master
commit 19033950d515128417c3929527126c07608d7223
Author: Reedip <reedip14@xxxxxxxxx>
Date: Thu Jan 19 03:58:46 2017 -0500
TrivialFix : Fix Port Error Message
If a port does not belong to the current project,
then an Incorrect message is populated.
The following patch fixes the issue.
TrivialFix
Change-Id: I38016ee9a49ca1b044989ce68baaf6cc982a9d76
Closes-Bug:#1657377
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1657377
Title:
FWaaS - message of FirewallGroupPortInvalidProject should be fixed
Status in neutron:
Fix Released
Bug description:
When updating 'ports' attribute for firewall_group with admin
privilege and specified port belongs to different project, following
error occurred:
{"NeutronError": {"message": "Firewall Group 704d951e-980e-451f-bfae-
854bcc094fa7 in invalid Project", "type":
"FirewallGroupPortInvalidProject", "detail": ""}}
704d951e-980e-451f-bfae-854bcc094fa7 is not firewall group but port.
Therefore, message should be fixed like as follows:
Specified port <port-id> in invalid Project or
Port <port-id> in invalid Project
[How to reproduce]
1. Create firewall_group in admin project
source devstack/openrc admin admin
export TOKEN=`openstack token issue| grep ' id ' | get_field 2`
openstack firewall group create --name fwg
2. Create router-port in demo project
source devstack/openrc demo demo
neutron net-create test; neutron subnet-create test 192.168.200.0/24 --name subnet; neutron router-create test-router; neutron router-interface-add test-router subnet
neutron port-update `neutron port-list | grep 192.168.200.1 | get_field 1` --name target_l3
3. Update firewall_group with 'ports' attribute
source devstack/openrc admin admin
export TOKEN=`openstack token issue| grep ' id ' | get_field 2`
curl -X PUT -H "x-auth-token:$TOKEN" -H "content-type:application/json" -d '{"firewall_group":{"ports":["704d951e-980e-451f-bfae-854bcc094fa7"]}}' localhost:9696/v2.0/fwaas/firewall_groups/bba0311b-db3d-4989-bfa3-3e132d719b94
Note: 704d951e-980e-451f-bfae-854bcc094fa7 is ID for port named
'target_l3'
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1657377/+subscriptions
References