parameters: (self, daemon: DaemonDescription, is_failed_deploy: bool)
docstring: Called after the daemon is removed.
docstring_summary: Called after the daemon is removed.
docstring_tokens: Called after the daemon is removed .
function: def post_remove(self, daemon: DaemonDescription, is_failed_deploy: bool) -> None:
          """
          Called after the daemon is removed.
          """
          logger.debug(f'Post remove daemon {self.TYPE}.{daemon.daemon_id}')
  
          # remove config for dashboard iscsi gateways
          ret, out, err = self.mgr.mon_command({
              'prefix': 'dashboard iscsi-gateway-rm',
              'name': daemon.hostname,
          })
          if not ret:
              logger.info(f'{daemon.hostname} removed from iscsi gateways dashboard config')
  
          # needed to know if we have ssl stuff for iscsi in ceph config
          iscsi_config_dict = {}
          ret, iscsi_config, err = self.mgr.mon_command({
              'prefix': 'config-key dump',
              'key': 'iscsi',
          })
          if iscsi_config:
              iscsi_config_dict = json.loads(iscsi_config)
  
          # remove iscsi cert and key from ceph config
          for iscsi_key, value in iscsi_config_dict.items():
              if f'iscsi/client.{daemon.name()}/' in iscsi_key:
                  ret, out, err = self.mgr.mon_command({
                      'prefix': 'config-key rm',
                      'key': iscsi_key,
                  })
                  logger.info(f'{iscsi_key} removed from ceph config')
function_tokens: def post_remove ( self , daemon : DaemonDescription , is_failed_deploy : bool ) -> None : logger . debug ( f'Post remove daemon {self.TYPE}.{daemon.daemon_id}' ) # remove config for dashboard iscsi gateways ret , out , err = self . mgr . mon_command ( { 'prefix' : 'dashboard iscsi-gateway-rm' , 'name' : daemon . hostname , } ) if not ret : logger . info ( f'{daemon.hostname} removed from iscsi gateways dashboard config' ) # needed to know if we have ssl stuff for iscsi in ceph config iscsi_config_dict = { } ret , iscsi_config , err = self . mgr . mon_command ( { 'prefix' : 'config-key dump' , 'key' : 'iscsi' , } ) if iscsi_config : iscsi_config_dict = json . loads ( iscsi_config ) # remove iscsi cert and key from ceph config for iscsi_key , value in iscsi_config_dict . items ( ) : if f'iscsi/client.{daemon.name()}/' in iscsi_key : ret , out , err = self . mgr . mon_command ( { 'prefix' : 'config-key rm' , 'key' : iscsi_key , } ) logger . info ( f'{iscsi_key} removed from ceph config' )