Uploaded image for project: 'neutron'
  1. neutron
  2. NEUTRON-23

Neutron Tempest Test Failure: tempest.api.network.test_routers_negative

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 2548

    Description

      The OpenStack Tempest tests for tempest.api.network.test_routers_negative fail with OpenDaylight as the ML2 driver. The tempest logs are below:

      [vagrant@localhost tempest]$ testr failing
      ======================================================================
      FAIL: tempest.api.network.test_routers_negative.RoutersNegativeIpV6Test.test_add_router_interfaces_on_overlapping_subnets_returns_400[gate,negative,smoke]
      tags: worker-0
      ----------------------------------------------------------------------
      pythonlogging:'': {{{
      2014-12-31 16:04:15,225 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/networks 0.047s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"network": {"name": "router-network01--644773676"}}
      Response - Headers:

      {'status': '201', 'content-length': '249', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-19460977-a3ee-4bd2-84c0-6110c9b5507a'}

      Body: {"network": {"status": "ACTIVE", "subnets": [], "name": "router-network01--644773676", "router:external": false, "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "admin_state_up": true, "shared": false, "id": "b966c013-4423-4981-be9e-385a0a89a297"}}
      2014-12-31 16:04:15,275 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/networks 0.048s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"network": {"name": "router-network02--920362690"}}
      Response - Headers:

      {'status': '201', 'content-length': '249', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-0b8dfeff-d111-45e3-aa13-203bb9d9cf5b'}

      Body: {"network": {"status": "ACTIVE", "subnets": [], "name": "router-network02--920362690", "router:external": false, "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "admin_state_up": true, "shared": false, "id": "d28a37b4-dbe1-4eff-adb0-6304719eb1a3"}}
      2014-12-31 16:04:15,374 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/subnets 0.098s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"subnet": {"ip_version": 6, "network_id": "b966c013-4423-4981-be9e-385a0a89a297", "cidr": "2003::/64", "gateway_ip": "2003::1"}}
      Response - Headers:

      {'status': '201', 'content-length': '428', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-426c04be-5dfb-463e-94cc-f80b8f6e6004'}

      Body: {"subnet": {"name": "", "enable_dhcp": true, "network_id": "b966c013-4423-4981-be9e-385a0a89a297", "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "dns_nameservers": [], "gateway_ip": "2003::1", "ipv6_ra_mode": null, "allocation_pools": [

      {"start": "2003::2", "end": "2003::ffff:ffff:ffff:fffe"}

      ], "host_routes": [], "ip_version": 6, "ipv6_address_mode": null, "cidr": "2003::/64", "id": "0494899d-8b0c-4a30-85de-89b4f77066b8"}}
      2014-12-31 16:04:15,478 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/subnets 0.102s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"subnet": {"ip_version": 6, "network_id": "d28a37b4-dbe1-4eff-adb0-6304719eb1a3", "cidr": "2003::/64", "gateway_ip": "2003::1"}}
      Response - Headers:

      {'status': '201', 'content-length': '428', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-d2614154-c598-45fa-8fe5-3e1a24200453'}

      Body: {"subnet": {"name": "", "enable_dhcp": true, "network_id": "d28a37b4-dbe1-4eff-adb0-6304719eb1a3", "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "dns_nameservers": [], "gateway_ip": "2003::1", "ipv6_ra_mode": null, "allocation_pools": [

      {"start": "2003::2", "end": "2003::ffff:ffff:ffff:fffe"}

      ], "host_routes": [], "ip_version": 6, "ipv6_address_mode": null, "cidr": "2003::/64", "id": "bf2102bd-af6c-4edd-9033-a42ab3eddc5e"}}
      2014-12-31 16:04:15,636 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 409 PUT http://192.168.56.10:9696/v2.0/routers/33939c81-aada-46cf-8ef2-e96fd60f39c2/add_router_interface 0.157s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body:

      {"subnet_id": "0494899d-8b0c-4a30-85de-89b4f77066b8"}

      Response - Headers:

      {'status': '409', 'content-length': '205', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-a6b0509d-0bf8-44f5-b26b-67e31e5bbdd5'}

      Body: {"NeutronError": {"message": "Port 9739b112-0b95-4cea-9e37-202e2c78b914 has owner network:router_interface and therefore cannot be deleted directly via the port API.", "type": "L3PortInUse", "detail": ""}}
      }}}

      Traceback (most recent call last):
      File "tempest/api/network/test_routers_negative.py", line 72, in test_add_router_interfaces_on_overlapping_subnets_returns_400
      subnet01['id'])
      File "tempest/api/network/base_routers.py", line 40, in _add_router_interface_with_subnet_id
      router_id, subnet_id)
      File "tempest/services/network/json/network_client.py", line 358, in add_router_interface_with_subnet_id
      resp, body = self.put(uri, update_body)
      File "tempest/common/rest_client.py", line 248, in put
      return self.request('PUT', url, extra_headers, headers, body)
      File "tempest/common/rest_client.py", line 450, in request
      resp, resp_body)
      File "tempest/common/rest_client.py", line 503, in _error_checker
      raise exceptions.Conflict(resp_body)
      Conflict: An object with that identifier already exists
      Details:

      {u'message': u'Port 9739b112-0b95-4cea-9e37-202e2c78b914 has owner network:router_interface and therefore cannot be deleted directly via the port API.', u'type': u'L3PortInUse', u'detail': u''}

      Traceback (most recent call last):
      _StringException: Empty attachments:
      stderr
      stdout

      pythonlogging:'': {{{
      2014-12-31 16:04:15,225 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/networks 0.047s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"network": {"name": "router-network01--644773676"}}
      Response - Headers:

      {'status': '201', 'content-length': '249', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-19460977-a3ee-4bd2-84c0-6110c9b5507a'}

      Body: {"network": {"status": "ACTIVE", "subnets": [], "name": "router-network01--644773676", "router:external": false, "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "admin_state_up": true, "shared": false, "id": "b966c013-4423-4981-be9e-385a0a89a297"}}
      2014-12-31 16:04:15,275 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/networks 0.048s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"network": {"name": "router-network02--920362690"}}
      Response - Headers:

      {'status': '201', 'content-length': '249', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-0b8dfeff-d111-45e3-aa13-203bb9d9cf5b'}

      Body: {"network": {"status": "ACTIVE", "subnets": [], "name": "router-network02--920362690", "router:external": false, "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "admin_state_up": true, "shared": false, "id": "d28a37b4-dbe1-4eff-adb0-6304719eb1a3"}}
      2014-12-31 16:04:15,374 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/subnets 0.098s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"subnet": {"ip_version": 6, "network_id": "b966c013-4423-4981-be9e-385a0a89a297", "cidr": "2003::/64", "gateway_ip": "2003::1"}}
      Response - Headers:

      {'status': '201', 'content-length': '428', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-426c04be-5dfb-463e-94cc-f80b8f6e6004'}

      Body: {"subnet": {"name": "", "enable_dhcp": true, "network_id": "b966c013-4423-4981-be9e-385a0a89a297", "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "dns_nameservers": [], "gateway_ip": "2003::1", "ipv6_ra_mode": null, "allocation_pools": [

      {"start": "2003::2", "end": "2003::ffff:ffff:ffff:fffe"}

      ], "host_routes": [], "ip_version": 6, "ipv6_address_mode": null, "cidr": "2003::/64", "id": "0494899d-8b0c-4a30-85de-89b4f77066b8"}}
      2014-12-31 16:04:15,478 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/subnets 0.102s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"subnet": {"ip_version": 6, "network_id": "d28a37b4-dbe1-4eff-adb0-6304719eb1a3", "cidr": "2003::/64", "gateway_ip": "2003::1"}}
      Response - Headers:

      {'status': '201', 'content-length': '428', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-d2614154-c598-45fa-8fe5-3e1a24200453'}

      Body: {"subnet": {"name": "", "enable_dhcp": true, "network_id": "d28a37b4-dbe1-4eff-adb0-6304719eb1a3", "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "dns_nameservers": [], "gateway_ip": "2003::1", "ipv6_ra_mode": null, "allocation_pools": [

      {"start": "2003::2", "end": "2003::ffff:ffff:ffff:fffe"}

      ], "host_routes": [], "ip_version": 6, "ipv6_address_mode": null, "cidr": "2003::/64", "id": "bf2102bd-af6c-4edd-9033-a42ab3eddc5e"}}
      2014-12-31 16:04:15,636 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 409 PUT http://192.168.56.10:9696/v2.0/routers/33939c81-aada-46cf-8ef2-e96fd60f39c2/add_router_interface 0.157s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body:

      {"subnet_id": "0494899d-8b0c-4a30-85de-89b4f77066b8"}

      Response - Headers:

      {'status': '409', 'content-length': '205', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-a6b0509d-0bf8-44f5-b26b-67e31e5bbdd5'}

      Body: {"NeutronError": {"message": "Port 9739b112-0b95-4cea-9e37-202e2c78b914 has owner network:router_interface and therefore cannot be deleted directly via the port API.", "type": "L3PortInUse", "detail": ""}}
      }}}

      Traceback (most recent call last):
      File "tempest/api/network/test_routers_negative.py", line 72, in test_add_router_interfaces_on_overlapping_subnets_returns_400
      subnet01['id'])
      File "tempest/api/network/base_routers.py", line 40, in _add_router_interface_with_subnet_id
      router_id, subnet_id)
      File "tempest/services/network/json/network_client.py", line 358, in add_router_interface_with_subnet_id
      resp, body = self.put(uri, update_body)
      File "tempest/common/rest_client.py", line 248, in put
      return self.request('PUT', url, extra_headers, headers, body)
      File "tempest/common/rest_client.py", line 450, in request
      resp, resp_body)
      File "tempest/common/rest_client.py", line 503, in _error_checker
      raise exceptions.Conflict(resp_body)
      Conflict: An object with that identifier already exists
      Details:

      {u'message': u'Port 9739b112-0b95-4cea-9e37-202e2c78b914 has owner network:router_interface and therefore cannot be deleted directly via the port API.', u'type': u'L3PortInUse', u'detail': u''}

      Traceback (most recent call last):
      _StringException: Empty attachments:
      stderr
      stdout

      pythonlogging:'': {{{
      2014-12-31 16:04:15,225 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/networks 0.047s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"network": {"name": "router-network01--644773676"}}
      Response - Headers:

      {'status': '201', 'content-length': '249', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-19460977-a3ee-4bd2-84c0-6110c9b5507a'}

      Body: {"network": {"status": "ACTIVE", "subnets": [], "name": "router-network01--644773676", "router:external": false, "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "admin_state_up": true, "shared": false, "id": "b966c013-4423-4981-be9e-385a0a89a297"}}
      2014-12-31 16:04:15,275 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/networks 0.048s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"network": {"name": "router-network02--920362690"}}
      Response - Headers:

      {'status': '201', 'content-length': '249', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-0b8dfeff-d111-45e3-aa13-203bb9d9cf5b'}

      Body: {"network": {"status": "ACTIVE", "subnets": [], "name": "router-network02--920362690", "router:external": false, "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "admin_state_up": true, "shared": false, "id": "d28a37b4-dbe1-4eff-adb0-6304719eb1a3"}}
      2014-12-31 16:04:15,374 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/subnets 0.098s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"subnet": {"ip_version": 6, "network_id": "b966c013-4423-4981-be9e-385a0a89a297", "cidr": "2003::/64", "gateway_ip": "2003::1"}}
      Response - Headers:

      {'status': '201', 'content-length': '428', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-426c04be-5dfb-463e-94cc-f80b8f6e6004'}

      Body: {"subnet": {"name": "", "enable_dhcp": true, "network_id": "b966c013-4423-4981-be9e-385a0a89a297", "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "dns_nameservers": [], "gateway_ip": "2003::1", "ipv6_ra_mode": null, "allocation_pools": [

      {"start": "2003::2", "end": "2003::ffff:ffff:ffff:fffe"}

      ], "host_routes": [], "ip_version": 6, "ipv6_address_mode": null, "cidr": "2003::/64", "id": "0494899d-8b0c-4a30-85de-89b4f77066b8"}}
      2014-12-31 16:04:15,478 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 201 POST http://192.168.56.10:9696/v2.0/subnets 0.102s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"subnet": {"ip_version": 6, "network_id": "d28a37b4-dbe1-4eff-adb0-6304719eb1a3", "cidr": "2003::/64", "gateway_ip": "2003::1"}}
      Response - Headers:

      {'status': '201', 'content-length': '428', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-d2614154-c598-45fa-8fe5-3e1a24200453'}

      Body: {"subnet": {"name": "", "enable_dhcp": true, "network_id": "d28a37b4-dbe1-4eff-adb0-6304719eb1a3", "tenant_id": "59944a0795c64d1daada7db3bfe6b079", "dns_nameservers": [], "gateway_ip": "2003::1", "ipv6_ra_mode": null, "allocation_pools": [

      {"start": "2003::2", "end": "2003::ffff:ffff:ffff:fffe"}

      ], "host_routes": [], "ip_version": 6, "ipv6_address_mode": null, "cidr": "2003::/64", "id": "bf2102bd-af6c-4edd-9033-a42ab3eddc5e"}}
      2014-12-31 16:04:15,636 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_add_router_interfaces_on_overlapping_subnets_returns_400): 409 PUT http://192.168.56.10:9696/v2.0/routers/33939c81-aada-46cf-8ef2-e96fd60f39c2/add_router_interface 0.157s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body:

      {"subnet_id": "0494899d-8b0c-4a30-85de-89b4f77066b8"}

      Response - Headers:

      {'status': '409', 'content-length': '205', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-a6b0509d-0bf8-44f5-b26b-67e31e5bbdd5'}

      Body: {"NeutronError": {"message": "Port 9739b112-0b95-4cea-9e37-202e2c78b914 has owner network:router_interface and therefore cannot be deleted directly via the port API.", "type": "L3PortInUse", "detail": ""}}
      }}}

      Traceback (most recent call last):
      File "tempest/api/network/test_routers_negative.py", line 72, in test_add_router_interfaces_on_overlapping_subnets_returns_400
      subnet01['id'])
      File "tempest/api/network/base_routers.py", line 40, in _add_router_interface_with_subnet_id
      router_id, subnet_id)
      File "tempest/services/network/json/network_client.py", line 358, in add_router_interface_with_subnet_id
      resp, body = self.put(uri, update_body)
      File "tempest/common/rest_client.py", line 248, in put
      return self.request('PUT', url, extra_headers, headers, body)
      File "tempest/common/rest_client.py", line 450, in request
      resp, resp_body)
      File "tempest/common/rest_client.py", line 503, in _error_checker
      raise exceptions.Conflict(resp_body)
      Conflict: An object with that identifier already exists
      Details:

      {u'message': u'Port 9739b112-0b95-4cea-9e37-202e2c78b914 has owner network:router_interface and therefore cannot be deleted directly via the port API.', u'type': u'L3PortInUse', u'detail': u''}

      ======================================================================
      FAIL: tempest.api.network.test_routers_negative.RoutersNegativeIpV6Test.test_router_add_gateway_net_not_external_returns_400[gate,negative,smoke]
      tags: worker-0
      ----------------------------------------------------------------------
      pythonlogging:'': {{{
      2014-12-31 16:04:16,074 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_router_add_gateway_net_not_external_returns_400): 500 POST http://192.168.56.10:9696/v2.0/networks 0.309s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"network": {"name": "router-negative--1230173816"}}
      Response - Headers:

      {'status': '500', 'content-length': '112', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:16 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-d4a049bc-a0de-4d48-8683-dcde89ed3955'}

      Body: {"NeutronError": {"message": "create_network_postcommit failed.", "type": "MechanismDriverError", "detail": ""}}
      }}}

      Traceback (most recent call last):
      File "tempest/api/network/test_routers_negative.py", line 54, in test_router_add_gateway_net_not_external_returns_400
      network_name=data_utils.rand_name('router-negative-'))
      File "tempest/api/network/base.py", line 188, in create_network
      body = cls.client.create_network(name=network_name)
      File "tempest/services/network/json/network_client.py", line 145, in _create
      resp, body = self.post(uri, post_data)
      File "tempest/common/rest_client.py", line 236, in post
      return self.request('POST', url, extra_headers, headers, body)
      File "tempest/common/rest_client.py", line 450, in request
      resp, resp_body)
      File "tempest/common/rest_client.py", line 547, in _error_checker
      raise exceptions.ServerFault(message)
      ServerFault: Got server fault
      Details: create_network_postcommit failed.
      Traceback (most recent call last):
      _StringException: Empty attachments:
      stderr
      stdout

      pythonlogging:'': {{{
      2014-12-31 16:04:16,074 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_router_add_gateway_net_not_external_returns_400): 500 POST http://192.168.56.10:9696/v2.0/networks 0.309s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"network": {"name": "router-negative--1230173816"}}
      Response - Headers:

      {'status': '500', 'content-length': '112', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:16 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-d4a049bc-a0de-4d48-8683-dcde89ed3955'}

      Body: {"NeutronError": {"message": "create_network_postcommit failed.", "type": "MechanismDriverError", "detail": ""}}
      }}}

      Traceback (most recent call last):
      File "tempest/api/network/test_routers_negative.py", line 54, in test_router_add_gateway_net_not_external_returns_400
      network_name=data_utils.rand_name('router-negative-'))
      File "tempest/api/network/base.py", line 188, in create_network
      body = cls.client.create_network(name=network_name)
      File "tempest/services/network/json/network_client.py", line 145, in _create
      resp, body = self.post(uri, post_data)
      File "tempest/common/rest_client.py", line 236, in post
      return self.request('POST', url, extra_headers, headers, body)
      File "tempest/common/rest_client.py", line 450, in request
      resp, resp_body)
      File "tempest/common/rest_client.py", line 547, in _error_checker
      raise exceptions.ServerFault(message)
      ServerFault: Got server fault
      Details: create_network_postcommit failed.

      Traceback (most recent call last):
      _StringException: Empty attachments:
      stderr
      stdout

      pythonlogging:'': {{{
      2014-12-31 16:04:16,074 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_router_add_gateway_net_not_external_returns_400): 500 POST http://192.168.56.10:9696/v2.0/networks 0.309s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body: {"network": {"name": "router-negative--1230173816"}}
      Response - Headers:

      {'status': '500', 'content-length': '112', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:16 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-d4a049bc-a0de-4d48-8683-dcde89ed3955'}

      Body: {"NeutronError": {"message": "create_network_postcommit failed.", "type": "MechanismDriverError", "detail": ""}}
      }}}

      Traceback (most recent call last):
      File "tempest/api/network/test_routers_negative.py", line 54, in test_router_add_gateway_net_not_external_returns_400
      network_name=data_utils.rand_name('router-negative-'))
      File "tempest/api/network/base.py", line 188, in create_network
      body = cls.client.create_network(name=network_name)
      File "tempest/services/network/json/network_client.py", line 145, in _create
      resp, body = self.post(uri, post_data)
      File "tempest/common/rest_client.py", line 236, in post
      return self.request('POST', url, extra_headers, headers, body)
      File "tempest/common/rest_client.py", line 450, in request
      resp, resp_body)
      File "tempest/common/rest_client.py", line 547, in _error_checker
      raise exceptions.ServerFault(message)
      ServerFault: Got server fault
      Details: create_network_postcommit failed.
      ======================================================================
      FAIL: tempest.api.network.test_routers_negative.RoutersNegativeIpV6Test.test_router_remove_interface_in_use_returns_409[gate,negative,smoke]
      tags: worker-0
      ----------------------------------------------------------------------
      pythonlogging:'': {{{
      2014-12-31 16:04:16,343 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_router_remove_interface_in_use_returns_409): 409 PUT http://192.168.56.10:9696/v2.0/routers/33939c81-aada-46cf-8ef2-e96fd60f39c2/add_router_interface 0.265s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body:

      {"subnet_id": "db8ae5f6-6a39-46dd-a207-030ab5328362"}

      Response - Headers:

      {'status': '409', 'content-length': '205', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:16 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-f9e0f74a-6741-4931-8a5f-34c123738904'}

      Body: {"NeutronError": {"message": "Port 3930cbf7-0a39-4158-b1f1-855e1fed2fc8 has owner network:router_interface and therefore cannot be deleted directly via the port API.", "type": "L3PortInUse", "detail": ""}}
      }}}

      Traceback (most recent call last):
      File "tempest/api/network/test_routers_negative.py", line 81, in test_router_remove_interface_in_use_returns_409
      self.router['id'], self.subnet['id'])
      File "tempest/services/network/json/network_client.py", line 358, in add_router_interface_with_subnet_id
      resp, body = self.put(uri, update_body)
      File "tempest/common/rest_client.py", line 248, in put
      return self.request('PUT', url, extra_headers, headers, body)
      File "tempest/common/rest_client.py", line 450, in request
      resp, resp_body)
      File "tempest/common/rest_client.py", line 503, in _error_checker
      raise exceptions.Conflict(resp_body)
      Conflict: An object with that identifier already exists
      Details:

      {u'message': u'Port 3930cbf7-0a39-4158-b1f1-855e1fed2fc8 has owner network:router_interface and therefore cannot be deleted directly via the port API.', u'type': u'L3PortInUse', u'detail': u''}

      Traceback (most recent call last):
      _StringException: Empty attachments:
      stderr
      stdout

      pythonlogging:'': {{{
      2014-12-31 16:04:16,343 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_router_remove_interface_in_use_returns_409): 409 PUT http://192.168.56.10:9696/v2.0/routers/33939c81-aada-46cf-8ef2-e96fd60f39c2/add_router_interface 0.265s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body:

      {"subnet_id": "db8ae5f6-6a39-46dd-a207-030ab5328362"}

      Response - Headers:

      {'status': '409', 'content-length': '205', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:16 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-f9e0f74a-6741-4931-8a5f-34c123738904'}

      Body: {"NeutronError": {"message": "Port 3930cbf7-0a39-4158-b1f1-855e1fed2fc8 has owner network:router_interface and therefore cannot be deleted directly via the port API.", "type": "L3PortInUse", "detail": ""}}
      }}}

      Traceback (most recent call last):
      File "tempest/api/network/test_routers_negative.py", line 81, in test_router_remove_interface_in_use_returns_409
      self.router['id'], self.subnet['id'])
      File "tempest/services/network/json/network_client.py", line 358, in add_router_interface_with_subnet_id
      resp, body = self.put(uri, update_body)
      File "tempest/common/rest_client.py", line 248, in put
      return self.request('PUT', url, extra_headers, headers, body)
      File "tempest/common/rest_client.py", line 450, in request
      resp, resp_body)
      File "tempest/common/rest_client.py", line 503, in _error_checker
      raise exceptions.Conflict(resp_body)
      Conflict: An object with that identifier already exists
      Details:

      {u'message': u'Port 3930cbf7-0a39-4158-b1f1-855e1fed2fc8 has owner network:router_interface and therefore cannot be deleted directly via the port API.', u'type': u'L3PortInUse', u'detail': u''}

      Traceback (most recent call last):
      _StringException: Empty attachments:
      stderr
      stdout

      pythonlogging:'': {{{
      2014-12-31 16:04:16,343 2434 DEBUG [tempest.common.rest_client] Request (RoutersNegativeIpV6Test:test_router_remove_interface_in_use_returns_409): 409 PUT http://192.168.56.10:9696/v2.0/routers/33939c81-aada-46cf-8ef2-e96fd60f39c2/add_router_interface 0.265s
      Request - Headers:

      {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}

      Body:

      {"subnet_id": "db8ae5f6-6a39-46dd-a207-030ab5328362"}

      Response - Headers:

      {'status': '409', 'content-length': '205', 'connection': 'close', 'date': 'Wed, 31 Dec 2014 16:04:16 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-f9e0f74a-6741-4931-8a5f-34c123738904'}

      Body: {"NeutronError": {"message": "Port 3930cbf7-0a39-4158-b1f1-855e1fed2fc8 has owner network:router_interface and therefore cannot be deleted directly via the port API.", "type": "L3PortInUse", "detail": ""}}
      }}}

      Traceback (most recent call last):
      File "tempest/api/network/test_routers_negative.py", line 81, in test_router_remove_interface_in_use_returns_409
      self.router['id'], self.subnet['id'])
      File "tempest/services/network/json/network_client.py", line 358, in add_router_interface_with_subnet_id
      resp, body = self.put(uri, update_body)
      File "tempest/common/rest_client.py", line 248, in put
      return self.request('PUT', url, extra_headers, headers, body)
      File "tempest/common/rest_client.py", line 450, in request
      resp, resp_body)
      File "tempest/common/rest_client.py", line 503, in _error_checker
      raise exceptions.Conflict(resp_body)
      Conflict: An object with that identifier already exists
      Details:

      {u'message': u'Port 3930cbf7-0a39-4158-b1f1-855e1fed2fc8 has owner network:router_interface and therefore cannot be deleted directly via the port API.', u'type': u'L3PortInUse', u'detail': u''}

      ======================================================================
      FAIL: tearDownClass (tempest.api.network.test_routers_negative.RoutersNegativeIpV6Test)
      tags: worker-0
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "tempest/test.py", line 301, in tearDownClass
      teardown()
      File "tempest/api/network/base.py", line 155, in resource_cleanup
      subnet['id'])
      File "tempest/api/network/base.py", line 178, in _try_delete_resource
      delete_callable(*args, **kwargs)
      File "tempest/services/network/json/network_client.py", line 118, in _delete
      resp, body = self.delete(uri)
      File "tempest/common/rest_client.py", line 242, in delete
      return self.request('DELETE', url, extra_headers, headers, body)
      File "tempest/common/rest_client.py", line 450, in request
      resp, resp_body)
      File "tempest/common/rest_client.py", line 503, in _error_checker
      raise exceptions.Conflict(resp_body)
      Conflict: An object with that identifier already exists
      Details:

      {u'message': u'Unable to complete operation on subnet db8ae5f6-6a39-46dd-a207-030ab5328362. One or more ports have an IP allocation from this subnet.', u'type': u'SubnetInUse', u'detail': u''}

      Ran 4 tests in 1.808s
      FAILED (id=13, failures=4)
      [vagrant@localhost tempest]$

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mestery@mestery.com Kyle Mestery
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: