Some nova test failed because vm soft_deleted

Bug #1869158 reported by HYSong on 2020-03-26
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Undecided
Unassigned

Bug Description

If reclaim_instance_interval is set in nova.conf, some nova test in tempest will be failed.
I think some logic in code is judging by 'deleted' VM status instead of 'soft_deleted'.

+++++++++++++++
Details: {'message': 'Security Group 257bac3a-8705-429b-8188-d861ab68c80c in use.', 'type': 'SecurityGroupInUse', 'detail': ''}
}}}

traceback-2: {{{
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/tempest/common/waiters.py", line 129, in wait_for_server_termination
    raise lib_exc.TimeoutException
tempest.lib.exceptions.TimeoutException: Request timed out
Details: None
}}}

traceback-3: {{{
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/tempest/lib/common/utils/test_utils.py", line 84, in call_and_ignore_notfound_exc
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/tempest/lib/services/network/security_groups_client.py", line 59, in delete_security_group
    return self.delete_resource(uri)
  File "/usr/local/lib/python3.6/dist-packages/tempest/lib/services/network/base.py", line 41, in delete_resource
    resp, body = self.delete(req_uri)
  File "/usr/local/lib/python3.6/dist-packages/tempest/lib/common/rest_client.py", line 314, in delete
    return self.request('DELETE', url, extra_headers, headers, body)
  File "/usr/local/lib/python3.6/dist-packages/tempest/lib/common/rest_client.py", line 687, in request
    self._error_checker(resp, resp_body)
  File "/usr/local/lib/python3.6/dist-packages/tempest/lib/common/rest_client.py", line 808, in _error_checker
    raise exceptions.Conflict(resp_body, resp=resp)
tempest.lib.exceptions.Conflict: Conflict with state of target resource
Details: {'message': 'Security Group c18f707c-d761-4ef8-9cff-dcd570523331 in use.', 'type': 'SecurityGroupInUse', 'detail': ''}
}}}

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/tempest/common/waiters.py", line 129, in wait_for_server_termination
    raise lib_exc.TimeoutException
tempest.lib.exceptions.TimeoutException: Request timed out
Details: None

Martin Kopec (mkopec) wrote :

Hmm, you could be right, can you share a list of tests which failed?

HYSong (songhongyuan) wrote :

hi Martin, I find this commit(https://review.opendev.org/#/c/699171/) fix this bug, please review it.

Martin Kopec (mkopec) wrote :

Hi HYSong,

thanks, the review you mentioned seems to contain a fix and it's related to another tempest bug [1]. As the issue described here and in [1] looks the same, I'm gonna mark this bug report as the duplicate of [1]

[1] https://bugs.launchpad.net/tempest/+bug/1850568

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers