]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/standalone: Fix test_activate_osd() test in ceph-helpers.sh 45653/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Fri, 25 Mar 2022 16:40:31 +0000 (22:10 +0530)
committerLaura Flores <lflores@redhat.com>
Fri, 25 Mar 2022 17:35:15 +0000 (12:35 -0500)
commitf8bae78956976eb41022af2d864d805106c0d6fd
treead48b4025f9ab0170752a91f8a8a2dd7f76c7b46
parent176d3a663f88f6e51d09abdde56cd96d52302757
qa/standalone: Fix test_activate_osd() test in ceph-helpers.sh

Modify test_activate_osd() to get the type of scheduler in use and then
verify the value of osd_max_backfills. This is because mclock scheduler
overrides this option to 1000 upon OSD initialization.

The test earlier used to pass because the OSD daemon was killed but not
marked down and upon being brought up, the wait for OSD up check was
passing quickly. But the OSD still didn't have the latest config values.

But now upon killing the OSD, the osd_fast_shutdown sequence notifies the
mon (see PR: https://github.com/ceph/ceph/pull/44807) and is marked down
and dead. Upon bringing it up, the wait for OSD up check takes a longer
time and this is sufficient for the config values to be updated. This
results in the correct values being read from the config 'Values' map.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
(cherry picked from commit 3aa2df2e0f6f5bafadc96fd72935e5cf8b2fcf17)
qa/standalone/ceph-helpers.sh