Tempest-RHOSP10: neutron net-show --shared False command not listing networks with flag 'shared false'

Bug #1685392 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
Medium
Sahil Sabharwal
Trunk
Fix Committed
Medium
Sahil Sabharwal

Bug Description

command "neutron net-list --shared False" returning shared false networks, but with flag 'True' command works

[root@overcloud-controller-0 heat-admin]# neutron net-list --shared False

[root@overcloud-controller-0 heat-admin]#

[root@overcloud-controller-0 heat-admin]# neutron net-list --shared True
+--------------------------------------+---------------------------+----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+---------------------------+----------------------------------------------------+
| 2d45e012-1e62-4d65-8015-2ba34c2495cf | sharednetwork--153105704 | d3708b5d-e4f7-4d5f-b544-2e6e9a8822a9 10.100.0.0/28 |
| ada5134e-ded3-4ce4-9ce5-161aea0aab99 | sharednetwork--2126608284 | 0e371291-230d-42b2-8a6f-cd702d2fa767 10.100.0.0/28 |
| 0a41389b-43f9-4d0e-8c92-6b1b7b177cc2 | sharednetwork--353013446 | cb1e325c-1223-4a1a-aa18-0fe21bf63e1e 10.100.0.0/28 |
| 0b0f6294-0820-41c7-9f8e-a5b1693f5bfc | ext-vn | 178ebaf8-c814-4848-9aad-871d37fa3673 45.6.6.0/24 |
+--------------------------------------+---------------------------+----------------------------------------------------+

[root@overcloud-controller-0 heat-admin]# neutron net-show test1
Multiple network matches found for name 'test1', use an ID to be more specific.
[root@overcloud-controller-0 heat-admin]# neutron net-show 49e37c53-1d36-46e7-8ad2-9b992e84f59c
+-------------------------+----------------------------------------------+
| Field | Value |
+-------------------------+----------------------------------------------+
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | tempest-NetworksSearchCriteriaTest-618786076 |
| | test1 |
| contrail:instance_count | 0 |
| id | 49e37c53-1d36-46e7-8ad2-9b992e84f59c |
| name | test1 |
| port_security_enabled | True |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 43ce502da2504f8bb638091f3a930395 |
+-------------------------+----------------------------------------------+

[root@overcloud-controller-0 heat-admin]# curl -X GET -H "X-Auth-Token: a085f28c384443259543383dec5c60c3" http://10.87.67.18:9696/v2.0/networks?shared=False |
python -m json.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 16 100 16 0 0 41 0 --:--:-- --:--:-- --:--:-- 41
{
    "networks": [] =========> empty with False
}
[root@overcloud-controller-0 heat-admin]#
[root@overcloud-controller-0 heat-admin]# curl -X GET -H "X-Auth-Token: a085f28c384443259543383dec5c60c3" http://10.87.67.18:9696/v2.0/networks?shared=True | p
ython -m json.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 2314 100 2314 0 0 4267 0 --:--:-- --:--:-- --:--:-- 4277
{
    "networks": [
        {
            "admin_state_up": true,
            "contrail:fq_name": [
                "default-domain",
                "tempest-AllowedAddressPairSharedNetworkTest-508768151",
                "sharednetwork--153105704"
            ],

shajuvk (shajuvk)
summary: Tempest-RHOSP10: neutron net-show --shared False command not listing
- networks with Shared:False
+ networks with flag 'shared false'
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/30756
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/30770
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/30770
Committed: http://github.com/Juniper/contrail-controller/commit/ba889e375b2f1003ff4508a737c61edf4b191f46
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit ba889e375b2f1003ff4508a737c61edf4b191f46
Author: Sahil <email address hidden>
Date: Tue Apr 25 19:32:33 2017 -0700

[Config]: Fix neutron list when filters = False

Fixed vnc_openstack to list networks when
filters (shared, router:external) are set to False.

Change-Id: Ia82271dd37ef9ae94baf08af8ac699591b87afa9
Closes-Bug: 1685392

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/30756
Committed: http://github.com/Juniper/contrail-controller/commit/4f5400b860d0df6845825a1729192c2962a542ca
Submitter: Zuul (<email address hidden>)
Branch: master

commit 4f5400b860d0df6845825a1729192c2962a542ca
Author: Sahil <email address hidden>
Date: Tue Apr 25 19:32:33 2017 -0700

[Config]: Fix neutron list when filters = False

Fixed vnc_openstack to list networks when
filters (shared, router:external) are set to False.

Change-Id: Ia82271dd37ef9ae94baf08af8ac699591b87afa9
Closes-Bug: 1685392

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.