Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aacraid-status parsing error #112

Open
iotaka opened this issue Dec 3, 2019 · 2 comments
Open

aacraid-status parsing error #112

iotaka opened this issue Dec 3, 2019 · 2 comments

Comments

@iotaka
Copy link

iotaka commented Dec 3, 2019

Hello Adam @eLvErDe

we have a machine with a failing disk and running aacraid-status it fail on the parsing of arcconf output

aacraid-status            
-- Controller informations --
-- ID | Model | Status
c0 | Adaptec ASR8805 | Optimal

-- Arrays informations --
-- ID | Type | Size | Status | Task | Progress
Traceback (most recent call last):
  File "/usr/sbin/aacraid-status", line 268, in <module>
    arrayinfo = returnArrayInfo(output, ctrl_id=controllerid)
  File "/usr/sbin/aacraid-status", line 101, in returnArrayInfo
    device_state = re.search('\s+\((.*)\)\s+', line).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

In attachment the output of arcconf and a small patch that fixes the problem.

@iotaka
Copy link
Author

iotaka commented Dec 3, 2019

Here the files

arcconf.txt
arcconf-patch.txt

@iotaka iotaka changed the title aacraid-status paring error aacraid-status parsing error Dec 10, 2019
@iotaka
Copy link
Author

iotaka commented Dec 10, 2019

Hello Adam @eLvErDe today we had a rebuild on a server and we discover another small issue.

from arcconf GETCONFIG 1 AL
Status of Logical Device : Degraded, Rebuilding ( Rebuild : 68 % )

from aacraid-status

   -- Arrays informations --
-- ID | Type | Size | Status | Task | Progress
c0u0 | RAID10 | 5713G | Degraded, Rebuilding ( Rebuild

we did another small fix and the output become:
c0u0 | RAID10 | 5713G | Degraded, Rebuilding ( Rebuild 87 % ) | Rebuild | 87%

There was also an error on
from arcconf GETSTATUS 1

Controllers found: 1 
Logical Device Task: 
   Logical Device                 : 0 
   Task ID                        : 100 
   Current operation              : Rebuild 
   Status                         : In Progress 
   Priority                       : High 
   Percentage complete            : 85

Logical Device didn't match so we add an IGNORECASE

rebuild.patch.txt

Thank you, cheers :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant