nova --debug secgroup-list --all-tenant 1 does not show all tenant when Neutron is used

Bug #1284202 reported by Attila Fazekas
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Jeffrey Zhang
Kilo
Fix Released
Undecided
Unassigned

Bug Description

As admin, I cannot list all neutron security groups with nova.

# neutron security-group-list
+--------------------------------------+---------------------+------------------+
| id | name | description |
+--------------------------------------+---------------------+------------------+
| 0060bb2a-a685-4445-b1a5-89d0c4f5f226 | default | default |
| 00c42289-69fb-4d0b-a69b-cce89b89fefb | default | default |
| 00e73187-cfb7-4362-86e5-f2310ace5266 | default | default |
| 0149af4c-4521-4e89-8e26-49dbff96494b | default | default |
| 039b91b1-daf6-4e8c-a815-c137f3a56975 | default | default |
| 03c1640e-a715-4b4b-b69e-ab02c247c72b | default | default |
| 0679924c-70a8-499b-88f5-663c520bf6d1 | sec_grp--3193851 | desc--722700139 |
| 0a223200-56a0-4eb9-a933-013211082be7 | default | default |
| 0a4fcf8b-dc8c-408a-994e-c563345e6e20 | default | default |
| 0b97a8f7-0582-4814-b914-b0571ddd4746 | default | default |
| 0db18431-a54a-4b59-913a-85a9542bcb3c | default | default |
| 1024926f-40ee-4fdf-9637-a14d6aed1d66 | default | default |
| 119d588f-9ce8-4dbe-a711-3bd2de3327a4 | default | default |
| 13d49793-dd7c-4504-bbe6-96ff0ffac1d9 | default | default |
| 161a0b3c-334e-4a4f-a411-db70eb6ab26d | sec_grp--876102254 | desc--49581304 |
| 18645f71-76c5-440a-9198-27a406f5635e | default | default |
| 18cbadeb-687a-4001-8b4b-c41900947ecb | default | default |
| 18d5badf-7e3e-4ba5-a172-eb7f60b3fe49 | default | default |
| 1a846b20-ec19-427f-aca6-2bb3fae50f2d | default | default |
| 1da062a2-33a2-41d4-be25-c061b1593b31 | default | default |
| 2252c82d-8624-4ed3-9d4e-c533848be734 | default | default |
| 238a40e8-d7a1-4def-a9b4-0a9a475ec97a | default | default |
| 26aadab6-6e31-4871-937f-9ab367f970c5 | default | default |
| 26e08be5-7c5d-4e20-b7d5-dd95fe481edd | default | default |
| 26eaef82-b627-4ed8-ac71-c80718c5d3f7 | default | default |
| 28acea35-c0b4-4735-ae06-2f9e643d084b | default | default |
| 305a4649-fb63-4daa-9548-f4d62ff53f20 | default | default |
| 348f7291-223f-4fad-babd-1a1bfa1bde87 | default | default |
| 386b0d4a-f561-480d-96e9-0ffe9810f999 | default | default |
| 3b3a0261-461d-4e95-836f-bb3c7610c6f1 | default | default |
| 3fb562dd-891f-4619-af12-8faa53372d35 | default | default |
| 4027da48-0e5d-4a65-abfd-102345b14b30 | default | default |
| 411f79ea-754a-4ce2-a678-35f20f5de532 | default | default |
| 42243252-4f8a-464d-8002-c1e6c9c8592b | default | default |
| 45283e79-5698-4852-bfe3-20e84ec61e4f | default | default |
| 498987d7-1a4c-4a81-af45-5704142fbd7b | default | default |
| 4b05cc35-f9e6-493f-a520-b2e883cb2305 | default | default |
| 4b3bd3ca-fa60-4d78-a207-78e421aeee78 | default | default |
| 4c0c1393-70a3-46d0-a748-792e00297e7d | default | default |
| 4c5f102d-0509-4ef8-8132-12d4bba8a536 | default | default |
| 4de94b11-5bbf-41ad-ab6f-8291c14df5c3 | default | default |
| 4ea81807-6627-4182-aa21-3feb1315b79c | default | default |
| 4f3efebe-2a22-4c9a-8d65-dd0859c84979 | default | default |
| 543cfe02-457f-4399-887f-3c1f2307c2e3 | default | default |
| 5462f168-324f-44e3-a81e-0f3444099d19 | default | default |
| 554c7ecd-7876-4f80-9096-41b0f1e7498b | default | default |
| 55b20025-f031-4ab3-83a5-ae84e7d162b3 | default | default |
| 56523131-0929-4b7c-a647-d19452579e54 | default | default |
| 571b707b-718d-428f-8e9f-40815be756a5 | default | default |
| 589ba3fc-1a46-4b49-b864-3856933efca6 | default | default |
| 599be467-b790-4bcc-b2c0-0f63aa527b84 | default | default |
| 5d220b31-4008-4921-83bf-c0082a7f5b78 | default | default |
| 5d6fc255-66cf-4d8e-8970-a344141a1bcc | default | default |
| 5f380fc4-521c-482e-9ad3-2eccb4d456c8 | default | default |
| 65ceaa96-a85e-4cab-97d9-b0eeb3f3e791 | default | default |
| 66408c95-643a-4b47-96ff-cdcef7346d3f | default | default |
| 69e3fd4a-b71e-419f-8ef3-0df7e162c1f7 | default | default |
| 6ec3c1c7-616d-4752-afd6-69b22dbd178c | default | default |
| 6f5c50a4-fd91-4b55-805e-c3aba5c08343 | default | default |
| 7236e225-2d9c-45af-829c-3c148a9afeec | default | default |
| 735c2139-ad6e-4a36-ac48-bea737e63cca | default | default |
| 76acab71-15f6-4bf0-87bf-530caff9521c | default | default |
| 78a2f444-c3c2-4f90-b74b-635ca988e8ed | default | default |
| 7b08078a-addc-48d3-859f-445d875f131f | default | default |
| 7b6f29b2-9388-4cff-b758-496e5a1d38bc | default | default |
| 7ce297e8-2ee2-4dde-beb9-d7b613a5831f | default | default |
| 7e1c515c-124f-45f1-a172-329afdcd1548 | default | default |
| 7fa90af5-4a44-4040-b3df-125dba8c8d61 | default | default |
| 819624cf-b748-4e33-a1c3-fcb6669d12ef | default | default |
| 81d1a085-8bba-4d94-995a-1bd1c626d5ab | default | default |
| 854dcf95-c737-44c9-a386-2ed8176b30dd | default | default |
| 8684fa04-25ed-4938-bbc5-e0c1e507628a | default | default |
| 8703ca7b-4bd7-46a2-a0cd-8a5ecec804f0 | default | default |
| 91082f97-1fb4-4c7c-a1b0-412812fefb40 | default | default |
| 918441d9-c2eb-4511-b9b7-50fcaca743ca | default | default |
| 95d36cc6-2a80-4c8d-a4b1-abfedb2bb002 | default | default |
| 97321511-10ec-4a0f-abbd-f55dda9c4b56 | default | default |
| 98358fd6-1c3b-4f16-aa1d-0379fa30db32 | default | default |
| 99d6c920-5ccd-41e0-acb2-ae527feca10f | default | default |
| 9b0ac18d-c590-46a5-ac29-167c276a3788 | default | default |
| 9c7b94ee-0046-4add-a404-9f1c807dc3d3 | default | default |
| 9cc8a8cd-1c33-44e8-acb4-acba5f53e9f5 | default | default |
| 9d9cd06a-2a70-4bcb-ad11-40831972c7d7 | default | default |
| 9ddf932a-d844-4379-b466-fe4085c620ac | default | default |
| 9e252174-b274-4373-bd2e-46362f9b862c | default | default |
| 9ed6711b-ed4f-41ef-a0dc-1d81c5602777 | default | default |
| a0dfa5e6-e2a9-487d-b463-77d0279fb549 | sec_grp--1333269014 | desc--691825383 |
| a3dd69aa-7c34-44db-a047-aee06cafa01a | default | default |
| a4a7c6f8-0518-4991-a2c2-94e1e20f545e | sec_grp--386131470 | desc--1416244426 |
| a7754718-9d3c-481b-b646-7f8bf0ce5356 | default | default |
| aa0d88b1-e51d-4219-93cc-f3c5acbc8888 | default | default |
| abefa06f-48a5-44ef-8879-047362adefe6 | default | default |
| af642196-82fb-4188-94c6-1b59a44f15e4 | default | default |
| afdb134d-50a4-4f78-bbe5-3b587f1c713d | default | default |
| b657bbbc-bad8-4bda-a4e6-f1f7f210762e | default | default |
| b8772efc-a233-4667-9e16-b9d33876f710 | default | default |
| ba728e38-8861-4361-a6ac-092c306ba862 | default | default |
| bbe44b57-6578-40ab-98ed-c1791d1b1cfe | default | default |
| bc24600c-8a95-4263-b63b-8f3d282b1321 | default | default |
| bddb796b-bd15-4cd4-b54e-9d39210f6272 | default | default |
| be1fd124-3d9b-46f5-93b3-f8d4d4aa5ba9 | default | default |
| be3e7323-428a-479e-b8e0-fba47b84c6bd | default | default |
| bf75ad09-8885-45ac-9413-fcd8fcadfe76 | default | default |
| bfe223cd-fca9-412e-bc97-797eef91b07f | default | default |
| c0cb006f-5f5d-481c-b787-6b1ab2534280 | default | default |
| c1717cb5-4a47-4b74-a776-a75cf4259f6e | default | default |
| c219470f-b991-4b6b-b2a2-f5329f3a2c69 | default | default |
| c398ebac-acf7-4639-a8cb-fd8b268e8b04 | default | default |
| c3da9a75-3dbc-4c67-a39c-198f17fd688f | default | default |
| c551eb54-7bb8-45a5-ac56-79c5d9a2d827 | default | default |
| c6d10e07-0047-494a-a9a3-501705661b7b | default | default |
| c76869ce-c414-47d1-a26d-17491064f234 | sec_grp--1620423728 | desc--1801146707 |
| ca3a36e7-5321-4c9f-a7ef-bf60b38d1912 | default | default |
| cb845995-cfd0-4a19-aea1-a9f47035518d | default | default |
| ceefd913-9b90-4227-8615-44f5fd03af0f | default | default |
| d3954b9f-a5b0-44ab-a2df-acf5b76c732b | default | default |
| d5942f3b-e28d-4f09-b906-b01497189afb | default | default |
| d61095af-2acd-4f26-aaf5-5285a020939e | sec_grp--1886678196 | desc--1730548878 |
| d6346c31-557f-45d5-b6cb-d93ef4c945c8 | default | default |
| dad312a0-b389-4c38-8f52-0e5cc17b46aa | default | default |
| dbbe5812-e5c6-416c-a354-7e35fb8ec4ba | default | default |
| dfd1086a-1454-4471-a99b-e8194413ed4a | default | default |
| e144e3a9-9a92-4aaa-94fe-29d559d7d494 | default | default |
| e32715fc-b7ce-4f1d-8471-e576a58fe6b9 | default | default |
| e3490d19-ffe4-499a-97c1-14465b8a77af | default | default |
| e364b523-8961-4a0a-837a-c6eb2a5b2cd8 | default | default |
| e3b319b0-f2ed-401a-ad17-dd9eb22c434b | sec_grp--563862523 | desc--553576982 |
| e75b7317-bff4-4523-a09d-959a8a7b3893 | default | default |
| e781e42a-c031-4c36-ac1a-1d89bc735d72 | sec_grp--1195998247 | desc--1739940716 |
| e82072dc-05d3-4495-b384-a171b5c0a9d2 | default | default |
| e962a258-e6ed-49c1-94ac-0f5a9aff73b1 | default | default |
| ea117c1a-ea60-4b2b-a224-82e7a42fe97c | default | default |
| eb62fc77-d00b-4c36-bf7f-a51b3f2fffb8 | default | default |
| ec1a3709-3aa6-49ef-92b4-f7a96136dc09 | default | default |
| ef18aa37-bc59-4ef4-8875-0455621763fb | sec_grp--549789125 | desc--2099024599 |
| efd736df-f5de-4471-a1c0-b8b8bb0ddf32 | default | default |
| f2589f8b-2116-405f-8da7-33f77c328439 | default | default |
| f61be3fa-4412-400f-8ed6-c851afe051fe | default | default |
| f72fc9cd-2614-4c5e-a2ad-53ca309caa6c | default | default |
| f8f31b1e-46c0-4661-b926-7933dbd6008f | default | default |
+--------------------------------------+---------------------+------------------+
# nova secgroup-list --all-tenant 1
+--------------------------------------+---------+-------------+----------------------------------+
| Id | Name | Description | Tenant_ID |
+--------------------------------------+---------+-------------+----------------------------------+
| 411f79ea-754a-4ce2-a678-35f20f5de532 | default | default | fd95b0c0d7174664b62f2fc635fe5ec3 |
+--------------------------------------+---------+-------------+----------------------------------+

Xurong Yang (idopra)
Changed in nova:
assignee: nobody → Xurong Yang (idopra)
Tracy Jones (tjones-i)
tags: added: network
Aaron Rosen (arosen)
Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: Confirmed → In Progress
Sean Dague (sdague)
Changed in nova:
status: In Progress → Confirmed
summary: - nova --debug secgroup-list --all-tenant 1 does not show all tenant
+ nova --debug secgroup-list --all-tenant 1 does not show all tenant when
+ Neutron is used
Changed in nova:
assignee: Xurong Yang (idopra) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/81237
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Changed in nova:
assignee: nobody → Narendra Chanchali (narench809)
Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Removing "In Progress" status and assignee as change is abandoned.

Changed in nova:
assignee: Narendra Chanchali (narench809) → nobody
status: In Progress → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
assignee: nobody → Jeffrey Zhang (jeffrey4l)
status: Confirmed → In Progress
Matt Riedemann (mriedem)
Changed in nova:
importance: Medium → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/187657
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=5da4a317086e6c9d6620d1bd686bc53923006904
Submitter: Jenkins
Branch: master

commit 5da4a317086e6c9d6620d1bd686bc53923006904
Author: Jeffrey Zhang <email address hidden>
Date: Thu Jun 4 23:44:18 2015 +0800

    Support all_tenants search_opts for neutron

    Add support for the all_tenants search option when listing
    security group with neutron as the backend

    The neutron doesn't have `all-tenants` concept. All the security
    groups will be returned if the project/tenant id is not passed.

    Change-Id: I465c946a006aca21b298f8226f55725a8c36c1f8
    Co-authored-by: Xurong Yang <email address hidden>
    closes-bug: #1284202

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/216716

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/217388

Revision history for this message
Matt Riedemann (mriedem) wrote :

Bumped to medium since we need this fixed on stable so that we can enable a test again in tempest for this:

https://review.openstack.org/#/c/216435/

Changed in nova:
importance: Low → Medium
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-3 → 12.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (stable/juno)

Change abandoned by Matt Riedemann (<email address hidden>) on branch: stable/juno
Review: https://review.openstack.org/217388
Reason: We're about to EOL juno so I don't care about this anymore.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/kilo)

Reviewed: https://review.openstack.org/216716
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=69a4ca0a83f1fb0a457448ba68a81d7cc3429cc4
Submitter: Jenkins
Branch: stable/kilo

commit 69a4ca0a83f1fb0a457448ba68a81d7cc3429cc4
Author: Jeffrey Zhang <email address hidden>
Date: Thu Jun 4 23:44:18 2015 +0800

    Support all_tenants search_opts for neutron

    Add support for the all_tenants search option when listing
    security group with neutron as the backend

    The neutron doesn't have `all-tenants` concept. All the security
    groups will be returned if the project/tenant id is not passed.

    Change-Id: I465c946a006aca21b298f8226f55725a8c36c1f8
    Co-authored-by: Xurong Yang <email address hidden>
    closes-bug: #1284202
    (cherry picked from commit 5da4a317086e6c9d6620d1bd686bc53923006904)

tags: added: in-stable-kilo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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