From 92a40c9c1ca80c709009b3d70ca78ece807a50d3 Mon Sep 17 00:00:00 2001 From: Ruby Loo Date: Fri, 18 Aug 2017 09:51:48 -0400 Subject: [PATCH] Add 9.1 to release_mappings This adds release '9.1' to the list of releases for doing rolling upgrades. This also changes the 'pike' release to point to '9.1' since we are considering 9.1 as the official pike release. In actuality, it makes no difference since the rpc & object versions are the same for both 9.0 and 9.1 Change-Id: Id7913a56cd0848a68708a91e6ad055bdee08b465 --- etc/ironic/ironic.conf.sample | 2 +- ironic/common/release_mappings.py | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/etc/ironic/ironic.conf.sample b/etc/ironic/ironic.conf.sample index ce5dc10200..d0c36c86ee 100644 --- a/etc/ironic/ironic.conf.sample +++ b/etc/ironic/ironic.conf.sample @@ -368,7 +368,7 @@ # (default), leave it unset and the latest versions of RPC # communication and database objects will be used. (string # value) -# Allowed values: pike, ocata, 9.0, 8.0, 7.0 +# Allowed values: pike, ocata, 9.1, 9.0, 8.0, 7.0 #pin_release_version = # Path to the rootwrap configuration file to use for running diff --git a/ironic/common/release_mappings.py b/ironic/common/release_mappings.py index cae69eb301..d33e345646 100644 --- a/ironic/common/release_mappings.py +++ b/ironic/common/release_mappings.py @@ -90,6 +90,18 @@ RELEASE_MAPPING = { 'VolumeTarget': ['1.0'], } }, + '9.1': { + 'rpc': '1.41', + 'objects': { + 'Node': ['1.21'], + 'Conductor': ['1.2'], + 'Chassis': ['1.3'], + 'Port': ['1.7'], + 'Portgroup': ['1.3'], + 'VolumeConnector': ['1.0'], + 'VolumeTarget': ['1.0'], + } + }, 'master': { 'rpc': '1.41', 'objects': { @@ -107,16 +119,17 @@ RELEASE_MAPPING = { # NOTE(xek): Assign each named release to the appropriate semver. # # Just before we do a new named release (more specifically, create -# a stable/ branch), add a mapping for the new -# named release. This is needed; otherwise CI (grenade) that tests -# old/new (i.e., new-release -> master) will fail. +# a stable/ branch), add a mapping for the new named +# release. This is needed; otherwise CI: a unit test (common. +# ReleaseMappingsTestCase.test_contains_current_release_entry()) +# and grenade that tests old/new (new-release -> master) will fail. # # Just after we do a new named release, delete the oldest named # release (that we are no longer supporting for a rolling upgrade). # # There should be at most two named mappings here. RELEASE_MAPPING['ocata'] = RELEASE_MAPPING['7.0'] -RELEASE_MAPPING['pike'] = RELEASE_MAPPING['9.0'] +RELEASE_MAPPING['pike'] = RELEASE_MAPPING['9.1'] # List of available versions with named versions first; 'master' is excluded. RELEASE_VERSIONS = sorted(set(RELEASE_MAPPING) - {'master'}, reverse=True)