Public bug reported:

OpenStack : Liberty
OpenContrail:3.0.3

I use this cmd to want to filter the subnet I want ,but it seems just
work with the condition of network_id

 curl -i -k -v -H  "X-Auth-Token:1c3dd3b51c6c48a4830cbdbb2e6b3116"
http://189.43.133.201:9696/v2.0/subnets?network_id=6abaaf14-d0b5-4f4a-a436-7b728ab66c69\&cidr=2001:db2::/48\&enable_dhcp=true\&gateway_ip=null

The response is

{"subnets": [{"name": "", "enable_dhcp": true, "network_id":
"6abaaf14-d0b5-4f4a-a436-7b728ab66c69", "tenant_id":
"c5fadfacec6148eb81a6fd1585763dde", "dns_nameservers": [],
"ipv6_ra_mode": null, "allocation_pools": [{"start": "182.16.0.10",
"end": "182.16.0.100"}], "gateway_ip": "182.16.0.254",
"ipv6_address_mode": null, "ip_version": 4, "host_routes": [], "cidr":
"182.16.0.0/16", "id": "74bdee0a-1e09-4d74-97ac-7d48faada404"}, {"name":
"test", "enable_dhcp": true, "network_id":
"6abaaf14-d0b5-4f4a-a436-7b728ab66c69", "tenant_id":
"c5fadfacec6148eb81a6fd1585763dde", "dns_nameservers": [],
"ipv6_ra_mode": null, "allocation_pools": [{"start": "2001:db2::2",
"end": "2001:db2:0:ffff:ffff:ffff:ffff:fffe"}], "gateway_ip":
"2001:db2::1", "ipv6_address_mode": null, "ip_version": 6,
"host_routes": [], "cidr": "2001:db2::/48", "id":
"5840f97e-8574-4841-bca2-2ed492c0b124"}]}

Just the condition of network_id seems work and reported me two subnets
of the network.

The log on neutron is 
2017-04-24 17:30:57.482 650 DEBUG keystoneclient.session [-] REQ: curl -g -i -X 
GET http://189.43.133.172:35357/v3/auth/tokens -H "X-Subject-Token: 
{SHA1}ac10054fc4ef440481adecddfc2556ac163cd6a0" -H "User-Agent: 
python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: 
{SHA1}7782e1f4c7813c70198660e1b26cff3092dd3f5e" _http_log_request 
/usr/lib/python2.7/dist-packages/keystoneclient/session.py:198
2017-04-24 17:30:57.549 650 DEBUG keystoneclient.session [-] RESP: [200] 
Content-Length: 4236 X-Subject-Token: 
{SHA1}ac10054fc4ef440481adecddfc2556ac163cd6a0 Vary: X-Auth-Token Keep-Alive: 
timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: 
Mon, 24 Apr 2017 17:30:57 GMT x-openstack-request-id: 
req-7d41df19-f0ce-464d-b349-0da7e480d1a7 Content-Type: application/json 
X-Distribution: Ubuntu
RESP BODY: {"token": {"methods": ["password", "token"], "roles": [{"id": 
"9fe2ff9ee4384b1894a90878d3e92bab", "name": "_member_"}, {"id": 
"5cd4cb4a977f4c348621996e8ba7daa0", "name": "admin"}, {"id": 
"25acf9ff434f44d2a1a320cb1918d5c2", "name": "Member"}], "expires_at": 
"2017-04-24T18:28:32.000000Z", "project": {"domain": {"id": "default", "name": 
"Default"}, "id": "c5fadfacec6148eb81a6fd1585763dde", "name": "CloudEdge"}, 
"catalog": "<removed>", "extras": {}, "user": {"domain": {"id": "default", 
"name": "Default"}, "id": "7496e29fc1c141a081301bd9484f59c3", "name": 
"CloudEdge"}, "audit_ids": ["GTVlubKPR7qQYbZqkYOnjg"], "issued_at": 
"2017-04-24T17:28:32.963663"}}
 _http_log_response 
/usr/lib/python2.7/dist-packages/keystoneclient/session.py:215
2017-04-24 17:30:57.678 650 DEBUG 
neutron_plugin_contrail.plugins.opencontrail.contrail_plugin 
[req-7104ac89-1938-4856-9916-0a4999ab96b1 7496e29fc1c141a081301bd9484f59c3 
c5fadfacec6148eb81a6fd1585763dde - - -] get_subnet(): filters: {u'network_id': 
[u'6abaaf14-d0b5-4f4a-a436-7b728ab66c69'], u'cidr': [u'2001:db2::/48'], 
u'gateway_ip': [u'null'], u'enable_dhcp': [True]} data: [{u'name': u'', 
u'enable_dhcp': True, u'network_id': u'6abaaf14-d0b5-4f4a-a436-7b728ab66c69', 
u'tenant_id': u'c5fadfacec6148eb81a6fd1585763dde', u'dns_nameservers': [], 
u'gateway_ip': u'182.16.0.254', u'ipv6_ra_mode': None, u'allocation_pools': 
[{u'start': u'182.16.0.10', u'end': u'182.16.0.100'}], u'host_routes': [], 
u'shared': False, u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': 
u'182.16.0.0/16', u'id': u'74bdee0a-1e09-4d74-97ac-7d48faada404'}, {u'name': 
u'test', u'enable_dhcp': True, u'network_id': 
u'6abaaf14-d0b5-4f4a-a436-7b728ab66c69', u'tenant_id': 
u'c5fadfacec6148eb81a6fd1585763dde', u'dns_nameser
 vers': [], u'gateway_ip': u'2001:db2::1', u'ipv6_ra_mode': None, 
u'allocation_pools': [{u'start': u'2001:db2::2', u'end': 
u'2001:db2:0:ffff:ffff:ffff:ffff:fffe'}], u'host_routes': [], u'shared': False, 
u'ip_version': 6, u'ipv6_address_mode': None, u'cidr': u'2001:db2::/48', u'id': 
u'5840f97e-8574-4841-bca2-2ed492c0b124'}] _list_resource 
/usr/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin.py:331
2017-04-24 17:30:57.679 650 INFO neutron.wsgi 
[req-7104ac89-1938-4856-9916-0a4999ab96b1 7496e29fc1c141a081301bd9484f59c3 
c5fadfacec6148eb81a6fd1585763dde - - -] 189.43.133.201 - - [24/Apr/2017 
17:30:57] "GET 
/v2.0/subnets?network_id=6abaaf14-d0b5-4f4a-a436-7b728ab66c69&cidr=2001:db2::/48&enable_dhcp=true&gateway_ip=null
 HTTP/1.1" 200 1065 0.198209

I can see the condition has send by neutron , but it doesn't work

** Affects: opencontrail
     Importance: Undecided
         Status: New

** Project changed: horizon => opencontrail

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1685764

Title:
  neutron filters of OpenContrail not work

Status in OpenContrail:
  New

Bug description:
  OpenStack : Liberty
  OpenContrail:3.0.3

  I use this cmd to want to filter the subnet I want ,but it seems just
  work with the condition of network_id

   curl -i -k -v -H  "X-Auth-Token:1c3dd3b51c6c48a4830cbdbb2e6b3116"
  
http://189.43.133.201:9696/v2.0/subnets?network_id=6abaaf14-d0b5-4f4a-a436-7b728ab66c69\&cidr=2001:db2::/48\&enable_dhcp=true\&gateway_ip=null

  The response is

  {"subnets": [{"name": "", "enable_dhcp": true, "network_id":
  "6abaaf14-d0b5-4f4a-a436-7b728ab66c69", "tenant_id":
  "c5fadfacec6148eb81a6fd1585763dde", "dns_nameservers": [],
  "ipv6_ra_mode": null, "allocation_pools": [{"start": "182.16.0.10",
  "end": "182.16.0.100"}], "gateway_ip": "182.16.0.254",
  "ipv6_address_mode": null, "ip_version": 4, "host_routes": [], "cidr":
  "182.16.0.0/16", "id": "74bdee0a-1e09-4d74-97ac-7d48faada404"},
  {"name": "test", "enable_dhcp": true, "network_id":
  "6abaaf14-d0b5-4f4a-a436-7b728ab66c69", "tenant_id":
  "c5fadfacec6148eb81a6fd1585763dde", "dns_nameservers": [],
  "ipv6_ra_mode": null, "allocation_pools": [{"start": "2001:db2::2",
  "end": "2001:db2:0:ffff:ffff:ffff:ffff:fffe"}], "gateway_ip":
  "2001:db2::1", "ipv6_address_mode": null, "ip_version": 6,
  "host_routes": [], "cidr": "2001:db2::/48", "id":
  "5840f97e-8574-4841-bca2-2ed492c0b124"}]}

  Just the condition of network_id seems work and reported me two
  subnets of the network.

  The log on neutron is 
  2017-04-24 17:30:57.482 650 DEBUG keystoneclient.session [-] REQ: curl -g -i 
-X GET http://189.43.133.172:35357/v3/auth/tokens -H "X-Subject-Token: 
{SHA1}ac10054fc4ef440481adecddfc2556ac163cd6a0" -H "User-Agent: 
python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: 
{SHA1}7782e1f4c7813c70198660e1b26cff3092dd3f5e" _http_log_request 
/usr/lib/python2.7/dist-packages/keystoneclient/session.py:198
  2017-04-24 17:30:57.549 650 DEBUG keystoneclient.session [-] RESP: [200] 
Content-Length: 4236 X-Subject-Token: 
{SHA1}ac10054fc4ef440481adecddfc2556ac163cd6a0 Vary: X-Auth-Token Keep-Alive: 
timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: 
Mon, 24 Apr 2017 17:30:57 GMT x-openstack-request-id: 
req-7d41df19-f0ce-464d-b349-0da7e480d1a7 Content-Type: application/json 
X-Distribution: Ubuntu
  RESP BODY: {"token": {"methods": ["password", "token"], "roles": [{"id": 
"9fe2ff9ee4384b1894a90878d3e92bab", "name": "_member_"}, {"id": 
"5cd4cb4a977f4c348621996e8ba7daa0", "name": "admin"}, {"id": 
"25acf9ff434f44d2a1a320cb1918d5c2", "name": "Member"}], "expires_at": 
"2017-04-24T18:28:32.000000Z", "project": {"domain": {"id": "default", "name": 
"Default"}, "id": "c5fadfacec6148eb81a6fd1585763dde", "name": "CloudEdge"}, 
"catalog": "<removed>", "extras": {}, "user": {"domain": {"id": "default", 
"name": "Default"}, "id": "7496e29fc1c141a081301bd9484f59c3", "name": 
"CloudEdge"}, "audit_ids": ["GTVlubKPR7qQYbZqkYOnjg"], "issued_at": 
"2017-04-24T17:28:32.963663"}}
   _http_log_response 
/usr/lib/python2.7/dist-packages/keystoneclient/session.py:215
  2017-04-24 17:30:57.678 650 DEBUG 
neutron_plugin_contrail.plugins.opencontrail.contrail_plugin 
[req-7104ac89-1938-4856-9916-0a4999ab96b1 7496e29fc1c141a081301bd9484f59c3 
c5fadfacec6148eb81a6fd1585763dde - - -] get_subnet(): filters: {u'network_id': 
[u'6abaaf14-d0b5-4f4a-a436-7b728ab66c69'], u'cidr': [u'2001:db2::/48'], 
u'gateway_ip': [u'null'], u'enable_dhcp': [True]} data: [{u'name': u'', 
u'enable_dhcp': True, u'network_id': u'6abaaf14-d0b5-4f4a-a436-7b728ab66c69', 
u'tenant_id': u'c5fadfacec6148eb81a6fd1585763dde', u'dns_nameservers': [], 
u'gateway_ip': u'182.16.0.254', u'ipv6_ra_mode': None, u'allocation_pools': 
[{u'start': u'182.16.0.10', u'end': u'182.16.0.100'}], u'host_routes': [], 
u'shared': False, u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': 
u'182.16.0.0/16', u'id': u'74bdee0a-1e09-4d74-97ac-7d48faada404'}, {u'name': 
u'test', u'enable_dhcp': True, u'network_id': 
u'6abaaf14-d0b5-4f4a-a436-7b728ab66c69', u'tenant_id': 
u'c5fadfacec6148eb81a6fd1585763dde', u'dns_names
 ervers': [], u'gateway_ip': u'2001:db2::1', u'ipv6_ra_mode': None, 
u'allocation_pools': [{u'start': u'2001:db2::2', u'end': 
u'2001:db2:0:ffff:ffff:ffff:ffff:fffe'}], u'host_routes': [], u'shared': False, 
u'ip_version': 6, u'ipv6_address_mode': None, u'cidr': u'2001:db2::/48', u'id': 
u'5840f97e-8574-4841-bca2-2ed492c0b124'}] _list_resource 
/usr/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin.py:331
  2017-04-24 17:30:57.679 650 INFO neutron.wsgi 
[req-7104ac89-1938-4856-9916-0a4999ab96b1 7496e29fc1c141a081301bd9484f59c3 
c5fadfacec6148eb81a6fd1585763dde - - -] 189.43.133.201 - - [24/Apr/2017 
17:30:57] "GET 
/v2.0/subnets?network_id=6abaaf14-d0b5-4f4a-a436-7b728ab66c69&cidr=2001:db2::/48&enable_dhcp=true&gateway_ip=null
 HTTP/1.1" 200 1065 0.198209

  I can see the condition has send by neutron , but it doesn't work

To manage notifications about this bug go to:
https://bugs.launchpad.net/opencontrail/+bug/1685764/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to