docs: def can_accomodate(self, logical_disk):
          """Check if this RAID array can accomodate the logical disk.
  
          This method uses hpssacli/ssacli command's option to check if the
          logical disk with desired size and RAID level can be created
          on this RAID array.
  
          :param logical_disk: Dictionary of logical disk to be created.
          :returns: True, if logical disk can be created on the RAID array
                    False, otherwise.
          """
          raid_level = constants.RAID_LEVEL_INPUT_TO_HPSSA_MAPPING.get(
              logical_disk['raid_level'], logical_disk['raid_level'])
          args = ("array", self.id, "create", "type=logicaldrive",
                  "raid=%s" % raid_level, "size=?")
  
          if logical_disk['size_gb'] != "MAX":
              desired_disk_size = logical_disk['size_gb']
          else:
              desired_disk_size = constants.MINIMUM_DISK_SIZE
  
          try:
              stdout, stderr = self.parent.execute_cmd(
                  *args, dont_transform_to_hpssa_exception=True)
          except processutils.ProcessExecutionError as ex:
              # hpssacli/ssacli returns error code 1 when RAID level of the
              # logical disk is not supported on the array.
              # If that's the case, just return saying the logical disk
              # cannot be accomodated in the array.
              # If exist_code is not 1, then it's some other error that we
              # don't expect to appear and hence raise it back.
              if ex.exit_code == 1:
                  return False
              else:
                  raise exception.HPSSAOperationError(reason=ex)
          except Exception as ex:
              raise exception.HPSSAOperationError(reason=ex)
  
          # TODO(rameshg87): This always returns in MB, but confirm with
          # HPSSA folks.
          match = re.search('Max: (\d+)', stdout)
          if not match:
              return False
  
          max_size_gb = int(match.group(1)) / 1024
          return desired_disk_size <= max_size_gb