Comment 5 for bug 1934622

Revision history for this message
chandan kumar (chkumar246) wrote :

based on the testproject https://review.rdoproject.org/r/c/testproject/+/34399 and https://logserver.rdoproject.org/99/34399/1/check/periodic-tripleo-ci-centos-8-standalone-full-tempest-api-master/c17638c/logs/undercloud/var/log/tempest/tempest_run.log.txt.gz
```
neutron_tempest_plugin.api.test_subnets.SubnetServiceTypeTestJSON.test_allocate_ips_are_from_correct_subnet[id-7e0edb66-1bb2-4473-ab83-d039cddced0d]
----------------------------------------------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/api/test_subnets.py", line 91, in test_allocate_ips_are_from_correct_subnet
        cidr=str(cidr_1))
      File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/api/base.py", line 465, in create_subnet
        **kwargs)
      File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/services/network/json/network_client.py", line 145, in _create
        resp, body = self.post(uri, post_data)
      File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 299, in post
        return self.request('POST', url, extra_headers, headers, body, chunked)
      File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 703, in request
        self._error_checker(resp, resp_body)
      File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 824, in _error_checker
        raise exceptions.Conflict(resp_body, resp=resp)
    tempest.lib.exceptions.Conflict: Conflict with state of target resource
    Details: {'type': 'IpAddressGenerationFailureNoMatchingSubnet', 'message': 'No valid service subnet for the given device owner, network 13fb40e3-9cb7-4e41-beb0-b762f3cb0306, service type network:distributed.', 'detail': ''}

Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
    2021-07-06 08:33:27,115 213754 INFO [tempest.lib.common.rest_client] Request (SubnetServiceTypeTestJSON:test_allocate_ips_are_from_correct_subnet): 409 POST http://192.168.24.3:9696/v2.0/subnets 0.873s
    2021-07-06 08:33:27,116 213754 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
            Body: {"subnet": {"network_id": "13fb40e3-9cb7-4e41-beb0-b762f3cb0306", "cidr": "192.168.1.0/24", "ip_version": 4, "service_types": ["test:type_1"], "gateway_ip": "192.168.1.1"}}
        Response - Headers: {'content-type': 'application/json', 'content-length': '232', 'x-openstack-request-id': 'req-b4ce6cfe-fda6-47db-bece-b016abd95a61', 'date': 'Tue, 06 Jul 2021 08:33:27 GMT', 'connection': 'close', 'status': '409', 'content-location': 'http://192.168.24.3:9696/v2.0/subnets'}
            Body: b'{"NeutronError": {"type": "IpAddressGenerationFailureNoMatchingSubnet", "message": "No valid service subnet for the given device owner, network 13fb40e3-9cb7-4e41-beb0-b762f3cb0306, service type network:distributed.", "detail": ""}}'

```

Apart from this patch https://review.opendev.org/c/openstack/neutron/+/797595 I am not sure Do we need to change something else somewhere to make it passing?