docs: def _create_raid_adapter_profile(irmc_info):
      """Attempt delete exist adapter then create new raid adapter on the server.
  
      :param irmc_info: node info
      :returns: result: a dict with following values:
                  {
                      'raid_config': <data of raid adapter profile>,
                      'warning': <warning message if there is>
                  }
      """
  
      try:
          # Attempt erase exist adapter on BM Server
          elcm_profile_delete(irmc_info, PROFILE_RAID_CONFIG)
      except ELCMProfileNotFound:
          # Ignore this error as it's not an error in this case
          pass
  
      session = elcm_profile_create(irmc_info, PARAM_PATH_RAID_CONFIG)
  
      # Monitoring currently session until done.
      session_timeout = irmc_info.get('irmc_raid_session_timeout',
                                      RAID_CONFIG_SESSION_TIMEOUT)
  
      return _process_session_data(irmc_info, 'CONFIG_RAID',
                                   session['Session']['Id'],
                                   session_timeout)