Fixes https://tracker.ceph.com/issues/70821
Due to the pagination the host list is being fetched from orchestrator which caused a regression as via orchestrator list ceph version is always marked empty.
Caused by https://github.com/ceph/ceph/pull/52154
Also fixed tests , as the new version addition causing whole json object mock to fail in tests
Signed-off-by: Afreen Misbah <afreen@ibm.com>
(cherry picked from commit
1aa74cf3fce6394ad08e83e91a90923d983b03c5)
hosts = [
merge_dicts(
{
- 'ceph_version': '',
+ 'ceph_version': mgr.version,
'services': [],
'sources': {
'ceph': False,
def test_get_3(self):
mgr.list_servers.return_value = []
+ mgr.version = 'ceph version 16.0.0-3151-gf202994fcf'
with patch_orch(True, hosts=[HostSpec('node1')]):
self._get('{}/node1'.format(self.URL_HOST))
def test_populate_service_instances(self):
mgr.list_servers.return_value = []
+ mgr.version = 'ceph version 16.0.0-3151-gf202994fcf'
node1_daemons = [
DaemonDescription(