Add the mapping for Reef

Change-Id: Id29d9a5ebc55b7fef716406527648fbd98278ffd
This commit is contained in:
Luciano Lo Giudice 2023-09-13 12:50:47 -03:00
parent 571659f4a3
commit 77f73ae97c
3 changed files with 4 additions and 2 deletions

View File

@ -907,7 +907,7 @@ def process_requests_v1(reqs):
log(msg, level=ERROR)
return {'exit-code': 1, 'stderr': msg}
if type(ret) == dict and 'exit-code' in ret:
if isinstance(ret, dict) and 'exit-code' in ret:
return ret
return {'exit-code': 0}

View File

@ -3231,6 +3231,7 @@ UPGRADE_PATHS = collections.OrderedDict([
('nautilus', 'octopus'),
('octopus', 'pacific'),
('pacific', 'quincy'),
('quincy', 'reef'),
])
# Map UCA codenames to Ceph codenames
@ -3254,7 +3255,7 @@ UCA_CODENAME_MAP = {
'yoga': 'quincy',
'zed': 'quincy',
'antelope': 'quincy',
'bobcat': 'quincy',
'bobcat': 'reef',
}

View File

@ -1085,6 +1085,7 @@ class CephTestCase(unittest.TestCase):
'nautilus -> octopus',
'octopus -> pacific',
'pacific -> quincy',
'quincy -> reef',
])
self.assertEqual(utils.pretty_print_upgrade_paths(), expected)