nova/nova/tests/unit/api/openstack
Balazs Gibizer 0c5ca351e2 Warn when starting services with older than N-1 computes
Nova services only support computes that are not older than
the previous major release. This patch introduces a check in the
service startup that warns at staring the service if too old computes
are detected.

This is a partial backport from master. As we agreed on the Wallaby PTG
[1] we would like to backport the check but we don't want to make it a
hard failure of the service startup as that felt too harsh for a stable
branch. So this patch changes the behavior from hard failure to emitting
a warning in the log.

This commit also contains two bugfixes from master squashed into it to
avoid merging broken code:

* Improve error handling during service level check
  Change-Id: I89cdf3852266ed93a2ac7cd6261fe269932026ac
  cherry picked from commit 3b44275868

* Restore retrying the RPC connection to conductor
  Change-Id: Iad0ba1a02868eebc2f43b1ac843fcc5096cd5c47
  cherry picked from commit 433bee58bc

  Conflicts:
      nova/service.py due to Ie15ec8299ae52ae8f5334d591ed3944e9585cf71
      being only a partial backport to stable/victoria

[1] https://etherpad.opendev.org/p/nova-wallaby-ptg

Closes-Bug: #1903545
Related-Bug: #1871482
Closes-Bug: #1904181

Change-Id: Ie15ec8299ae52ae8f5334d591ed3944e9585cf71
(cherry picked from commit aa7c6f8769)
2021-01-05 17:11:43 +00:00
..
compute tests: Remove '_FakeImageService' 2020-09-16 11:31:23 +01:00
__init__.py
common.py
fakes.py Allow versioned discovery unauthenticated 2020-04-03 21:24:28 +00:00
test_api_version_request.py Replace 'fake' with a real project ID 2019-09-30 14:40:20 +09:00
test_auth.py Noauth should also use request_id from compute_req_id.py 2018-04-04 14:21:01 -04:00
test_common.py nova-net: Remove layer of indirection in 'nova.network' 2020-01-15 14:57:49 +00:00
test_faults.py
test_legacy_v2_compatible_wrapper.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test_mapper.py
test_requestlog.py Warn when starting services with older than N-1 computes 2021-01-05 17:11:43 +00:00
test_wsgi.py Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00