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

Fixed HP raid parser when disks are in JBOD #209

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

geektophe
Copy link
Collaborator

@geektophe geektophe commented Mar 11, 2022

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.
@geektophe geektophe merged commit bb08813 into master Mar 11, 2022
@cyrinux cyrinux deleted the fix/chriss/raid_cmd_returncod_hp_jbod branch March 16, 2022 08:01
@KivraChristoffer
Copy link
Contributor

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.

devopstales pushed a commit to devopstales/netbox-agent2 that referenced this pull request Jun 24, 2022
…od_hp_jbod

Fixed HP raid parser when disks are in JBOD
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

Successfully merging this pull request may close these issues.

3 participants