Tempest SSH actions tests fail

Bug #1822969 reported by Renat Akhmerov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Confirmed
Low
Unassigned

Bug Description

Tests under mistral_tempest_tests.tests.scenario.engine.actions.v2.test_ssh_actions.SSHActionsTestsV2 fail

ft1.1: mistral_tempest_tests.tests.scenario.engine.actions.v2.test_ssh_actions.SSHActionsTestsV2.test_run_ssh_action[id-3e12a2ad-5b10-46b0-ae1f-ed34d3cc6ae2,sanity]_StringException: pythonlogging:'': {{{
2019-04-03 07:49:16,920 18211 INFO [tempest.lib.common.rest_client] Request (SSHActionsTestsV2:setUp): 200 GET https://10.210.102.17/compute/v2.1/os-security-groups 0.978s
2019-04-03 07:49:16,920 18211 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {u'x-openstack-request-id': 'req-d5f58587-5adb-428a-9bfe-fe433bc286ff', u'content-length': '707', u'content-type': 'application/json', u'server': 'Apache/2.4.29 (Ubuntu)', u'openstack-api-version': 'compute 2.1', 'content-location': 'https://10.210.102.17/compute/v2.1/os-security-groups', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 03 Apr 2019 07:49:15 GMT', u'x-compute-request-id': 'req-d5f58587-5adb-428a-9bfe-fe433bc286ff', u'connection': 'close', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version', 'status': '200'}
        Body: {"security_groups": [{"rules": [{"from_port": null, "group": {"tenant_id": "35d8ca01bb7a4956bf8056e9a4700126", "name": "default"}, "ip_protocol": null, "to_port": null, "parent_group_id": "4452746b-92f8-4a1c-b0e8-b71796f0b4d0", "ip_range": {}, "id": "08168993-a855-48ad-ae5b-afeb909216ec"}, {"from_port": null, "group": {"tenant_id": "35d8ca01bb7a4956bf8056e9a4700126", "name": "default"}, "ip_protocol": null, "to_port": null, "parent_group_id": "4452746b-92f8-4a1c-b0e8-b71796f0b4d0", "ip_range": {}, "id": "2d5c7102-ea0a-4405-bfac-92b84343964d"}], "tenant_id": "35d8ca01bb7a4956bf8056e9a4700126", "id": "4452746b-92f8-4a1c-b0e8-b71796f0b4d0", "name": "default", "description": "Default security group"}]}
2019-04-03 07:49:17,959 18211 INFO [tempest.lib.common.rest_client] Request (SSHActionsTestsV2:setUp): 200 POST https://10.210.102.17/compute/v2.1/os-security-group-rules 1.031s
2019-04-03 07:49:17,960 18211 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"security_group_rule": {"ip_protocol": "tcp", "from_port": 22, "to_port": 22, "cidr": "0.0.0.0/0", "parent_group_id": "4452746b-92f8-4a1c-b0e8-b71796f0b4d0"}}
    Response - Headers: {u'x-openstack-request-id': 'req-03569ba5-4bf1-4b9f-ad91-bba8516dabd2', u'content-length': '232', u'content-type': 'application/json', u'server': 'Apache/2.4.29 (Ubuntu)', u'openstack-api-version': 'compute 2.1', 'content-location': 'https://10.210.102.17/compute/v2.1/os-security-group-rules', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 03 Apr 2019 07:49:16 GMT', u'x-compute-request-id': 'req-03569ba5-4bf1-4b9f-ad91-bba8516dabd2', u'connection': 'close', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version', 'status': '200'}
        Body: {"security_group_rule": {"from_port": 22, "group": {}, "ip_protocol": "tcp", "to_port": 22, "parent_group_id": "4452746b-92f8-4a1c-b0e8-b71796f0b4d0", "ip_range": {"cidr": "0.0.0.0/0"}, "id": "e0eb2310-9a1a-407b-bf73-155a1f4accef"}}
2019-04-03 07:49:17,968 18211 DEBUG [oslo_concurrency.processutils] Running cmd (subprocess): ssh-keygen -q -N -t rsa -f /tmp/tmpOYbDJP/tempkey -C Generated-by-Mistral -b 2048
2019-04-03 07:49:18,187 18211 DEBUG [oslo_concurrency.processutils] CMD "ssh-keygen -q -N -t rsa -f /tmp/tmpOYbDJP/tempkey -C Generated-by-Mistral -b 2048" returned: 0 in 0.219s
2019-04-03 07:49:18,192 18211 INFO [mistral_tempest_tests.tests.scenario.engine.actions.v2.test_ssh_actions] Private key saved to /home/tempest/.ssh/mistral-functional-tests-key
2019-04-03 07:49:19,348 18211 INFO [tempest.lib.common.rest_client] Request (SSHActionsTestsV2:setUp): 200 POST https://10.210.102.17/compute/v2.1/os-keypairs 1.153s
2019-04-03 07:49:19,349 18211 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"keypair": {"name": "mistral-functional-tests-key", "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKZSfQluuNUhNN7aIGSZ/1YVWzYp510pt77fbBuZt51MdlS/D7ol46p2GEusZX8xC07FWP2/SamiooQ8jNmPPPN1tOJ43CH1r9Ir/2IVbSYAhen+9u25eQItc4giEoHqK2wNq6a3tuNl6xNu8cF1Aq4moF/8fevZIc97duG/bGe689W/bOyeYoEN52y05ivHnMtzD2oS57gFogchmcpMaW34HknRt2Ue7kve6eBNS/0dmyBmDvJFVtIz/Y2675ohONWQ+9LUFBE+5BnA4rqtNI8/Ou0lo8dMc/MwoI9bayIfX+Anb+IxPHPMqDzsFUYjSKou3wJjs5IwhiHJKKQJR7 Generated-by-Mistral\n"}}
    Response - Headers: {u'x-openstack-request-id': 'req-16555b46-bd16-4aa1-95a1-64e9916d3654', u'content-length': '587', u'content-type': 'application/json', u'server': 'Apache/2.4.29 (Ubuntu)', u'openstack-api-version': 'compute 2.1', 'content-location': 'https://10.210.102.17/compute/v2.1/os-keypairs', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 03 Apr 2019 07:49:18 GMT', u'x-compute-request-id': 'req-16555b46-bd16-4aa1-95a1-64e9916d3654', u'connection': 'close', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version', 'status': '200'}
        Body: {"keypair": {"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKZSfQluuNUhNN7aIGSZ/1YVWzYp510pt77fbBuZt51MdlS/D7ol46p2GEusZX8xC07FWP2/SamiooQ8jNmPPPN1tOJ43CH1r9Ir/2IVbSYAhen+9u25eQItc4giEoHqK2wNq6a3tuNl6xNu8cF1Aq4moF/8fevZIc97duG/bGe689W/bOyeYoEN52y05ivHnMtzD2oS57gFogchmcpMaW34HknRt2Ue7kve6eBNS/0dmyBmDvJFVtIz/Y2675ohONWQ+9LUFBE+5BnA4rqtNI8/Ou0lo8dMc/MwoI9bayIfX+Anb+IxPHPMqDzsFUYjSKou3wJjs5IwhiHJKKQJR7 Generated-by-Mistral\n", "user_id": "8b196d683038443ea286a1fbe1d0a2e5", "name": "mistral-functional-tests-key", "fingerprint": "d1:2e:71:a3:62:4b:a2:d5:e6:05:1d:19:9f:27:48:f1"}}
2019-04-03 07:49:20,061 18211 INFO [tempest.lib.common.rest_client] Request (SSHActionsTestsV2:setUp): 409 POST https://10.210.102.17/compute/v2.1/servers 0.708s
2019-04-03 07:49:20,062 18211 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"server": {"name": "mistral-guest-vm", "imageRef": "c727e5b5-a302-414b-a059-6822a14f035f", "key_name": "mistral-functional-tests-key", "flavorRef": "42"}}
    Response - Headers: {u'x-openstack-request-id': 'req-0ebfbc85-50eb-4a2b-b508-d121184d134c', u'content-length': '123', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version', u'server': 'Apache/2.4.29 (Ubuntu)', u'openstack-api-version': 'compute 2.1', 'content-location': 'https://10.210.102.17/compute/v2.1/servers', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 03 Apr 2019 07:49:19 GMT', u'x-compute-request-id': 'req-0ebfbc85-50eb-4a2b-b508-d121184d134c', u'content-type': 'application/json; charset=UTF-8', 'status': '409', u'connection': 'close'}
        Body: {"conflictingRequest": {"message": "Multiple possible networks found, use a Network ID to be more specific.", "code": 409}}
}}}

Traceback (most recent call last):
  File "/opt/stack/tempest/.tox/tempest/local/lib/python2.7/site-packages/mistral_tempest_tests/tests/scenario/engine/actions/v2/test_ssh_actions.py", line 184, in setUp
    key_name=self.key_name
  File "/opt/stack/tempest/.tox/tempest/local/lib/python2.7/site-packages/mistral_tempest_tests/tests/scenario/engine/actions/v2/test_ssh_actions.py", line 69, in _create_server
    **kwargs
  File "tempest/lib/services/compute/servers_client.py", line 97, in create_server
    resp, body = self.post('servers', post_body)
  File "tempest/lib/common/rest_client.py", line 283, in post
    return self.request('POST', url, extra_headers, headers, body, chunked)
  File "tempest/lib/services/compute/base_compute_client.py", line 48, in request
    method, url, extra_headers, headers, body, chunked)
  File "tempest/lib/common/rest_client.py", line 679, in request
    self._error_checker(resp, resp_body)
  File "tempest/lib/common/rest_client.py", line 800, in _error_checker
    raise exceptions.Conflict(resp_body, resp=resp)
tempest.lib.exceptions.Conflict: Conflict with state of target resource
Details: {u'message': u'Multiple possible networks found, use a Network ID to be more specific.', u'code': 409}

Changed in mistral:
milestone: none → train-1
status: New → Confirmed
importance: Undecided → Medium
importance: Medium → Low
Changed in mistral:
milestone: train-1 → none
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.