nova/nova/tests/unit/api
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
..
openstack Warn when starting services with older than N-1 computes 2021-01-05 17:11:43 +00:00
validation hardware: Enable 'hw:cpu_dedicated_mask' for creating a mixed instance 2020-07-21 15:18:41 +08:00
__init__.py
test_auth.py Deprecate [api]auth_strategy and noauth2 2019-10-09 15:16:07 -05:00
test_compute_req_id.py Migrate to oslo request_id middleware - mv 2.46 2017-05-27 10:11:44 +00:00
test_wsgi.py api: Remove 'Debug' middleware 2019-09-27 15:27:30 +01:00