]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: ensure the iscsi test can create iscsi daemon class
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 4 Nov 2023 21:57:59 +0000 (17:57 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 9 Nov 2023 19:50:46 +0000 (14:50 -0500)
Ensure that the iscsi test can call CephIscsi.create inside other
functions by passing a required, but fake, gateway config file.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/tests/test_cephadm.py

index f57bd11cab208a81166c1c9cc20f7abca8b6271f..3f6ed70a39cdf3976cefc00969111e06fdf77228 100644 (file)
@@ -1773,6 +1773,11 @@ if ! grep -qs /var/lib/ceph/9b9d7609-f4d5-4aba-94c8-effa764d96c9/iscsi.daemon_id
         """
         fsid = '9b9d7609-f4d5-4aba-94c8-effa764d96c9'
         with with_cephadm_ctx(['--image=ceph/ceph'], list_networks={}) as ctx:
+            ctx.config_blobs = {
+                'files': {
+                    'iscsi-gateway.cfg': 'portal',
+                },
+            }
             ctx.fsid = fsid
             c = _cephadm.get_container(
                 ctx, _cephadm.DaemonIdentity(fsid, 'iscsi', 'something')