]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: rename "igw_id" to "nvmeof_gw_id"
authorAdam King <adking@redhat.com>
Wed, 2 Aug 2023 19:53:10 +0000 (15:53 -0400)
committerAdam King <adking@redhat.com>
Tue, 8 Aug 2023 14:50:16 +0000 (10:50 -0400)
"igw_id" was leftover from the nvmeof implementation
being taken heavily from the iscsi implementation. "igw"
means nothing in this context, so we can change the name.

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/services/nvmeof.py

index 01867bbc7eae4c5586eef6edeac9a42ac60e3288..7d2dd16cf0d6e3228e511e8f06c11c31d6b6fb62 100644 (file)
@@ -25,16 +25,16 @@ class NvmeofService(CephService):
         assert self.TYPE == daemon_spec.daemon_type
 
         spec = cast(NvmeofServiceSpec, self.mgr.spec_store[daemon_spec.service_name].spec)
-        igw_id = daemon_spec.daemon_id
+        nvmeof_gw_id = daemon_spec.daemon_id
         host_ip = self.mgr.inventory.get_addr(daemon_spec.host)
 
-        keyring = self.get_keyring_with_caps(self.get_auth_entity(igw_id),
+        keyring = self.get_keyring_with_caps(self.get_auth_entity(nvmeof_gw_id),
                                              ['mon', 'profile rbd',
                                               'osd', 'allow all tag rbd *=*'])
 
         # TODO: check if we can force jinja2 to generate dicts with double quotes instead of using json.dumps
         transport_tcp_options = json.dumps(spec.transport_tcp_options) if spec.transport_tcp_options else None
-        name = '{}.{}'.format(utils.name_to_config_section('nvmeof'), igw_id)
+        name = '{}.{}'.format(utils.name_to_config_section('nvmeof'), nvmeof_gw_id)
         rados_id = name[len('client.'):] if name.startswith('client.') else name
         context = {
             'spec': spec,