Neutron API-site: "Response parameters" table of "List security group rules" has an unnecessary entry

Bug #1477397 reported by Keiichiro Tokunaga
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Keiichiro Tokunaga

Bug Description

"Response parameters" table of "List security group rules" has an unnecessary entry. Please look at http://developer.openstack.org/api-ref-networking-v2-ext.html#listSecGroupRules .

There are two "tenant_id" entries in the table. The latter is the unnecessary one as "tenant_id" in a response parameter is the ID of the tenant who owns the security group rule.

Changed in openstack-api-site:
assignee: nobody → Keiichiro Tokunaga (keiichiro)
Revision history for this message
Keiichiro Tokunaga (keiichiro) wrote :

Here is what I confirmed. There's only one "tenant_id" that is the ID of the tenant who owns the security group *rule*.

$ neutron security-group-rule-list
+--------------------------------------+----------------+-----------+-----------+---------------+-----------------+
| id | security_group | direction | ethertype | protocol/port | remote |
+--------------------------------------+----------------+-----------+-----------+---------------+-----------------+
| 1def2163-b6c3-474e-9902-0a9e42958f86 | default | ingress | IPv6 | any | default (group) |
| 4a5c2dac-a520-41f8-9288-82261b7e0138 | default | egress | IPv6 | any | any |
| 4ff7a294-9f23-4add-9f06-8703cf59ebd6 | default | ingress | IPv6 | any | default (group) |
| 691b855b-958f-492c-b1aa-6068ce08b60f | default | egress | IPv4 | any | any |
| 98ace602-b0ed-494f-ab75-37924e366ecf | default | ingress | IPv4 | any | default (group) |
| d06efb94-89f5-4bf6-af9c-160bd37e8ab6 | default | egress | IPv4 | any | any |
| f2e7922d-8e0c-4329-a245-62e680b66846 | default | ingress | IPv4 | any | default (group) |
| f82aa751-34ec-42ae-bb7d-c21c997d4954 | default | egress | IPv6 | any | any |
+--------------------------------------+----------------+-----------+-----------+---------------+-----------------+
$ curl -s -X GET -H "x-auth-token: $TOKEN" http://192.168.122.111:9696/v2.0/security-group-rules/1def2163-b6c3-474e-9902-0a9e42958f86 | jq "."
{
  "security_group_rule": {
    "security_group_id": "d8110539-9db8-454d-9fca-e6e8b9fd939f",
    "id": "1def2163-b6c3-474e-9902-0a9e42958f86",
    "remote_group_id": "d8110539-9db8-454d-9fca-e6e8b9fd939f",
    "direction": "ingress",
    "remote_ip_prefix": null,
    "protocol": null,
    "ethertype": "IPv6",
    "tenant_id": "56b048ae10a94b3893c3ac0b1cfb40a3",
    "port_range_max": null,
    "port_range_min": null
  }
}

Anne Gentle (annegentle)
Changed in openstack-api-site:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

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

Changed in openstack-api-site:
status: Triaged → In Progress
Tom Fifield (fifieldt)
Changed in openstack-api-site:
milestone: none → liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/205506
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=d9aa47f2a6394ccf01ea979b4a6130a3009fad49
Submitter: Jenkins
Branch: master

commit d9aa47f2a6394ccf01ea979b4a6130a3009fad49
Author: Keiichiro Tokunaga <email address hidden>
Date: Fri Jul 24 19:44:51 2015 +0900

    Delete an entry from "List security group rules" table

    "Response parameters" table of "List security group rules" has an
    unnecessary entry. There are two "tenant_id" entries in the table.
    The latter is the unnecessary one as "tenant_id" in a response
    parameter is the ID of the tenant who owns the security group rule.

    Change-Id: I98300d7af66f5085e7360b2fab3ee260440ac73d
    Closes-Bug: #1477397

Changed in openstack-api-site:
status: In Progress → Fix Released
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.