From a590c96538eb453627bdd5d70b4e95c63e3957ed Mon Sep 17 00:00:00 2001 From: James Page Date: Fri, 15 Nov 2024 12:09:44 +0000 Subject: [PATCH] Sync/rebuild for Dalmatian/Epoxy updates Refresh and rebuild charm for awareness of Dalmatian and Epoxy Cloud Archive releases. Change-Id: I2cf0cf4bcc3927ab815d5931eed028455135116f --- hooks/charmhelpers/contrib/openstack/utils.py | 2 ++ hooks/charmhelpers/core/hookenv.py | 5 ++++- hooks/charmhelpers/fetch/ubuntu.py | 20 +++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/hooks/charmhelpers/contrib/openstack/utils.py b/hooks/charmhelpers/contrib/openstack/utils.py index 82c28d8e..ac52d797 100644 --- a/hooks/charmhelpers/contrib/openstack/utils.py +++ b/hooks/charmhelpers/contrib/openstack/utils.py @@ -162,6 +162,8 @@ OPENSTACK_CODENAMES = OrderedDict([ ('2023.1', 'antelope'), ('2023.2', 'bobcat'), ('2024.1', 'caracal'), + ('2024.2', 'dalmatian'), + ('2025.1', 'epoxy'), ]) # The ugly duckling - must list releases oldest to newest diff --git a/hooks/charmhelpers/core/hookenv.py b/hooks/charmhelpers/core/hookenv.py index 370c3e8f..1e810a25 100644 --- a/hooks/charmhelpers/core/hookenv.py +++ b/hooks/charmhelpers/core/hookenv.py @@ -18,7 +18,10 @@ # Charm Helpers Developers import copy -from distutils.version import LooseVersion +try: + from distutils.version import LooseVersion +except ImportError: + from looseversion import LooseVersion from enum import Enum from functools import wraps from collections import namedtuple, UserDict diff --git a/hooks/charmhelpers/fetch/ubuntu.py b/hooks/charmhelpers/fetch/ubuntu.py index d0089eb7..fdcad025 100644 --- a/hooks/charmhelpers/fetch/ubuntu.py +++ b/hooks/charmhelpers/fetch/ubuntu.py @@ -254,6 +254,22 @@ CLOUD_ARCHIVE_POCKETS = { 'caracal/proposed': 'jammy-proposed/caracal', 'jammy-caracal/proposed': 'jammy-proposed/caracal', 'jammy-proposed/caracal': 'jammy-proposed/caracal', + # dalmatian + 'dalmatian': 'noble-updates/dalmatian', + 'noble-dalmatian': 'noble-updates/dalmatian', + 'noble-dalmatian/updates': 'noble-updates/dalmatian', + 'noble-updates/dalmatian': 'noble-updates/dalmatian', + 'dalmatian/proposed': 'noble-proposed/dalmatian', + 'noble-dalmatian/proposed': 'noble-proposed/dalmatian', + 'noble-proposed/dalmatian': 'noble-proposed/dalmatian', + # epoxy + 'epoxy': 'noble-updates/epoxy', + 'noble-epoxy': 'noble-updates/epoxy', + 'noble-epoxy/updates': 'noble-updates/epoxy', + 'noble-updates/epoxy': 'noble-updates/epoxy', + 'epoxy/proposed': 'noble-proposed/epoxy', + 'noble-epoxy/proposed': 'noble-proposed/epoxy', + 'noble-proposed/epoxy': 'noble-proposed/epoxy', # OVN 'focal-ovn-22.03': 'focal-updates/ovn-22.03', @@ -288,6 +304,8 @@ OPENSTACK_RELEASES = ( 'antelope', 'bobcat', 'caracal', + 'dalmatian', + 'epoxy', ) @@ -318,6 +336,8 @@ UBUNTU_OPENSTACK_RELEASE = OrderedDict([ ('lunar', 'antelope'), ('mantic', 'bobcat'), ('noble', 'caracal'), + ('oracular', 'dalmatian'), + ('plucky', 'epoxy'), ])