Skip to content

[Bug]: Adaptec_RAID, failed to parse Arcconf GETCONFIG 1 PD output #16394

Description

@Zarsnik

Bug description

I try to configure the Adaptec Raid plugin and when the first arcconf command arcconf GETCONFIG 1 LD seems to be good, for some reason the second arcconf GETCONFIG 1 PD don't work and send a failed to parse output error.

The output of the command

sudo -n arcconf GETCONFIG 1 PD
Controllers found: 1
----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
      Device #0
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SAS 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,1(1:0)
         Reported Location                  : Connector 0, Device 1
         Vendor                             : NETAPP
         Model                              : X422_HCOBE600A10
         Firmware                           : NA00
         Reserved Size                      : 956312 KB
         Used Size                          : 571392 MB
         Unused Size                        : 64 KB
         Total Size                         : 572325 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off
         SSD                                : No
         Temperature                        : Not Supported
      ----------------------------------------------------------------
      Device Phy Information                
      ----------------------------------------------------------------
         Phy #0
            PHY Identifier                  : 0
            SAS Address                     : 5000
            Attached PHY Identifier         : 2
            Attached SAS Address            : 5000
         Phy #1
            PHY Identifier                  : 1
            SAS Address                     : 5000

      Device #1
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SAS 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,2(2:0)
         Reported Location                  : Connector 0, Device 2
         Vendor                             : NETAPP
         Model                              : X422_HCOBE600A10
         Firmware                           : NA02
         Reserved Size                      : 956312 KB
         Used Size                          : 571392 MB
         Unused Size                        : 64 KB
         Total Size                         : 572325 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off
         SSD                                : No
         Temperature                        : Not Supported
      ----------------------------------------------------------------
      Device Phy Information                
      ----------------------------------------------------------------
         Phy #0
            PHY Identifier                  : 0
            SAS Address                     : 5000
            Attached PHY Identifier         : 1
            Attached SAS Address            : 5000
         Phy #1
            PHY Identifier                  : 1
            SAS Address                     : 5000

      Device #2
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SAS 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,4(4:0)
         Reported Location                  : Connector 1, Device 0
         Vendor                             : NETAPP
         Model                              : X422_HCOBD600A10
         Firmware                           : NA05
         Reserved Size                      : 956312 KB
         Used Size                          : 571392 MB
         Unused Size                        : 64 KB
         Total Size                         : 572325 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off
         SSD                                : No
         Temperature                        : Not Supported
      ----------------------------------------------------------------
      Device Phy Information                
      ----------------------------------------------------------------
         Phy #0
            PHY Identifier                  : 0
            SAS Address                     : 5000
            Attached PHY Identifier         : 7
            Attached SAS Address            : 5000
         Phy #1
            PHY Identifier                  : 1
            SAS Address                     : 5000

      Device #3
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SAS 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,5(5:0)
         Reported Location                  : Connector 1, Device 1
         Vendor                             : NETAPP
         Model                              : X422_HCOBD600A10
         Firmware                           : NA05
         Reserved Size                      : 956312 KB
         Used Size                          : 571392 MB
         Unused Size                        : 64 KB
         Total Size                         : 572325 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off
         SSD                                : No
         Temperature                        : Not Supported
      ----------------------------------------------------------------
      Device Phy Information                
      ----------------------------------------------------------------
         Phy #0
            PHY Identifier                  : 0
            SAS Address                     : 5000
            Attached PHY Identifier         : 6
            Attached SAS Address            : 5000
         Phy #1
            PHY Identifier                  : 1
            SAS Address                     : 5000

      Device #4
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SAS 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,6(6:0)
         Reported Location                  : Connector 1, Device 2
         Vendor                             : NETAPP
         Model                              : X422_HCOBD600A10
         Firmware                           : NA05
         Reserved Size                      : 956312 KB
         Used Size                          : 571392 MB
         Unused Size                        : 64 KB
         Total Size                         : 572325 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off
         SSD                                : No
         Temperature                        : Not Supported
      ----------------------------------------------------------------
      Device Phy Information                
      ----------------------------------------------------------------
         Phy #0
            PHY Identifier                  : 0
            SAS Address                     : 5000
            Attached PHY Identifier         : 5
            Attached SAS Address            : 5000
         Phy #1
            PHY Identifier                  : 1
            SAS Address                     : 5000

      Device #5
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SAS 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,7(7:0)
         Reported Location                  : Connector 1, Device 3
         Vendor                             : NETAPP
         Model                              : X422_HCOBD600A10
         Firmware                           : NA05
         Reserved Size                      : 956312 KB
         Used Size                          : 571392 MB
         Unused Size                        : 64 KB
         Total Size                         : 572325 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off
         SSD                                : No
         Temperature                        : Not Supported
      ----------------------------------------------------------------
      Device Phy Information                
      ----------------------------------------------------------------
         Phy #0
            PHY Identifier                  : 0
            SAS Address                     : 5000
            Attached PHY Identifier         : 4
            Attached SAS Address            : 5000
            PHY Identifier                  : 1
            SAS Address                     : 5000



Command completed successfully.

And the Debug show this error

./python.d.plugin adaptec_raid debug trace
python.d INFO: plugin[main] : using python v3
python.d DEBUG: plugin[main] : looking for '/etc/netdata/python.d.conf'
python.d DEBUG: plugin[main] : '/etc/netdata/python.d.conf' is loaded
python.d DEBUG: plugin[main] : looking for '/usr/lib/netdata/conf.d/python.d.conf'
python.d DEBUG: plugin[main] : '/usr/lib/netdata/conf.d/python.d.conf' is loaded
python.d DEBUG: plugin[main] : looking for 'pythond-jobs-statuses.json' in /var/lib/netdata
python.d DEBUG: plugin[main] : loading '/var/lib/netdata/pythond-jobs-statuses.json'
python.d DEBUG: plugin[main] : '/var/lib/netdata/pythond-jobs-statuses.json' is loaded
python.d DEBUG: plugin[main] : [adaptec_raid] loaded module source : '/usr/libexec/netdata/python.d/adaptec_raid.chart.py'
python.d DEBUG: plugin[main] : [adaptec_raid] looking for 'adaptec_raid.conf' in ['/etc/netdata/python.d', '/usr/lib/netdata/conf.d/python.d']
python.d DEBUG: plugin[main] : [adaptec_raid] loading '/etc/netdata/python.d/adaptec_raid.conf'
python.d DEBUG: plugin[main] : [adaptec_raid] '/etc/netdata/python.d/adaptec_raid.conf' is loaded
python.d INFO: plugin[main] : [adaptec_raid] built 1 job(s) configs
python.d DEBUG: adaptec_raid[asr6805] : Executing command '/usr/bin/sudo -n -v'
python.d DEBUG: adaptec_raid[asr6805] : Executing command '/usr/bin/sudo -n /usr/sbin/arcconf GETCONFIG 1 LD'
python.d DEBUG: adaptec_raid[asr6805] : discovered logical devices ids: ['0']
python.d DEBUG: adaptec_raid[asr6805] : Executing command '/usr/bin/sudo -n /usr/sbin/arcconf GETCONFIG 1 PD'
python.d ERROR: adaptec_raid[asr6805] : failed to parse "/usr/bin/sudo -n /usr/sbin/arcconf GETCONFIG 1 PD" output
python.d DEBUG: adaptec_raid[asr6805] : output: ['Controllers found: 1\n', '----------------------------------------------------------------------\n', 'Physical Device information\n', '----------------------------------------------------------------------\n', '      Device #0\n', '         Device is a Hard drive\n', '         State                              : Online\n', '         Block Size                         : 512 Bytes\n', '         Supported                          : Yes\n', '         Transfer Speed                     : SAS 6.0 Gb/s\n', '         Reported Channel,Device(T:L)       : 0,1(1:0)\n', '         Reported Location                  : Connector 0, Device 1\n', '         Vendor                             : NETAPP\n', '         Model                              : X422_HCOBE600A10\n', '         Firmware                           : NA00\n', '         Reserved Size                      : 956312 KB\n', '         Used Size                          : 571392 MB\n', '         Unused Size                        : 64 KB\n', '         Total Size                         : 572325 MB\n', '         Write Cache                        : Enabled (write-back)\n', '         FRU                                : None\n', '         S.M.A.R.T.                         : No\n', '         S.M.A.R.T. warnings                : 0\n', '         Power State                        : Full rpm\n', '         Supported Power States             : Full rpm,Powered off\n', '         SSD                                : No\n', '         Temperature                        : Not Supported\n', '      ----------------------------------------------------------------\n', '      Device Phy Information                \n', '      ----------------------------------------------------------------\n', '         Phy #0\n', '            PHY Identifier                  : 0\n', '            SAS Address                     : 5000\n', '            Attached PHY Identifier         : 2\n', '            Attached SAS Address            : 5000\n', '         Phy #1\n', '            PHY Identifier                  : 1\n', '            SAS Address                     : 5000\n', '\n', '      Device #1\n', '         Device is a Hard drive\n', '         State                              : Online\n', '         Block Size                         : 512 Bytes\n', '         Supported                          : Yes\n', '         Transfer Speed                     : SAS 6.0 Gb/s\n', '         Reported Channel,Device(T:L)       : 0,2(2:0)\n', '         Reported Location                  : Connector 0, Device 2\n', '         Vendor                             : NETAPP\n', '         Model                              : X422_HCOBE600A10\n', '         Firmware                           : NA02\n', '         Reserved Size                      : 956312 KB\n', '         Used Size                          : 571392 MB\n', '         Unused Size                        : 64 KB\n', '         Total Size                         : 572325 MB\n', '         Write Cache                        : Enabled (write-back)\n', '         FRU                                : None\n', '         S.M.A.R.T.                         : No\n', '         S.M.A.R.T. warnings                : 0\n', '         Power State                        : Full rpm\n', '         Supported Power States             : Full rpm,Powered off\n', '         SSD                                : No\n', '         Temperature                        : Not Supported\n', '      ----------------------------------------------------------------\n', '      Device Phy Information                \n', '      ----------------------------------------------------------------\n', '         Phy #0\n', '            PHY Identifier                  : 0\n', '            SAS Address                     : 5000\n', '            Attached PHY Identifier         : 1\n', '            Attached SAS Address            : 5000\n', '         Phy #1\n', '            PHY Identifier                  : 1\n', '            SAS Address                     : 5000n', '\n', '      Device #2\n', '         Device is a Hard drive\n', '         State                              : Online\n', '         Block Size                         : 512 Bytes\n', '         Supported                          : Yes\n', '         Transfer Speed                     : SAS 6.0 Gb/s\n', '         Reported Channel,Device(T:L)       : 0,4(4:0)\n', '         Reported Location                  : Connector 1, Device 0\n', '         Vendor                             : NETAPP\n', '         Model                              : X422_HCOBD600A10\n', '         Firmware                           : NA05\n', '         Reserved Size                      : 956312 KB\n', '         Used Size                          : 571392 MB\n', '         Unused Size                        : 64 KB\n', '         Total Size                         : 572325 MB\n', '         Write Cache                        : Enabled (write-back)\n', '         FRU                                : None\n', '         S.M.A.R.T.                         : No\n', '         S.M.A.R.T. warnings                : 0\n', '         Power State                        : Full rpm\n', '         Supported Power States             : Full rpm,Powered off\n', '         SSD                                : No\n', '         Temperature                        : Not Supported\n', '      ----------------------------------------------------------------\n', '      Device Phy Information                \n', '      ----------------------------------------------------------------\n', '         Phy #0\n', '            PHY Identifier                  : 0\n', '            SAS Address                     : 5000\n', '            Attached PHY Identifier         : 7\n', '            Attached SAS Address            : 5000\n', '         Phy #1\n', '            PHY Identifier                  : 1\n', '            SAS Address                     : 5000\n', '\n', '      Device #3\n', '         Device is a Hard drive\n', '         State                              : Online\n', '         Block Size                         : 512 Bytes\n', '         Supported                          : Yes\n', '         Transfer Speed                     : SAS 6.0 Gb/s\n', '         Reported Channel,Device(T:L)       : 0,5(5:0)\n', '         Reported Location                  : Connector 1, Device 1\n', '         Vendor                             : NETAPP\n', '         Model                              : X422_HCOBD600A10\n', '         Firmware                           : NA05\n', '         Reserved Size                      : 956312 KB\n', '         Used Size                          : 571392 MB\n', '         Unused Size                        : 64 KB\n', '         Total Size                         : 572325 MB\n', '         Write Cache                        : Enabled (write-back)\n', '         FRU                                : None\n', '         S.M.A.R.T.                         : No\n', '         S.M.A.R.T. warnings                : 0\n', '         Power State                        : Full rpm\n', '         Supported Power States             : Full rpm,Powered off\n', '         SSD                                : No\n', '         Temperature                        : Not Supported\n', '      ----------------------------------------------------------------\n', '      Device Phy Information                \n', '      ----------------------------------------------------------------\n', '         Phy #0\n', '            PHY Identifier                  : 0\n', '            SAS Address                     : 5000\n', '            Attached PHY Identifier         : 6\n', '            Attached SAS Address            : 50000\n', '         Phy #1\n', '            PHY Identifier                  : 1\n', '            SAS Address                     : 5000\n', '\n', '      Device #4\n', '         Device is a Hard drive\n', '         State                              : Online\n', '         Block Size                         : 512 Bytes\n', '         Supported                          : Yes\n', '         Transfer Speed                     : SAS 6.0 Gb/s\n', '         Reported Channel,Device(T:L)       : 0,6(6:0)\n', '         Reported Location                  : Connector 1, Device 2\n', '         Vendor                             : NETAPP\n', '         Model                              : X422_HCOBD600A10\n', '         Firmware                           : NA05\n', '         Reserved Size                      : 956312 KB\n', '         Used Size                          : 571392 MB\n', '         Unused Size                        : 64 KB\n', '         Total Size                         : 572325 MB\n', '         Write Cache                        : Enabled (write-back)\n', '         FRU                                : None\n', '         S.M.A.R.T.                         : No\n', '         S.M.A.R.T. warnings                : 0\n', '         Power State                        : Full rpm\n', '         Supported Power States             : Full rpm,Powered off\n', '         SSD                                : No\n', '         Temperature                        : Not Supported\n', '      ----------------------------------------------------------------\n', '      Device Phy Information                \n', '      ----------------------------------------------------------------\n', '         Phy #0\n', '            PHY Identifier                  : 0\n', '            SAS Address                     : 5000\n', '            Attached PHY Identifier         : 5\n', '            Attached SAS Address            : 5000\n', '         Phy #1\n', '            PHY Identifier                  : 1\n', '            SAS Address                     : 5000\n', '\n', '      Device #5\n', '         Device is a Hard drive\n', '         State                              : Online\n', '         Block Size                         : 512 Bytes\n', '         Supported                          : Yes\n', '         Transfer Speed                     : SAS 6.0 Gb/s\n', '         Reported Channel,Device(T:L)       : 0,7(7:0)\n', '         Reported Location                  : Connector 1, Device 3\n', '         Vendor                             : NETAPP\n', '         Model                              : X422_HCOBD600A10\n', '         Firmware                           : NA05\n', '         Reserved Size                      : 956312 KB\n', '         Used Size                          : 571392 MB\n', '         Unused Size                        : 64 KB\n', '         Total Size                         : 572325 MB\n', '         Write Cache                        : Enabled (write-back)\n', '         FRU                                : None\n', '         S.M.A.R.T.                         : No\n', '         S.M.A.R.T. warnings                : 0\n', '         Power State                        : Full rpm\n', '         Supported Power States             : Full rpm,Powered off\n', '         SSD                                : No\n', '         Temperature                        : Not Supported\n', '      ----------------------------------------------------------------\n', '      Device Phy Information                \n', '      ----------------------------------------------------------------\n', '         Phy #0\n', '            PHY Identifier                  : 0\n', '            SAS Address                     : 50009\n', '            Attached PHY Identifier         : 4\n', '            Attached SAS Address            : 5000\n', '         Phy #1\n', '            PHY Identifier                  : 1\n', '            SAS Address                     : 5000\n', '\n', '\n', '\n', 'Command completed successfully.\n']
python.d INFO: plugin[main] : adaptec_raid[asr6805] : check failed
python.d INFO: plugin[main] : no jobs to serve
python.d INFO: plugin[main] : exiting from main...

Maybe related to a regex problem ?

Expected behavior

Python properly parse the disk info (state, smart, temp ...)

Steps to reproduce

Setup RAID plugin by following the documentation:
https://learn.netdata.cloud/docs/agent/collectors/python.d.plugin/adaptec_raid

Installation method

kickstart.sh

System info

/etc/os-release:PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
/etc/os-release:NAME="Debian GNU/Linux"
/etc/os-release:VERSION_ID="11"
/etc/os-release:VERSION="11 (bullseye)"
/etc/os-release:VERSION_CODENAME=bullseye
/etc/os-release:ID=debian

Netdata build info

Netdata Version ____________________________________________ : v1.43.2

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions