Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-110262

in SCALE a DEGRADED pool does not create an alert.

    XMLWordPrintable

    Details

      Description

      Here is how I reproduce the behavior:

      ssh root@192.168.2.173
      The authenticity of host '192.168.2.173 (192.168.2.173)' can't be established.
      ECDSA key fingerprint is SHA256:vgFCSiSdxvX+H6w3v6laE5ZMGr9airRp4tXj4ggq410.
      No matching host key fingerprint found in DNS.
      Are you sure you want to continue connecting (yes/no)? yes
      Warning: Permanently added '192.168.2.173' (ECDSA) to the list of known hosts.
      
          TrueNAS (c) 2009-2021, iXsystems, Inc.
          All rights reserved.
          TrueNAS code is released under the modified BSD license with some
          files copyrighted by (c) iXsystems, Inc.
      
          For more information, documentation, help or support, go here:
          http://truenas.com
      Welcome to TrueNAS
      test66# zinject -d 'f4aa2b64-312b-4eeb-9541-8faf412b2687' -A fault tank
      test66# echo $?
      0
      test66# zpool status tank       
        pool: tank
       state: DEGRADED
      status: One or more devices has experienced an unrecoverable error.  An
          attempt was made to correct the error.  Applications are unaffected.
      action: Determine if the device needs to be replaced, and clear the errors
          using 'zpool clear' or replace the device with 'zpool replace'.
         see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P
      config:
      
          NAME                                    STATE     READ WRITE CKSUM
          tank                                    DEGRADED     0     0     0
            f4aa2b64-312b-4eeb-9541-8faf412b2687  DEGRADED     0     0     0  too many errors
            ac6182ca-5d55-4461-9fa3-f64d006b5605  ONLINE       0     0     0
      
      errors: No known data errors
      

      After runing the API call a couple time over a minute there is no alert generated

      In [8]: GET("/alert/list/").json()
      Out[8]: 
      [{'uuid': '09de7ff4-aabd-4425-b1f5-325f2ba6f712',
        'source': 'LicenseStatus',
        'klass': 'License',
        'args': 'Your TrueNAS has no license, contact support.',
        'node': 'Controller A',
        'key': '"Your TrueNAS has no license, contact support."',
        'datetime': {'$date': 1618840443142},
        'last_occurrence': {'$date': 1618856953303},
        'dismissed': False,
        'mail': None,
        'text': '%s',
        'id': '09de7ff4-aabd-4425-b1f5-325f2ba6f712',
        'level': 'CRITICAL',
        'formatted': 'Your TrueNAS has no license, contact support.',
        'one_shot': False}]

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                vladimirv Vladimir Vinogradenko
                Reporter:
                eturgeon Eric Turgeon
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: