Skip to content

Latest commit

 

History

History
360 lines (260 loc) · 15.6 KB

File metadata and controls

360 lines (260 loc) · 15.6 KB
title linkTitle page_title subcategory description
powerflex_fault_set data source
powerflex_fault_set
powerflex_fault_set Data Source - powerflex
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.

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" "all" {
}

output "fault_set_result_all" {
  value = data.powerflex_fault_set.all.fault_set_details
}

# if a filter is of type string it has the ability to allow regular expressions
# data "powerflex_fault_set" "fault_set_filter_regex" {
#   filter{
#     name = ["^System_.*$"]
#     id = ["^.*0f$"]
#   }
# }

# output "faultSetFilterRegexResult"{
#  value = data.powerflex_fault_set.fault_set_filter_regex.fault_set_details
# }

// If multiple filter fields are provided then it will show the intersection of all of those fields.
// If there is no intersection between the filters then an empty datasource will be returned
// For more information about how we do our datasource filtering check out our guides: https://dell.github.io/terraform-docs/docs/storage/platforms/powerflex/product_guide/examples/
data "powerflex_fault_set" "filtered" {
  filter {
    # protection_domain_id = ["protection_domain_id", "protection_domain_id2"]
    # name = ["name", "name2"]
    # id = ["id", "id2"]
  }
}

output "fault_set_result_filtered" {
  value = data.powerflex_fault_set.filtered.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

Read-Only

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

Nested Schema for filter

Optional:

  • id (Set of String) List of id
  • name (Set of String) List of name
  • protection_domain_id (Set of String) List of protection_domain_id

Nested Schema for fault_set_details

Read-Only:

  • id (String) Fault set ID
  • links (Attributes List) Specifies the links associated 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)

Nested Schema for fault_set_details.links

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 associated 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.

Nested Schema for fault_set_details.sds_details.links

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.