Skip to content
Permalink
Browse files

Fetch primary_status from raid controller

This is already being polled but just not returned. This also
bring parity with standard racadm output.

Change-Id: Ia5f1c49b46463f4872960d2f652a7406b79101eb
  • Loading branch information...
anish committed Oct 11, 2016
1 parent 0cfeff4 commit b6009a0da7d7367d3bb37bb69c1a7875fc015a01
Showing with 5 additions and 1 deletion.
  1. +4 −1 dracclient/resources/raid.py
  2. +1 −0 dracclient/tests/test_raid.py
@@ -106,7 +106,7 @@ def raid_state(self):

RAIDController = collections.namedtuple(
'RAIDController', ['id', 'description', 'manufacturer', 'model',
'firmware_version'])
'primary_status', 'firmware_version'])

VirtualDiskTuple = collections.namedtuple(
'VirtualDisk',
@@ -182,6 +182,9 @@ def _parse_drac_raid_controller(self, drac_controller):
drac_controller, 'DeviceCardManufacturer'),
model=self._get_raid_controller_attr(
drac_controller, 'ProductName'),
primary_status=constants.PRIMARY_STATUS[
self._get_raid_controller_attr(drac_controller,
'PrimaryStatus')],
firmware_version=self._get_raid_controller_attr(
drac_controller, 'ControllerFirmwareVersion'))

@@ -40,6 +40,7 @@ def test_list_raid_controllers(self, mock_requests):
description='Integrated RAID Controller 1',
manufacturer='DELL',
model='PERC H710 Mini',
primary_status='ok',
firmware_version='21.3.0-0009')

mock_requests.post(

0 comments on commit b6009a0

Please sign in to comment.
You can’t perform that action at this time.