Comment 2 for bug 2033428

Revision history for this message
Luciano Lo Giudice (lmlogiudice) wrote :

Test plan:

We start by cloning the openstack-tester repo:

git clone https://github.com/openstack-charmers/charmed-openstack-tester

Afterwards, we apply the following diff to the file "tests/distro-regression/tests/bundles/jammy-antelope.yaml":

```
diff --git a/tests/distro-regression/tests/bundles/jammy-antelope.yaml b/tests/distro-regression/tests/bundles/jammy-antelope.yaml
index 3b80ab9..4ded2a5 100644
--- a/tests/distro-regression/tests/bundles/jammy-antelope.yaml
+++ b/tests/distro-regression/tests/bundles/jammy-antelope.yaml
@@ -3,13 +3,15 @@ variables:
   openstack-origin: &openstack-origin cloud:jammy-antelope/proposed
   retrofit-uca-pocket: &retrofit-uca-pocket antelope
   openstack-channel: &openstack-channel 2023.1/edge
- ceph-channel: &ceph-channel quincy/edge
+ ceph-channel: &ceph-channel latest/edge
   ovn-channel: &ovn-channel 23.03/edge
   mysql-channel: &mysql-channel 8.0/edge
   rabbitmq-channel: &rabbitmq-channel 3.9/edge
   memcached-channel: &memcached-channel latest/edge
   vault-channel: &vault-channel 1.8/edge

+local_overlay_enabled: false
+
 series: &series jammy
 applications:
   aodh:
@@ -46,21 +48,21 @@ applications:
     num_units: 1
     charm: ch:ceph-fs
     options:
- source: *source
+ source: 'ppa:lmlogiudice/ceph-reef-jammy'
     channel: *ceph-channel
   ceph-mon:
     charm: ch:ceph-mon
     num_units: 3
     options:
       expected-osd-count: 3
- source: *source
+ source: 'ppa:lmlogiudice/ceph-reef-jammy'
     constraints: mem=1024
     channel: *ceph-channel
   ceph-osd:
     charm: ch:ceph-osd
     num_units: 3
     options:
- source: *source
+ source: 'ppa:lmlogiudice/ceph-reef-jammy'
     storage:
       osd-devices: cinder,10G
     constraints: mem=4096
```

This changes are meant to make the ceph units use the Reef packages from our PPA.

We then deploy the model by running:

`tox -e func-target -- jammy-antelope`

Eventually, the model will settle and run the tests, resulting in something like:

======
Totals
======
Ran: 179 tests in 729.1815 sec.
 - Passed: 167
 - Skipped: 12
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 841.2089 sec.

We can further check that Reef (18.2.0) is installed by running the following:

```
juju ssh ceph-mon/0
sudo ceph -v
```

The output will be something like the following:

ceph version 18.2.0 (5dd24139a1eada541a3bc16b6941c5dde975e26d) reef (stable)