]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd/image: fix immutable object cache read failed bug when daemon down
authorYin Congmin <congmin.yin@intel.com>
Wed, 10 Jun 2020 06:52:08 +0000 (14:52 +0800)
committerJason Dillaman <dillaman@redhat.com>
Wed, 1 Jul 2020 18:19:59 +0000 (14:19 -0400)
Fix bug: read child image failed when enabling immutable object cache and daemon down

Signed-off-by: Yin Congmin <congmin.yin@intel.com>
qa/suites/rbd/immutable-object-cache/pool/ceph_and_immutable_object_cache.yaml
qa/suites/rbd/immutable-object-cache/workloads/qemu_on_immutable_object_cache_and_thrash.yaml
qa/tasks/immutable_object_cache.py
qa/tasks/immutable_object_cache_thrash.py
src/librbd/image/OpenRequest.cc

index 540e33d064723d37313653025e574387c189dfed..e977c1ba6f25be2ff172fa2964ccd790cbd497c7 100644 (file)
@@ -4,8 +4,9 @@ tasks:
 - ceph:
     conf:
       client:
-        rbd_parent_cache_enabled: true
-        immutable object cache path: /tmp/ceph-immutable-object-cache
-        immutable object cache max size: 10G
+        rbd parent cache enabled: true
+        rbd plugins: parent_cache
+        immutable_object_cache_path: /tmp/ceph-immutable-object-cache
+        immutable_object_cache_max_size: 10G
 - immutable_object_cache:
     client.0:
index 30cb9f0a16a0267ba4a5e04cd13beedadf022115..33a5cf0b17557a04d1aca90505e24af0d92b5ae4 100644 (file)
@@ -1,11 +1,11 @@
+tasks:
 - qemu:
     client.0:
       clone: true
       test: qa/run_xfstests_qemu.sh
-      image_url: http://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-amd64.img
+      type: block
       cpus: 4
       memory: 4096
       disks: 3
-tasks:
 - immutable_object_cache_thrash:
     client.0:
index 9bbb5659d44237d7e7118ca666f2507882b7e94e..0635c9702902a5bdbe3267fb3b37b921e0bdae30 100644 (file)
@@ -1,19 +1,12 @@
 """
 immutable object cache task
 """
-from io import StringIO
-
 import contextlib
 import logging
-import os
-import yaml
-import time
 
 from teuthology import misc as teuthology
 from teuthology import contextutil
-from tasks import rbd
 from teuthology.orchestra import run
-from teuthology.config import config as teuth_config
 
 log = logging.getLogger(__name__)
 
index 46d2ca6ea09b5b00f541d5f0740fd4ffd934e79b..0bf3ad3a0406600e452e565cbf2133b966edea38 100644 (file)
@@ -1,19 +1,12 @@
 """
 immutable object cache thrash task
 """
-from io import StringIO
-
 import contextlib
 import logging
-import os
-import yaml
-import time
 
 from teuthology import misc as teuthology
 from teuthology import contextutil
-from tasks import rbd
 from teuthology.orchestra import run
-from teuthology.config import config as teuth_config
 
 DEFAULT_KILL_DAEMON_TIME = 2
 DEFAULT_DEAD_TIME = 30
index 9f03857770fc9091c6bb788acdff478559db2bf0..ccca85ff476ca7453a576c2b9280ef10f54f5486 100644 (file)
@@ -544,8 +544,6 @@ Context* OpenRequest<I>::handle_init_plugin_registry(int *result) {
   if (*result < 0) {
     lderr(cct) << "failed to initialize plugin registry: "
                << cpp_strerror(*result) << dendl;
-    send_close_image(*result);
-    return nullptr;
   }
 
   return send_init_cache(result);