
---
kind: ConfigMap
apiVersion: v1
metadata:
  name: hpe-linux-config
  namespace: hpe-storage
data:
  config.json: |
    {
         "Nimble": {
              "Default": [
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Manual startup of iSCSI nodes on boot. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "startup",
                        "recommendation": "manual"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Replacement_timeout of 10 seconds is recommended for faster failover of I/O by multipath on path failures. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "replacement_timeout",
                        "recommendation": "10"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum login timeout of 15 seconds is recommended with iSCSI. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "login_timeout",
                        "recommendation": "15"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum timeout of 10 seconds is recommended with noop requests. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "noop_out_timeout",
                        "recommendation": "10"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum cmds_max of 512 is recommended for each session if handling multiple LUN's. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "cmds_max",
                        "recommendation": "512"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum queue_depth of 256 is recommended for each iSCSI session/path. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "queue_depth",
                        "recommendation": "256"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum number of sessions per iSCSI login is recommended to be 1 by default. If additional sessions are needed this can be set in /etc/iscsi/iscsid.conf. If NCM is running, please change min_session_per_array in /etc/ncm.conf and restart nlt service instead",
                        "parameter": "nr_sessions",
                        "recommendation": "1"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "product attribute recommended to be set to Server in /etc/multipath.conf",
                        "parameter": "product",
                        "recommendation": "\"Server\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "alua prioritizer is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "prio",
                        "recommendation": "alua"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "scsi_dh_alua device handler is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "hardware_handler",
                        "recommendation": "\"1 alua\""
                   },
                   {
                        "category": "multipath",
                        "severity": "warning",
                        "description": "immediate failback setting is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "failback",
                        "recommendation": "immediate"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "immediately fail i/o on transient path failures to retry on other paths, value=1. Can be set in /etc/multipath.conf",
                        "parameter": "fast_io_fail_tmo",
                        "recommendation": "5"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "queueing is recommended for 150 seconds, with no_path_retry value of 30. Can be set in /etc/multipath.conf",
                        "parameter": "no_path_retry",
                        "recommendation": "30"
                   },
                   {
                        "category": "multipath",
                        "severity": "warning",
                        "description": "service-time path selector is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "path_selector",
                        "recommendation": "\"service-time 0\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "vendor attribute recommended to be set to Nimble in /etc/multipath.conf",
                        "parameter": "vendor",
                        "recommendation": "\"Nimble\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "group paths according to ALUA path priority of active/standby. Recommended to be set to group_by_prio in /etc/multipath.conf",
                        "parameter": "path_grouping_policy",
                        "recommendation": "group_by_prio"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "tur path checker is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "path_checker",
                        "recommendation": "tur"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "infinite value is recommended for timeout in cases of device loss for FC. Can be set in /etc/multipath.conf",
                        "parameter": "dev_loss_tmo",
                        "recommendation": "infinity"
                   }
              ],
              "Ubuntu": null
         },
         "3PARdata": {
              "Default": [
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Manual startup of iSCSI nodes on boot. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "startup",
                        "recommendation": "manual"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Replacement_timeout of 10 seconds is recommended for faster failover of I/O by multipath on path failures. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "replacement_timeout",
                        "recommendation": "10"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum login timeout of 15 seconds is recommended with iSCSI. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "login_timeout",
                        "recommendation": "15"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum timeout of 10 seconds is recommended with noop requests. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "noop_out_timeout",
                        "recommendation": "10"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum cmds_max of 512 is recommended for each session if handling multiple LUN's. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "cmds_max",
                        "recommendation": "512"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum queue_depth of 256 is recommended for each iSCSI session/path. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "queue_depth",
                        "recommendation": "256"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum number of sessions per iSCSI login is recommended to be 1 by default. If additional sessions are needed this can be set in /etc/iscsi/iscsid.conf. If NCM is running, please change min_session_per_array in /etc/ncm.conf and restart nlt service instead",
                        "parameter": "nr_sessions",
                        "recommendation": "1"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "product attribute recommended to be set to VV in /etc/multipath.conf",
                        "parameter": "product",
                        "recommendation": "\"VV\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "alua prioritizer is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "prio",
                        "recommendation": "alua"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "scsi_dh_alua device handler is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "hardware_handler",
                        "recommendation": "\"1 alua\""
                   },
                   {
                        "category": "multipath",
                        "severity": "warning",
                        "description": "immediate failback setting is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "failback",
                        "recommendation": "immediate"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "immediately fail i/o on transient path failures to retry on other paths, value=1. Can be set in /etc/multipath.conf",
                        "parameter": "fast_io_fail_tmo",
                        "recommendation": "10"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "queueing is recommended for 150 seconds, with no_path_retry value of 18. Can be set in /etc/multipath.conf",
                        "parameter": "no_path_retry",
                        "recommendation": "18"
                   },
                   {
                        "category": "multipath",
                        "severity": "warning",
                        "description": "round-robin 0 path selector is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "path_selector",
                        "recommendation": "\"round-robin 0\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "vendor attribute recommended to be set to 3PARdata. Can be set in /etc/multipath.conf",
                        "parameter": "vendor",
                        "recommendation": "\"3PARdata\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "group paths according to ALUA path priority of active/standby. Recommended to be set to group_by_prio in /etc/multipath.conf",
                        "parameter": "path_grouping_policy",
                        "recommendation": "group_by_prio"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "infinite value is recommended for timeout in cases of device loss for FC. Can be set in /etc/multipath.conf",
                        "parameter": "dev_loss_tmo",
                        "recommendation": "infinity"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "tur path checker is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "path_checker",
                        "recommendation": "tur"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "0 value is recommended for features. Can be set in /etc/multipath.conf",
                        "parameter": "features",
                        "recommendation": "\"0\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "uniform rr_weight is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "rr_weight",
                        "recommendation": "\"uniform\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "rr_min_io_rq 1 is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "rr_min_io_rq",
                        "recommendation": "1"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "detect_prio yes is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "detect_prio",
                        "recommendation": "yes"
                   }
              ],
              "Ubuntu": [
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Automatic startup of iSCSI nodes on boot. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "startup",
                        "recommendation": "automatic"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Replacement_timeout of 10 seconds is recommended for faster failover of I/O by multipath on path failures. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "replacement_timeout",
                        "recommendation": "10"
                   },
                   {
                        "category": "iscsi",
                        "severity": "warning",
                        "description": "Minimum interval of 10 seconds is recommended with noop requests. Can be set in /etc/iscsi/iscsid.conf",
                        "parameter": "noop_out_interval",
                        "recommendation": "10"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "product attribute recommended to be set to VV in /etc/multipath.conf",
                        "parameter": "product",
                        "recommendation": "\"VV\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "alua prioritizer is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "prio",
                        "recommendation": "alua"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "scsi_dh_alua device handler is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "hardware_handler",
                        "recommendation": "\"1 alua\""
                   },
                   {
                        "category": "multipath",
                        "severity": "warning",
                        "description": "immediate failback setting is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "failback",
                        "recommendation": "immediate"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "queueing is recommended for 150 seconds, with no_path_retry value of 18. Can be set in /etc/multipath.conf",
                        "parameter": "no_path_retry",
                        "recommendation": "18"
                   },
                   {
                        "category": "multipath",
                        "severity": "warning",
                        "description": "round-robin 0 path selector is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "path_selector",
                        "recommendation": "\"round-robin 0\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "vendor attribute recommended to be set to 3PARdata in /etc/multipath.conf",
                        "parameter": "vendor",
                        "recommendation": "\"3PARdata\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "group paths according to ALUA path priority of active/standby. Recommended to be set to group_by_prio in /etc/multipath.conf",
                        "parameter": "path_grouping_policy",
                        "recommendation": "group_by_prio"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "getuid_callout whitelist is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "getuid_callout",
                        "recommendation": "\"/lib/udev/scsi_id --whitelisted --device=/dev/%n\""
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": "rr_min_io is recommended with value as 100. Can be set in /etc/multipath.conf",
                        "parameter": "rr_min_io",
                        "recommendation": "100"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": " tur checker is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "checker",
                        "recommendation": "tur"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": " tur path checker is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "path_checker",
                        "recommendation": "tur"
                   },
                   {
                        "category": "multipath",
                        "severity": "critical",
                        "description": " features 0 is recommended. Can be set in /etc/multipath.conf",
                        "parameter": "features",
                        "recommendation": "\"0\""
                   }
              ]
         }
    }
