powerflex_fault_set (Data Source)

This datasource is used to query the existing fault set from the PowerFlex array. The information fetched from this datasource can be used for getting the details / for further processing in resource block.

Example Usage

/*
Copyright (c) 2023-2024 Dell Inc., or its subsidiaries. All Rights Reserved.

Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/


Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

# commands to run this tf file : terraform init && terraform apply --auto-approve

# Get all fault set details present on the cluster
data "powerflex_fault_set" "example1" {
}

# Get fault set details using fault set IDs
data "powerflex_fault_set" "example2" {
  fault_set_ids = ["FaultSet_ID1", "FaultSet_ID2"]
}

# Get fault set details using fault set names
data "powerflex_fault_set" "example3" {
  fault_set_names = ["FaultSet_Name1", "FaultSet_Name2"]
}

output "fault_set_result" {
  value = data.powerflex_fault_set.example1.fault_set_details
}

After the successful execution of above said block, we can see the output by executing terraform output command. Also, we can fetch information via the variable: data.powerflex_fault_set.datasource_block_name.attribute_name where datasource_block_name is the name of the data source block and attribute_name is the attribute which user wants to fetch.

Schema

Optional

  • fault_set_ids (Set of String) List of fault set IDs
  • fault_set_names (Set of String) List of fault set names

Read-Only

  • fault_set_details (Attributes Set) Fault set details (see below for nested schema)
  • id (String) Placeholder attribute.

Nested Schema for fault_set_details

Read-Only:

  • id (String) Fault set ID
  • links (Attributes List) Specifies the links asscociated with fault set (see below for nested schema)
  • name (String) Fault set name
  • protection_domain_id (String) Protection Domain ID
  • sds_details (Attributes List) List of fetched SDS. (see below for nested schema)

Read-Only:

  • href (String) Specifies the exact path to fetch the details
  • rel (String) Specifies the relationship with the fault set

Nested Schema for fault_set_details.sds_details

Read-Only:

  • authentication_error (String) Authentication error.
  • certificate_info (Attributes) Certificate Information. (see below for nested schema)
  • configured_drl_mode (String) Configured DRL mode.
  • drl_mode (String) DRL mode.
  • fault_set_id (String) Fault set ID.
  • fgl_metadata_cache_size (Number) FGL metadata cache size.
  • fgl_metadata_cache_state (String) FGL metadata cache state.
  • fgl_num_concurrent_writes (Number) FGL concurrent writes.
  • id (String) SDS ID.
  • ip_list (Attributes List) List of IPs associated with SDS. (see below for nested schema)
  • last_upgrade_time (Number) Last time SDS was upgraded.
  • links (Attributes List) Specifies the links asscociated with SDS. (see below for nested schema)
  • maintenance_state (String) Maintenance state.
  • maintenance_type (String) Maintenance type.
  • mdm_connection_state (String) MDM connection state.
  • membership_state (String) Membership state.
  • name (String) SDS name.
  • num_io_buffers (Number) Number of IO buffers.
  • num_restarts (Number) Number of restarts.
  • on_vmware (Boolean) Presence on VMware.
  • performance_profile (String) Performance profile.
  • port (Number) SDS port.
  • raid_controllers (Attributes List) RAID controllers information. (see below for nested schema)
  • rfcache_enabled (Boolean) Whether RF cache is enabled or not.
  • rfcache_error_api_version_mismatch (Boolean) RF cache error for API version mismatch.
  • rfcache_error_device_does_not_exist (Boolean) RF cache error for device does not exist.
  • rfcache_error_inconsistent_cache_configuration (Boolean) RF cache error for inconsistent cache configuration.
  • rfcache_error_inconsistent_source_configuration (Boolean) RF cache error for inconsistent source configuration.
  • rfcache_error_invalid_driver_path (Boolean) RF cache error for invalid driver path.
  • rfcache_error_low_resources (Boolean) RF cache error for low resources.
  • rmcache_enabled (Boolean) Whether RM cache is enabled or not.
  • rmcache_frozen (Boolean) Indicates whether the Read RAM Cache is currently temporarily not in use.
  • rmcache_memory_allocation_state (String) Indicates the state of the memory allocation process. Can be one of in progress and done.
  • rmcache_size (Number) Indicates the size of Read RAM Cache on the specified SDS in KB.
  • sds_configuration_failure (Attributes) SDS configuration failure windows. (see below for nested schema)
  • sds_decoupled (Attributes) SDS decoupled windows. (see below for nested schema)
  • sds_receive_buffer_allocation_failures (Attributes) SDS receive buffer allocation failure windows. (see below for nested schema)
  • sds_state (String) SDS state.
  • software_version_info (String) Software version information.

Nested Schema for fault_set_details.sds_details.certificate_info

Read-Only:

  • issuer (String) Certificate issuer.
  • subject (String) Certificate subject.
  • thumbprint (String) Certificate thumbprint.
  • valid_from (String) The start date of the certificate validity.
  • valid_from_asn1_format (String) The start date of the Asn1 format.
  • valid_to (String) The end date of the certificate validity.
  • valid_to_asn1_format (String) The end date of the Asn1 format.

Nested Schema for fault_set_details.sds_details.ip_list

Read-Only:

  • ip (String) SDS IP.
  • role (String) SDS IP role.

Read-Only:

  • href (String) Specifies the exact path to fetch the details.
  • rel (String) Specifies the relationship with the SDS.

Nested Schema for fault_set_details.sds_details.raid_controllers

Read-Only:

  • battery_status (String) Battery status
  • driver_name (String) Driver name.
  • driver_version (String) Driver version.
  • firmware_version (String) Firmware version.
  • model_name (String) Model name.
  • pci_address (String) PCI address.
  • serial_number (String) Serial number.
  • status (String) RAID status.
  • vendor_name (String) Vendor name.

Nested Schema for fault_set_details.sds_details.sds_configuration_failure

Read-Only:

Nested Schema for fault_set_details.sds_details.sds_configuration_failure.long_window

Read-Only:

  • last_oscillation_count (Number) Last oscillation count.
  • last_oscillation_time (Number) Last oscillation time.
  • max_failures_count (Number) Maximum failures count.
  • threshold (Number) Threshold.
  • window_size_in_sec (Number) Window Size in seconds.

Nested Schema for fault_set_details.sds_details.sds_configuration_failure.medium_window

Read-Only:

  • last_oscillation_count (Number) Last oscillation count.
  • last_oscillation_time (Number) Last oscillation time.
  • max_failures_count (Number) Maximum failures count.
  • threshold (Number) Threshold.
  • window_size_in_sec (Number) Window Size in seconds.

Nested Schema for fault_set_details.sds_details.sds_configuration_failure.short_window

Read-Only:

  • last_oscillation_count (Number) Last oscillation count.
  • last_oscillation_time (Number) Last oscillation time.
  • max_failures_count (Number) Maximum failures count.
  • threshold (Number) Threshold.
  • window_size_in_sec (Number) Window Size in seconds.

Nested Schema for fault_set_details.sds_details.sds_decoupled

Read-Only:

Nested Schema for fault_set_details.sds_details.sds_decoupled.long_window

Read-Only:

  • last_oscillation_count (Number) Last oscillation count.
  • last_oscillation_time (Number) Last oscillation time.
  • max_failures_count (Number) Maximum failures count.
  • threshold (Number) Threshold.
  • window_size_in_sec (Number) Window Size in seconds.

Nested Schema for fault_set_details.sds_details.sds_decoupled.medium_window

Read-Only:

  • last_oscillation_count (Number) Last oscillation count.
  • last_oscillation_time (Number) Last oscillation time.
  • max_failures_count (Number) Maximum failures count.
  • threshold (Number) Threshold.
  • window_size_in_sec (Number) Window Size in seconds.

Nested Schema for fault_set_details.sds_details.sds_decoupled.short_window

Read-Only:

  • last_oscillation_count (Number) Last oscillation count.
  • last_oscillation_time (Number) Last oscillation time.
  • max_failures_count (Number) Maximum failures count.
  • threshold (Number) Threshold.
  • window_size_in_sec (Number) Window Size in seconds.

Nested Schema for fault_set_details.sds_details.sds_receive_buffer_allocation_failures

Read-Only:

Nested Schema for fault_set_details.sds_details.sds_receive_buffer_allocation_failures.long_window

Read-Only:

  • last_oscillation_count (Number) Last oscillation count.
  • last_oscillation_time (Number) Last oscillation time.
  • max_failures_count (Number) Maximum failures count.
  • threshold (Number) Threshold.
  • window_size_in_sec (Number) Window Size in seconds.

Nested Schema for fault_set_details.sds_details.sds_receive_buffer_allocation_failures.medium_window

Read-Only:

  • last_oscillation_count (Number) Last oscillation count.
  • last_oscillation_time (Number) Last oscillation time.
  • max_failures_count (Number) Maximum failures count.
  • threshold (Number) Threshold.
  • window_size_in_sec (Number) Window Size in seconds.

Nested Schema for fault_set_details.sds_details.sds_receive_buffer_allocation_failures.short_window

Read-Only:

  • last_oscillation_count (Number) Last oscillation count.
  • last_oscillation_time (Number) Last oscillation time.
  • max_failures_count (Number) Maximum failures count.
  • threshold (Number) Threshold.
  • window_size_in_sec (Number) Window Size in seconds.