Tempest test test_update_subnet_gw_dns_host_routes_dhcp fails

Bug #1476951 reported by Vedamurthy Joshi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Opinion
Medium
Unassigned

Bug Description

R2.20 Build 64

Tempest test test_update_subnet_gw_dns_host_routes_dhcp fails .

pythonlogging:'': {{{
2015-07-20 16:09:39,955 6082 INFO [tempest_lib.common.rest_client] Request (NetworksTestJSON:test_update_subnet_gw_dns_host_routes_dhcp): 201 POST http://10.204.217.143:9696/v2.0/networks 0.087s
2015-07-20 16:09:39,956 6082 DEBUG [tempest_lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"network": {"name": "tempest-test-network--1061812639"}}
    Response - Headers: {'status': '201', 'content-length': '398', 'connection': 'close', 'date': 'Mon, 20 Jul 2015 10:18:28 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-c7c8bbd6-24c1-4b21-b1bf-98d5661ea351'}
        Body: {"network": {"status": "ACTIVE", "router:external": false, "subnets": [], "name": "tempest-test-network--1061812639", "admin_state_up": true, "tenant_id": "2759202df4ee482895259aaa3020870c", "shared": false, "contrail:instance_count": 0, "id": "a9395acd-94c4-4444-9f9c-fcb2b7e3a6dd", "contrail:fq_name": ["default-domain", "tempest-NetworksTestJSON-654427120", "tempest-test-network--1061812639"]}}
2015-07-20 16:09:40,147 6082 INFO [tempest_lib.common.rest_client] Request (NetworksTestJSON:test_update_subnet_gw_dns_host_routes_dhcp): 201 POST http://10.204.217.143:9696/v2.0/subnets 0.189s
2015-07-20 16:09:40,147 6082 DEBUG [tempest_lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"subnet": {"network_id": "a9395acd-94c4-4444-9f9c-fcb2b7e3a6dd", "dns_nameservers": ["8.8.4.4", "8.8.8.8"], "allocation_pools": [{"start": "10.100.0.3", "end": "10.100.0.4"}], "host_routes": [{"nexthop": "10.100.1.1", "destination": "10.20.0.0/32"}], "ip_version": 4, "gateway_ip": "10.100.0.1", "cidr": "10.100.0.0/28"}}
    Response - Headers: {'status': '201', 'content-length': '450', 'connection': 'close', 'date': 'Mon, 20 Jul 2015 10:18:28 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-b432c03e-3abf-47aa-a253-1cd215f3bb83'}
        Body: {"subnet": {"name": "", "enable_dhcp": true, "network_id": "a9395acd-94c4-4444-9f9c-fcb2b7e3a6dd", "tenant_id": "2759202df4ee482895259aaa3020870c", "dns_nameservers": ["8.8.4.4", "8.8.8.8"], "allocation_pools": [{"start": "10.100.0.3", "end": "10.100.0.4"}], "gateway_ip": "10.100.0.1", "ip_version": 4, "host_routes": [{"destination": "10.20.0.0/32", "nexthop": "10.100.1.1"}], "cidr": "10.100.0.0/28", "id": "727a3631-5b78-4366-8124-efea59868950"}}
2015-07-20 16:09:40,207 6082 INFO [tempest_lib.common.rest_client] Request (NetworksTestJSON:test_update_subnet_gw_dns_host_routes_dhcp): 400 PUT http://10.204.217.143:9696/v2.0/subnets/727a3631-5b78-4366-8124-efea59868950 0.058s
2015-07-20 16:09:40,208 6082 DEBUG [tempest_lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"subnet": {"dns_nameservers": ["7.8.8.8", "7.8.4.4"], "host_routes": [{"nexthop": "10.100.1.2", "destination": "10.20.0.0/32"}], "name": "New_subnet", "enable_dhcp": true, "gateway_ip": "10.100.0.2"}}
    Response - Headers: {'status': '400', 'content-length': '123', 'connection': 'close', 'date': 'Mon, 20 Jul 2015 10:18:28 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-6f46af67-4efd-4775-9e47-e59303f7b254'}
        Body: {"NeutronError": {"message": "Bad subnet request: update of gateway is not supported", "type": "BadRequest", "detail": ""}}
2015-07-20 16:09:40,309 6082 INFO [tempest_lib.common.rest_client] Request (NetworksTestJSON:_run_cleanups): 204 DELETE http://10.204.217.143:9696/v2.0/networks/a9395acd-94c4-4444-9f9c-fcb2b7e3a6dd 0.096s
2015-07-20 16:09:40,310 6082 DEBUG [tempest_lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'date': 'Mon, 20 Jul 2015 10:18:28 GMT', 'status': '204', 'connection': 'close', 'content-length': '0', 'x-openstack-request-id': 'req-7834cfc2-1e40-4970-913e-b7fd767ea1bc'}
        Body:
}}}

Traceback (most recent call last):
  File "/home/ubuntu/jenkins/workspace/VeduTempest/tempest/tempest/api/network/test_networks.py", line 367, in test_update_subnet_gw_dns_host_routes_dhcp
    **kwargs)
  File "/home/ubuntu/jenkins/workspace/VeduTempest/tempest/tempest/services/network/json/network_client.py", line 157, in update_subnet
    return self._update_resource(uri, post_data)
  File "/home/ubuntu/jenkins/workspace/VeduTempest/tempest/tempest/services/network/json/network_client.py", line 117, in _update_resource
    resp, body = self.put(req_uri, req_post_data)
  File "/home/ubuntu/jenkins/workspace/VeduTempest/tempest/.venv/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 319, in put
    return self.request('PUT', url, extra_headers, headers, body)
  File "/home/ubuntu/jenkins/workspace/VeduTempest/tempest/.venv/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 636, in request
    resp, resp_body)
  File "/home/ubuntu/jenkins/workspace/VeduTempest/tempest/.venv/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 693, in _error_checker
    raise exceptions.BadRequest(resp_body)
tempest_lib.exceptions.BadRequest: Bad request
Details: {u'message': u'Bad subnet request: update of gateway is not supported', u'type': u'BadRequest', u'detail': u''}

Tags: config tempest
Changed in juniperopenstack:
status: New → Opinion
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.