]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephadm: do not start upgrades from Octopus 48285/head
authorAdam King <adking@redhat.com>
Wed, 28 Sep 2022 16:34:35 +0000 (12:34 -0400)
committerAdam King <adking@redhat.com>
Wed, 5 Oct 2022 11:13:15 +0000 (07:13 -0400)
now that we officially have v18 in main the upgrade
will fail if upgrading from Octopus (v15) to main
because they are now considered 3 major releases apart

Additionally adding more debugging to the end
of the upgrade tests as something like `ceph health detail`
can be very useful to see at the end of failed
upgrade tests

Fixes: https://tracker.ceph.com/issues/57695
Signed-off-by: Adam King <adking@redhat.com>
qa/suites/fs/upgrade/mds_upgrade_sequence/tasks/5-upgrade-with-workload.yaml
qa/suites/orch/cephadm/mgr-nfs-upgrade/1-bootstrap/16.2.0.yaml [new file with mode: 0644]
qa/suites/orch/cephadm/mgr-nfs-upgrade/1-bootstrap/octopus.yaml [deleted file]
qa/suites/orch/cephadm/mgr-nfs-upgrade/3-upgrade-with-workload.yaml
qa/suites/orch/cephadm/upgrade/1-start-distro/1-start-centos_8.stream_container-tools.yaml
qa/suites/orch/cephadm/upgrade/1-start-distro/1-start-ubuntu_20.04-15.2.9.yaml [deleted file]
qa/suites/orch/cephadm/upgrade/1-start-distro/1-start-ubuntu_20.04.yaml
qa/suites/orch/cephadm/upgrade/4-wait.yaml

index 2dc4eab612405260ee6f0292aec4843ce8bf1fee..392b1e66d7ed7a5f37574cc408601c9a6beb6b98 100644 (file)
@@ -15,8 +15,10 @@ upgrade-tasks:
     - cephadm.shell:
         env: [sha1]
         host.a:
-          - while ceph orch upgrade status | jq '.in_progress' | grep true && ! ceph orch upgrade status | jq '.message' | grep Error ; do ceph orch ps ; ceph versions ; ceph fs dump; ceph orch upgrade status ; sleep 30 ; done
+          - while ceph orch upgrade status | jq '.in_progress' | grep true && ! ceph orch upgrade status | jq '.message' | grep Error ; do ceph orch ps ; ceph versions ; ceph fs dump; ceph orch upgrade status ; ceph health detail ; sleep 30 ; done
           - ceph orch ps
+          - ceph orch upgrade status
+          - ceph health detail
           - ceph versions
           - echo "wait for servicemap items w/ changing names to refresh"
           - sleep 60
diff --git a/qa/suites/orch/cephadm/mgr-nfs-upgrade/1-bootstrap/16.2.0.yaml b/qa/suites/orch/cephadm/mgr-nfs-upgrade/1-bootstrap/16.2.0.yaml
new file mode 100644 (file)
index 0000000..beba374
--- /dev/null
@@ -0,0 +1,8 @@
+tasks:
+- cephadm:
+    roleless: true
+    image: quay.io/ceph/ceph:v16.2.0
+    cephadm_branch: v16.2.0
+    cephadm_git_url: https://github.com/ceph/ceph
+    # needed for v16.2.0 due to --skip-admin-label
+    avoid_pacific_features: true
diff --git a/qa/suites/orch/cephadm/mgr-nfs-upgrade/1-bootstrap/octopus.yaml b/qa/suites/orch/cephadm/mgr-nfs-upgrade/1-bootstrap/octopus.yaml
deleted file mode 100644 (file)
index 927c1d5..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-tasks:
-- cephadm:
-    roleless: true
-    image: quay.io/ceph/ceph:v15
-    cephadm_branch: octopus
-    cephadm_git_url: https://github.com/ceph/ceph
-    avoid_pacific_features: true
-    add_mons_via_daemon_add: true
index 362e0373416ea1478aaed9aa8c8fb1b47e273393..ec901a92eee44b649e1c4a65d4ebed88fe2ee87c 100644 (file)
@@ -16,12 +16,14 @@ upgrade-tasks:
   - cephadm.shell:
       env: [sha1]
       host.a:
-        - while ceph orch upgrade status | jq '.in_progress' | grep true && ! ceph orch upgrade status | jq '.message' | grep Error ; do ceph orch ps ; ceph versions ; ceph orch upgrade status ; sleep 30 ; done
+        - while ceph orch upgrade status | jq '.in_progress' | grep true && ! ceph orch upgrade status | jq '.message' | grep Error ; do ceph orch ps ; ceph versions ; ceph orch upgrade status ; ceph health detail ; sleep 30 ; done
         - ceph orch ps
         - ceph versions
         - echo "wait for servicemap items w/ changing names to refresh"
         - sleep 60
         - ceph orch ps
+        - ceph orch upgrade status
+        - ceph health detail
         - ceph versions
         - ceph versions | jq -e '.overall | length == 1'
         - ceph versions | jq -e '.overall | keys' | grep $sha1
index 0cbd7906424e1322267092411f1f8c735440f8b9..b792c28570650dc5c34d5cf28d05319a3dd5feaf 100644 (file)
@@ -9,8 +9,8 @@ tasks:
     - sudo dnf -y  module install container-tools
     - sudo cp /etc/containers/registries.conf.backup /etc/containers/registries.conf
 - cephadm:
-    image: quay.io/ceph/ceph:v15.2.0
-    cephadm_branch: v15.2.0
+    image: quay.io/ceph/ceph:v16.2.0
+    cephadm_branch: v16.2.0
     cephadm_git_url: https://github.com/ceph/ceph
     # avoid --cap-add=PTRACE + --privileged for older cephadm versions
     allow_ptrace: false
@@ -27,7 +27,6 @@ roles:
   - osd.2
   - osd.3
   - client.0
-#   - ceph.rgw.realm.zone.a # Disabled, needs 15.2.4 as an upgrade start
   - node-exporter.a
   - alertmanager.a
 - - mon.b
@@ -40,4 +39,4 @@ roles:
   - prometheus.a
   - grafana.a
   - node-exporter.b
-#  - ceph.iscsi.iscsi.a  # needs later start point
+  - ceph.iscsi.iscsi.a
diff --git a/qa/suites/orch/cephadm/upgrade/1-start-distro/1-start-ubuntu_20.04-15.2.9.yaml b/qa/suites/orch/cephadm/upgrade/1-start-distro/1-start-ubuntu_20.04-15.2.9.yaml
deleted file mode 100644 (file)
index 0fec8a3..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-os_type: ubuntu
-os_version: "20.04"
-
-tasks:
-- cephadm:
-    image: quay.io/ceph/ceph:v15.2.9
-    cephadm_branch: v15.2.9
-    cephadm_git_url: https://github.com/ceph/ceph
-    # avoid --cap-add=PTRACE + --privileged for older cephadm versions
-    allow_ptrace: false
-    # deploy additional mons the "old" (octopus) way
-    add_mons_via_daemon_add: true
-    avoid_pacific_features: true
-
-roles:
-- - mon.a
-  - mon.c
-  - mgr.y
-  - osd.0
-  - osd.1
-  - osd.2
-  - osd.3
-  - client.0
-#  - ceph.rgw.realm.zone.a  # CLI change in v16 pacific
-  - node-exporter.a
-  - alertmanager.a
-- - mon.b
-  - mgr.x
-  - osd.4
-  - osd.5
-  - osd.6
-  - osd.7
-  - client.1
-  - prometheus.a
-  - grafana.a
-  - node-exporter.b
-  - ceph.iscsi.iscsi.a
index ba81c537cd973bfa825cbe1ce637d6ac6b69c849..0ac9de15828034803bbc1d7367e55372a9ed8599 100644 (file)
@@ -3,8 +3,8 @@ os_version: "20.04"
 
 tasks:
 - cephadm:
-    image: quay.io/ceph/ceph:v15.2.0
-    cephadm_branch: v15.2.0
+    image: quay.io/ceph/ceph:v16.2.0
+    cephadm_branch: v16.2.0
     cephadm_git_url: https://github.com/ceph/ceph
     # avoid --cap-add=PTRACE + --privileged for older cephadm versions
     allow_ptrace: false
@@ -21,7 +21,6 @@ roles:
   - osd.2
   - osd.3
   - client.0
-#   - ceph.rgw.realm.zone.a # Disabled, needs 15.2.4 as an upgrade start
   - node-exporter.a
   - alertmanager.a
 - - mon.b
@@ -34,4 +33,4 @@ roles:
   - prometheus.a
   - grafana.a
   - node-exporter.b
-#  - ceph.iscsi.iscsi.a  # needs later start point
+  - ceph.iscsi.iscsi.a
index 58afe00c5be88782d17b36ffc39617a93b58cce3..4010c58ed77965295708fa5a04fc604bcc5b1722 100644 (file)
@@ -2,13 +2,15 @@ tasks:
 - cephadm.shell:
     env: [sha1]
     mon.a:
-      - while ceph orch upgrade status | jq '.in_progress' | grep true && ! ceph orch upgrade status | jq '.message' | grep Error ; do ceph orch ps ; ceph versions ; ceph orch upgrade status ; sleep 30 ; done
+      - while ceph orch upgrade status | jq '.in_progress' | grep true && ! ceph orch upgrade status | jq '.message' | grep Error ; do ceph orch ps ; ceph versions ; ceph orch upgrade status ; ceph health detail ; sleep 30 ; done
       - ceph orch ps
       - ceph versions
       - echo "wait for servicemap items w/ changing names to refresh"
       - sleep 60
       - ceph orch ps
       - ceph versions
+      - ceph orch upgrade status
+      - ceph health detail
       - ceph versions | jq -e '.overall | length == 1'
       - ceph versions | jq -e '.overall | keys' | grep $sha1
       - ceph orch ls | grep '^osd '