-
Notifications
You must be signed in to change notification settings - Fork 36
67 lines (49 loc) · 1.68 KB
/
r2s-edge-upgrade.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Upgrade a r/stable cluster to squid/edge
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: null
jobs:
r2s-upgrade-test:
name: Test reef/stable to squid/edge upgrades
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Copy utils
run: cp tests/scripts/actionutils.sh $HOME
- name: Clear FORWARD firewall rules
run: ~/actionutils.sh cleaript
- name: Free disk
run: ~/actionutils.sh free_runner_disk
- name: Install dependencies
run: ~/actionutils.sh setup_lxd
- name: Create containers with loopback devices
run: ~/actionutils.sh create_containers public
- name: Install reef stable from store
run: ~/actionutils.sh install_store reef/stable
- name: Bootstrap
run: ~/actionutils.sh bootstrap_head
- name: Setup cluster
run: ~/actionutils.sh cluster_nodes
- name: Add 3 OSDs
run: |
for c in node-wrk0 node-wrk1 node-wrk2 ; do
~/actionutils.sh add_osd_to_node $c
done
~/actionutils.sh headexec wait_for_osds 3
- name: Enable RGW
run: ~/actionutils.sh headexec enable_rgw
- name: Exercise RGW
run: ~/actionutils.sh headexec testrgw
- name: Upgrade to edge
run: ~/actionutils.sh refresh_snap squid/edge
- name: Wait until 3 OSDs are up
run: ~/actionutils.sh headexec wait_for_osds 3
- name: Verify config
run: ~/actionutils.sh test_ceph_conf
- name: Verify health
run: ~/actionutils.sh headexec verify_health
- name: Exercise RGW again
run: ~/actionutils.sh headexec testrgw