Fixed HP raid parser when disks are in JBOD #209

Merged
geektophe merged 1 commit from fix/chriss/raid_cmd_returncod_hp_jbod into master 2022-03-11 17:05:38 +01:00
geektophe commented 2022-03-11 16:01:00 +01:00 (Migrated from github.com)

The function parsing the RAID logical volumes in the HP module did not manage the case where disks were set in JBOD mode, thus having no RAID array set.

This patch fixes this by checking if arrays are defined on pdisks before parsing the logical disks.

Also added returncode read when executing the RAID related commands to raise a more precise error.

The function parsing the RAID logical volumes in the HP module did not manage the case where disks were set in JBOD mode, thus having no RAID array set. This patch fixes this by checking if arrays are defined on pdisks before parsing the logical disks. Also added returncode read when executing the RAID related commands to raise a more precise error.
cyrinux (Migrated from github.com) approved these changes 2022-03-11 16:08:37 +01:00
KivraChristoffer commented 2022-03-30 13:44:59 +02:00 (Migrated from github.com)

fyi:

netbox_agent.raid.hp.HPRaidControllerError: Failed to execute command 'ssacli ctrl slot=2 pd all show detail':

Error: The specified controller does not have any physical drives on it.

fyi: > netbox_agent.raid.hp.HPRaidControllerError: Failed to execute command 'ssacli ctrl slot=2 pd all show detail': > > Error: The specified controller does not have any physical drives on it.
Sign in to join this conversation.
No description provided.