From 4a3c26cc6e6237be05c23b4711d5bd6c9e8c5f1b Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Thu, 17 Jul 2025 10:15:49 -0400 Subject: [PATCH] RBD unit tests: Set cfg.rados_connect_timeout Unit test jobs occasionally fail because this option is not set - always set it in the cfg initialization to match the options used in the driver. Change-Id: I29a3df4e1f50cbfbaf6758953eb350f00f447704 Signed-off-by: Eric Harney (cherry picked from commit 94c7ca0dad318177e5b15312f5d0b2a9e3a22929) (cherry picked from commit 7dbeffea8f557c7d7a2cb27b4e828891b78b5c1d) --- cinder/tests/unit/volume/drivers/test_rbd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cinder/tests/unit/volume/drivers/test_rbd.py b/cinder/tests/unit/volume/drivers/test_rbd.py index 02d45d492bd..30c4da34ac5 100644 --- a/cinder/tests/unit/volume/drivers/test_rbd.py +++ b/cinder/tests/unit/volume/drivers/test_rbd.py @@ -196,6 +196,7 @@ class RBDTestCase(test.TestCase): cfg.volume_backend_name = None cfg.volume_dd_blocksize = '1M' cfg.rbd_store_chunk_size = 4 + cfg.rados_connect_timeout = -1 cfg.rados_connection_retries = 3 cfg.rados_connection_interval = 5 cfg.backup_use_temp_snapshot = False