]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: add require_jewel_osds before upgrading last hammer node 13161/head
authorNathan Cutler <ncutler@suse.com>
Fri, 27 Jan 2017 21:27:18 +0000 (22:27 +0100)
committerNathan Cutler <ncutler@suse.com>
Tue, 31 Jan 2017 11:17:28 +0000 (12:17 +0100)
Note: this commit was inspired by
http://github.com/ceph/ceph-qa-suite/commit/50758a4810794d265c5d36a71d1e16799251a00d

As of 10.2.4, when upgrading a cluster from hammer to jewel, after the last
node is upgraded the MON will put the cluster into HEALTH_WARN and say: "all
OSDs are running jewel or later but the 'require_jewel_osds' osdmap flag is not
set". The release notes say:

    This is a signal for the admin to do "ceph osd set require_jewel_osds" – by
    doing this, the upgrade path is complete and no more pre-Jewel OSDs may be
    added to the cluster.

Fixes: http://tracker.ceph.com/issues/18719
Signed-off-by: Nathan Cutler <ncutler@suse.com>
qa/suites/rados/singleton-nomsgr/all/lfn-upgrade-hammer.yaml
qa/suites/rados/singleton-nomsgr/all/lfn-upgrade-infernalis.yaml

index 26fc51128c4550d14c45c54b0e787d5750104420..b9c3146b12bcad28ef90f79cb250106f2aa19772 100644 (file)
@@ -84,7 +84,14 @@ tasks:
     - 'namespace'
     num_objects: 5
     name_length: [400, 800, 1600]
-- ceph.restart: [osd.2]
+- ceph.restart:
+    daemons: [osd.2]
+    wait-for-healthy: false
+    wait-for-osds-up: true
+- exec:
+    mon.a:
+    - sleep 60
+    - ceph osd set require_jewel_osds
 - ceph_manager.wait_for_clean: null
 - ceph_manager.do_pg_scrub:
     args: ['test', 0, 'scrub']
index 4c072c12192b70ce72fe9e5b296d1a5bc5017ff9..d7de28e154b715834e3d81cc7dc27d86b6110259 100644 (file)
@@ -84,7 +84,14 @@ tasks:
     - 'namespace'
     num_objects: 5
     name_length: [400, 800, 1600]
-- ceph.restart: [osd.2]
+- ceph.restart:
+    daemons: [osd.2]
+    wait-for-healthy: false
+    wait-for-osds-up: true
+- exec:
+    mon.a:
+    - sleep 60
+    - ceph osd set require_jewel_osds
 - ceph_manager.wait_for_clean: null
 - ceph_manager.do_pg_scrub:
     args: ['test', 0, 'scrub']