Merge "Fix using ODL versions other than oxygen" into stable/gambia
authorTim Rozet <trozet@redhat.com>
Sat, 8 Dec 2018 18:35:19 +0000 (18:35 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Sat, 8 Dec 2018 18:35:19 +0000 (18:35 +0000)
apex/builders/overcloud_builder.py
apex/common/constants.py
apex/settings/deploy_settings.py

index a74ec25..eab8fb6 100644 (file)
@@ -25,7 +25,12 @@ def inject_opendaylight(odl_version, image, tmp_dir, uc_ip,
     assert odl_version in con.VALID_ODL_VERSIONS
     # add repo
     if odl_version == 'master':
+        # last version in the constants is "master" so select 2nd to last
+        # odl package version has no "master" version
         odl_pkg_version = con.VALID_ODL_VERSIONS[-2]
+        # branch will be used to pull puppet-opendaylight. Since puppet-odl
+        # does not pull branch until later, we need to use master version of
+        # that if master ODL version is specified
         branch = odl_version
     else:
         odl_pkg_version = odl_version
index 790a9e3..02fafbd 100644 (file)
@@ -46,7 +46,8 @@ THT_DOCKER_ENV_DIR = {
 
 DEFAULT_OS_VERSION = 'queens'
 DEFAULT_ODL_VERSION = 'oxygen'
-VALID_ODL_VERSIONS = ['carbon', 'nitrogen', 'oxygen', 'master']
+VALID_ODL_VERSIONS = ['carbon', 'nitrogen', 'oxygen', 'fluorine',
+                      'neon', 'master']
 PUPPET_ODL_URL = 'https://git.opendaylight.org/gerrit/integration/packaging' \
                  '/puppet-opendaylight'
 DEBUG_OVERCLOUD_PW = 'opnfvapex'
index 00e6d6c..9f8a6f1 100644 (file)
@@ -129,9 +129,6 @@ class DeploySettings(dict):
                         "Invalid SRIOV interface name: {}".format(
                             self['deploy_options']['sriov']))
 
-        if self['deploy_options']['odl_version'] == 'oxygen':
-            self['deploy_options']['odl_version'] = 'master'
-
         if 'performance' in deploy_options:
             if not isinstance(deploy_options['performance'], dict):
                 raise DeploySettingsException("Performance deploy_option"