← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1391500] Re: neutron tests getting bad IPs when overlapping_ips=False

 

Sergey, agreed, converted existing bug.

** Summary changed:

- recent gw64 test breaks overlapping_ips=False
+ neutron tests getting bad IPs when overlapping_ips=False

** Project changed: neutron => tempest

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1391500

Title:
  neutron tests getting bad IPs when overlapping_ips=False

Status in Tempest:
  Incomplete

Bug description:
  This change:

  commit 18cf59700bb637403f27fa9a5fc0b8e24b91673f
  Author: Sergey Shnaidman <sshnaidm@xxxxxxxxx>
  Date:   Tue Sep 2 22:05:00 2014 +0400

      Create subnet without gateway and explicit IP ver
      
      Now it's impossible to create subnet without gateway in network
      tests. This patch allows you to set gateway explicitly to None.
      Backward compatibility is supported: by default it creates
      subnet with default gateway as before. Also it adds possibility
      to create subnet with specific IP version when you need to create
      two subnets in one tenant of different IP version ("dual-stack").
      Fixed attributes test for new requirements and added 2 anothers.
      
      Change-Id: I7aca5e07be436f20cba90339785b46182d97fead

  Adds this test:

  test_create_list_subnet_with_no_gw64_one_network

  Which breaks if overlapping IPs is disabled:

  ==============================
   Failed 1 tests - output below:
   ==============================
   
   tempest.api.network.test_networks.NetworksIpV6TestJSON.test_create_list_subnet_with_no_gw64_one_network[gate,smoke]
   -------------------------------------------------------------------------------------------------------------------
   
   Captured traceback:
   ~~~~~~~~~~~~~~~~~~~
       Traceback (most recent call last):
         File "tempest/api/network/test_networks.py", line 515, in test_create_list_subnet_with_no_gw64_one_network
           gateway=ipv6_gateway)
         File "tempest/api/network/base.py", line 183, in create_subnet
           **kwargs)
         File "tempest/services/network/network_client_base.py", line 151, in _create
           resp, body = self.post(uri, post_data)
         File "tempest/services/network/network_client_base.py", line 74, in post
           return self.rest_client.post(uri, body, headers)
         File "tempest/common/rest_client.py", line 234, in post
           return self.request('POST', url, extra_headers, headers, body)
         File "tempest/common/rest_client.py", line 454, in request
           resp, resp_body)
         File "tempest/common/rest_client.py", line 503, in _error_checker
           raise exceptions.BadRequest(resp_body)
       BadRequest: Bad request
       Details: {u'message': u'Invalid input for operation: Gateway is not valid on subnet.', u'type': u'InvalidInput', u'detail': u''}
       Traceback (most recent call last):
       _StringException: Empty attachments:
         stderr
         stdout
       
       pythonlogging:'': {{{
       2014-11-11 11:51:49,765 21322 DEBUG    [tempest.common.rest_client] Request (NetworksIpV6TestJSON:test_create_list_subnet_with_no_gw64_one_network): 201 POST http://127.0.0.1:9696/v2.0/networks 0.046s
           Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
               Body: {"network": {"name": "network--321892543"}}
           Response - Headers: {'status': '201', 'content-length': '240', 'connection': 'close', 'date': 'Tue, 11 Nov 2014 11:51:49 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-92e358d2-fbe5-4980-a7c6-4418114d779c'}
               Body: {"network": {"status": "ACTIVE", "subnets": [], "name": "network--321892543", "router:external": false, "tenant_id": "4cdbefa12fb341cb94a96c9f0940902a", "admin_state_up": true, "shared": false, "id": "c7c5a74b-68ca-4dab-b23d-d6c190f411db"}}
       2014-11-11 11:51:49,872 21322 DEBUG    [tempest.common.rest_client] Request (NetworksIpV6TestJSON:test_create_list_subnet_with_no_gw64_one_network): 400 POST http://127.0.0.1:9696/v2.0/subnets 0.105s
           Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
               Body: {"subnet": {"ip_version": 6, "network_id": "c7c5a74b-68ca-4dab-b23d-d6c190f411db", "cidr": "2003::/64", "gateway_ip": "2003::1"}}
           Response - Headers: {'status': '400', 'content-length': '217', 'connection': 'close', 'date': 'Tue, 11 Nov 2014 11:51:49 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-6c647816-2c07-43f3-8e74-ac989da02996'}
               Body: {"NeutronError": {"message": "Invalid input for operation: Requested subnet with cidr: 2003::/64 for network: c7c5a74b-68ca-4dab-b23d-d6c190f411db overlaps with another subnet.", "type": "InvalidInput", "detail": ""}}
       2014-11-11 11:51:49,929 21322 DEBUG    [tempest.common.rest_client] Request (NetworksIpV6TestJSON:test_create_list_subnet_with_no_gw64_one_network): 400 POST http://127.0.0.1:9696/v2.0/subnets 0.056s
           Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
               Body: {"subnet": {"ip_version": 6, "network_id": "c7c5a74b-68ca-4dab-b23d-d6c190f411db", "cidr": "2003:0:0:1::/64", "gateway_ip": "2003::1"}}
           Response - Headers: {'status': '400', 'content-length': '131', 'connection': 'close', 'date': 'Tue, 11 Nov 2014 11:51:49 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-9b4b5a67-d48b-439b-8f28-b9dba9067043'}
               Body: {"NeutronError": {"message": "Invalid input for operation: Gateway is not valid on subnet.", "type": "InvalidInput", "detail": ""}}
       }}}
       
       Traceback (most recent call last):
         File "tempest/api/network/test_networks.py", line 515, in test_create_list_subnet_with_no_gw64_one_network
           gateway=ipv6_gateway)
         File "tempest/api/network/base.py", line 183, in create_subnet
           **kwargs)
         File "tempest/services/network/network_client_base.py", line 151, in _create
           resp, body = self.post(uri, post_data)
         File "tempest/services/network/network_client_base.py", line 74, in post
           return self.rest_client.post(uri, body, headers)
         File "tempest/common/rest_client.py", line 234, in post
           return self.request('POST', url, extra_headers, headers, body)
         File "tempest/common/rest_client.py", line 454, in request
           resp, resp_body)
         File "tempest/common/rest_client.py", line 503, in _error_checker
           raise exceptions.BadRequest(resp_body)
       BadRequest: Bad request
       Details: {u'message': u'Invalid input for operation: Gateway is not valid on subnet.', u'type': u'InvalidInput', u'detail': u''}
       
       Traceback (most recent call last):
       _StringException: Empty attachments:
         stderr
         stdout
       
  For the full configuration in use, see here (though I've temporarily turned overlapping IPs back on):

  https://github.com/a10networks/neutron-thirdparty-ci

  And for a full failed job, see here:

  http://ci.a10cloud.com/logs/a10-neutron-tempest/131150/11/4623/console_log.txt.gz
  http://ci.a10cloud.com/logs/a10-neutron-tempest/131150/11/4623/

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


References