nova-status: require placement >= 1.4
Since Ia1a0066dc30025c02553584a077365b28d8ff80e FilterScheduler will no longer fall back to not using placement API. We need to require version 1.4 to prevent NoValidHost errors. Closes-Bug: #1669433 Change-Id: I6666cb2f558ed1f4e83f21e0317a206b07c25134
This commit is contained in:
parent
edf51119fa
commit
a17851ab0a
|
@ -95,6 +95,11 @@ Upgrade
|
||||||
Placement service. More information on the Placement service can be found
|
Placement service. More information on the Placement service can be found
|
||||||
at: `<http://docs.openstack.org/developer/nova/placement.html>`_
|
at: `<http://docs.openstack.org/developer/nova/placement.html>`_
|
||||||
|
|
||||||
|
**16.0.0 (Pike)**
|
||||||
|
|
||||||
|
* Checks for the Placement API are modified to require version 1.4, that
|
||||||
|
is needed in Pike and further for nova-scheduler to work correctly.
|
||||||
|
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
========
|
========
|
||||||
|
|
|
@ -201,10 +201,9 @@ class UpgradeCommands(object):
|
||||||
try:
|
try:
|
||||||
versions = self._placement_get("/")
|
versions = self._placement_get("/")
|
||||||
max_version = float(versions["versions"][0]["max_version"])
|
max_version = float(versions["versions"][0]["max_version"])
|
||||||
# The required version is a bit tricky but we know that we at least
|
# NOTE(rpodolyaka): 1.4 is needed in Pike and further as
|
||||||
# need 1.0 for Newton computes. This minimum might change in the
|
# FilterScheduler will no longer fall back to not using placement
|
||||||
# future.
|
needs_version = 1.4
|
||||||
needs_version = 1.0
|
|
||||||
if max_version < needs_version:
|
if max_version < needs_version:
|
||||||
msg = (_('Placement API version %(needed)s needed, '
|
msg = (_('Placement API version %(needed)s needed, '
|
||||||
'you have %(current)s.') %
|
'you have %(current)s.') %
|
||||||
|
|
|
@ -210,7 +210,7 @@ class TestPlacementCheck(test.NoDBTestCase):
|
||||||
"versions": [
|
"versions": [
|
||||||
{
|
{
|
||||||
"min_version": "1.0",
|
"min_version": "1.0",
|
||||||
"max_version": "1.0",
|
"max_version": "1.4",
|
||||||
"id": "v1.0"
|
"id": "v1.0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -231,7 +231,7 @@ class TestPlacementCheck(test.NoDBTestCase):
|
||||||
}
|
}
|
||||||
res = self.cmd._check_placement()
|
res = self.cmd._check_placement()
|
||||||
self.assertEqual(status.UpgradeCheckCode.FAILURE, res.code)
|
self.assertEqual(status.UpgradeCheckCode.FAILURE, res.code)
|
||||||
self.assertIn('Placement API version 1.0 needed, you have 0.9',
|
self.assertIn('Placement API version 1.4 needed, you have 0.9',
|
||||||
res.details)
|
res.details)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,4 +3,6 @@ upgrade:
|
||||||
- In Ocata, the nova-scheduler would fall back to not calling the
|
- In Ocata, the nova-scheduler would fall back to not calling the
|
||||||
placement service during instance boot if old computes were
|
placement service during instance boot if old computes were
|
||||||
running. That compatibility mode is no longer present in Pike, and
|
running. That compatibility mode is no longer present in Pike, and
|
||||||
as such, the scheduler fully depends on the placement service.
|
as such, the scheduler fully depends on the placement service.
|
||||||
|
This effectively means that in Pike Nova requires Placement API
|
||||||
|
version 1.4 (Ocata).
|
||||||
|
|
Loading…
Reference in New Issue