Fix bug: read child image failed when enabling immutable object cache and daemon down
Signed-off-by: Yin Congmin <congmin.yin@intel.com>
- 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:
+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:
"""
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__)
"""
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
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);