Comment 7 for bug 1998148

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

Even though the test case test_rescued_vm_detach_volume seems to have sshable waiter
https://github.com/openstack/tempest/blob/e64f4c2b07e048ea77d08a29b7afbd17448abc32/tempest/api/compute/servers/test_server_rescue_negative.py#L138-L155

Looking at the templest logs I don't see the test actually doing an ssh before attaching the volume

2023-04-24 16:38:14,298 89987 INFO [tempest.lib.common.rest_client] Request (ServerRescueNegativeTestJSON:test_rescued_vm_detach_volume): 200 GET https://158.69.68.93/compute/v2.1/servers/02d29a98-2867-4691-a3aa-55a38e031f30 0.456s
2023-04-24 16:38:14,298 89987 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, 24 Apr 2023 16:38:13 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'content-length': '1516', 'content-type': 'application/json', 'openstack-api-version': 'compute 2.1', 'x-openstack-nova-api-version': '2.1', 'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version', 'x-openstack-request-id': 'req-513b0c16-17b8-4f22-b35c-424ec0574285', 'x-compute-request-id': 'req-513b0c16-17b8-4f22-b35c-424ec0574285', 'connection': 'close', 'status': '200', 'content-location': 'https://158.69.68.93/compute/v2.1/servers/02d29a98-2867-4691-a3aa-55a38e031f30'}
        Body: b'{"server": {"id": "02d29a98-2867-4691-a3aa-55a38e031f30", "name": "tempest-ServerRescueNegativeTestJSON-server-1181505723", "status": "ACTIVE", "tenant_id": "6634ce1b2fb8494fbf87dbeaea9eaade", "user_id": "487a73080c73464b9f0317f224d6f1aa", "metadata": {}, "hostId": "53314c3f02ec2ebee6213867385603d34e2ae1378ed9ba4f7677b308", "image": {"id": "b323bba3-371f-4283-b030-60d286e96e7e", "links": [{"rel": "bookmark", "href": "https://158.69.68.93/compute/images/b323bba3-371f-4283-b030-60d286e96e7e"}]}, "flavor": {"id": "42", "links": [{"rel": "bookmark", "href": "https://158.69.68.93/compute/flavors/42"}]}, "created": "2023-04-24T16:38:05Z", "updated": "2023-04-24T16:38:13Z", "addresses": {"tempest-ServerRescueNegativeTestJSON-704888750-network": [{"version": 4, "addr": "10.1.0.12", "OS-EXT-IPS:type": "fixed", "OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:cc:ae:3d"}]}, "accessIPv4": "", "accessIPv6": "", "links": [{"rel": "self", "href": "https://158.69.68.93/compute/v2.1/servers/02d29a98-2867-4691-a3aa-55a38e031f30"}, {"rel": "bookmark", "href": "https://158.69.68.93/compute/servers/02d29a98-2867-4691-a3aa-55a38e031f30"}], "OS-DCF:diskConfig": "MANUAL", "progress": 0, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "key_name": null, "OS-SRV-USG:launched_at": "2023-04-24T16:38:12.000000", "OS-SRV-USG:terminated_at": null, "security_groups": [{"name": "default"}], "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-STS:power_state": 1, "os-extended-volumes:volumes_attached": []}}'
2023-04-24 16:38:14,305 89987 INFO [tempest.common.waiters] State transition "BUILD/spawning" ==> "ACTIVE/None" after 9 second wait
2023-04-24 16:38:14,601 89987 INFO [tempest.lib.common.rest_client] Request (ServerRescueNegativeTestJSON:test_rescued_vm_detach_volume): 200 POST https://158.69.68.93/compute/v2.1/servers/02d29a98-2867-4691-a3aa-55a38e031f30/os-volume_attachments 0.295s
2023-04-24 16:38:14,601 89987 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}