From a465929ecedd78fd37e81d35c2134ef053da5b88 Mon Sep 17 00:00:00 2001 From: Peter Sabaini Date: Fri, 10 May 2024 11:13:34 +0200 Subject: [PATCH] Fixes for ceph squid Make caracal the default source. Add python3-packaging package as a tactical fix for bug #2064717. Add a local caracal functest. func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1209 Change-Id: I1328d2c6221c77bfe0f2420af770cc5064394c57 --- .zuul.yaml | 1 - config.yaml | 2 +- hooks/ceph_hooks.py | 6 +++++- osci.yaml | 6 +++--- ...my-antelope.yaml => local-jammy-caracal.yaml} | 16 ++++++++-------- tests/tests.yaml | 4 +--- 6 files changed, 18 insertions(+), 17 deletions(-) rename tests/bundles/{local-jammy-antelope.yaml => local-jammy-caracal.yaml} (94%) diff --git a/.zuul.yaml b/.zuul.yaml index 69974080..fd20909e 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,5 +1,4 @@ - project: templates: - - openstack-python3-charm-yoga-jobs - openstack-python3-charm-jobs - openstack-cover-jobs diff --git a/config.yaml b/config.yaml index 7d6954bb..838261fb 100644 --- a/config.yaml +++ b/config.yaml @@ -5,7 +5,7 @@ options: description: OSD debug level. Max is 20. source: type: string - default: bobcat + default: caracal description: | Optional configuration to support use of additional sources such as: . diff --git a/hooks/ceph_hooks.py b/hooks/ceph_hooks.py index ae5815a5..d37c4d16 100755 --- a/hooks/ceph_hooks.py +++ b/hooks/ceph_hooks.py @@ -321,7 +321,11 @@ def install_udev_rules(): def install(): add_source(config('source'), config('key')) apt_update(fatal=True) - apt_install(packages=ceph.determine_packages(), fatal=True) + packages = ceph.determine_packages() + # TODO(chrome0): temp. fix for bug #2064717; remove once this has been + # fixed + packages.append('python3-packaging') + apt_install(packages=packages, fatal=True) if config('autotune'): log('The autotune config is deprecated and planned ' 'for removal in the next release.', level=WARNING) diff --git a/osci.yaml b/osci.yaml index d78147f4..26d8e8b8 100644 --- a/osci.yaml +++ b/osci.yaml @@ -10,13 +10,13 @@ charmcraft_channel: 2.x/stable check: jobs: - - new-install-jammy-antelope + - new-install-jammy-caracal - job: - name: new-install-jammy-antelope + name: new-install-jammy-caracal parent: func-target dependencies: - osci-lint - charm-build - tox-py38 vars: - tox_extra_args: '-- install:local-jammy-antelope' + tox_extra_args: '-- install:local-jammy-caracal' diff --git a/tests/bundles/local-jammy-antelope.yaml b/tests/bundles/local-jammy-caracal.yaml similarity index 94% rename from tests/bundles/local-jammy-antelope.yaml rename to tests/bundles/local-jammy-caracal.yaml index 48a8b36a..a7f59e04 100644 --- a/tests/bundles/local-jammy-antelope.yaml +++ b/tests/bundles/local-jammy-caracal.yaml @@ -1,5 +1,5 @@ variables: - openstack-origin: &openstack-origin cloud:jammy-antelope + openstack-origin: &openstack-origin cloud:jammy-caracal series: jammy @@ -94,7 +94,7 @@ applications: openstack-origin: *openstack-origin to: - '10' - channel: 2023.1/edge + channel: latest/edge nova-compute: charm: ch:nova-compute @@ -103,7 +103,7 @@ applications: openstack-origin: *openstack-origin to: - '11' - channel: 2023.1/edge + channel: latest/edge glance: expose: True @@ -113,7 +113,7 @@ applications: openstack-origin: *openstack-origin to: - '12' - channel: 2023.1/edge + channel: latest/edge cinder: expose: True @@ -125,11 +125,11 @@ applications: glance-api-version: '2' to: - '13' - channel: 2023.1/edge + channel: latest/edge cinder-ceph: charm: ch:cinder-ceph - channel: 2023.1/edge + channel: latest/edge nova-cloud-controller: expose: True @@ -139,7 +139,7 @@ applications: openstack-origin: *openstack-origin to: - '14' - channel: 2023.1/edge + channel: latest/edge placement: charm: ch:placement @@ -148,7 +148,7 @@ applications: openstack-origin: *openstack-origin to: - '15' - channel: 2023.1/edge + channel: latest/edge relations: - - 'nova-compute:amqp' diff --git a/tests/tests.yaml b/tests/tests.yaml index 7a5802ab..ec5877dd 100644 --- a/tests/tests.yaml +++ b/tests/tests.yaml @@ -1,14 +1,12 @@ charm_name: ceph-osd gate_bundles: - - focal-xena - - focal-yoga - jammy-yoga - jammy-bobcat - jammy-caracal smoke_bundles: - - jammy-antelope + - jammy-caracal configure: - install: