15 Commits

Author SHA1 Message Date
mpardhi23
7be050e66f Add the ability to manage RAID settings
This patch adds the ability to get and set the settings for RAID
settings.

Change-Id: Ifc63ca7d9a30378e75b160739b709a1264ffe550
(cherry picked from commit c3bb9606aa32d3cd1b44e5baab4ec2f298ed1c83)
2020-04-09 07:33:25 -04:00
mpardhi23
48f6133383 Take Lifecycle Controller out of recovery mode
This patch is to check if a node is in recovery mode and take it
out of recovery mode by setting LifecycleControllerState attribute
value to 'Enabled'.

Modified list_lifecycle_settings() method to use
utils.list_settings() for retrieving lifecycle settings.

Change-Id: I4287f317b2413b70cd00fd4cf8aa69bff6ae5e2f
(cherry picked from commit ceef78a938dca4f06d14bcfdac1a6d2e53e48ded)
2020-03-30 11:52:52 -04:00
Christopher Dearborn
9ff2b02058 Fixed indentation in utils.list_settings
Fixed the indentation in utils.list_settings.

Change-Id: I198bc028537f78228a4899afd788e786c95f0ee6
2018-02-19 13:38:58 -05:00
Christopher Dearborn
b327b0811f Add ability to set iDRAC card settings
This patch adds the ability to set iDRAC card settings.

Change-Id: I117e5ed0af1469dc316a30abcfa384d3c773ed1f
2018-02-08 10:13:35 -05:00
Christopher Dearborn
ee0ca6f1f6 Refactor list_bios_settings and set_bios_settings
This patch factors the code in list_bios_settings and set_bios_settings
out into utility methods that can be used by other code that has the
same functionality.

Change-Id: I310fc0cb1c8372b1391d085078686e616890eb6f
2018-01-23 11:29:57 -05:00
Christopher Dearborn
72ea2323e5 Separate reboot required from commit required
This patch separates indicators for reboot required and commit required.
It does this by adding two new keys (is_reboot_required and
is_commit_required) to the dictionary returned by set/create/modify
operations while continuing to return the commit_required key for
backwards compatibility.

The commit_required key should be considered deprecated at this time and
it will be removed in a future patch.

The is_reboot_required key has an enumerated value that can have three
possible values: true, optional, and false.  This allows the return of
optional for RAID operations that can return this value.

Change-Id: I70e52868f10bfafb30bbb38b85888bc4ec8e65ae
Closes-Bug: 1732549
2018-01-22 09:36:53 -05:00
Mark Goddard
2a80dbb2c9 Add constituent physical disks to RAID virtual disk object
This change adds a new attribute - physical_disks - to
dracclient.resources.raid.VirtualDisk objects. The attribute is a
list of IDs of the physical disks that a virtual disk is composed of.
This allows clients of the library to obtain a more complete view of
the current RAID configuration.

Change-Id: If4f762d3bc115a971d0392af8270f5440ef43913
Closes-bug: #1651702
2017-01-12 19:56:39 +00:00
Dmitry Tantsur
aeebdf890b Raise a specific exception instead of generic AttributeError
Currently we raise an AttributeError when expected attribute is missing
from the response. This is not very developer-friendly, so this patch
creates a new exception (derived from AttributeError for compatibility)
for this purpose.

Change-Id: If2ac03dcd410d451dc7bbfe7bbd0b145da201c9a
Related-Bug: #1550328
2016-11-08 18:04:42 +01:00
Dmitry Tantsur
ba1eb4aa99 Raise a reasonable error on non-nullable flags with empty text
Now it fails with AttributeError: 'NoneType' object has no attribute 'strip'.
Raise a new exception with proper explanation instead.

Partial-Bug: #1550328
Change-Id: Ie9f9d212c934bb75e8224dd64ec8df7f788b86d3
2016-11-07 15:44:14 +01:00
Imre Farkas
f96744daf3 Allow missing flags on inventory.CPU
Change-Id: Idd485fd11ab9d784bc8c24a9b8279bcce76f0f68
Closes-Bug: #1602173
2016-08-10 10:47:38 +02:00
Imre Farkas
d52d16c6e6 Fix docstrings for params
Change-Id: I95784e65fcaacb7d74a1a6dab0d8549c2a6cf13a
2015-12-09 16:22:32 +01:00
Imre Farkas
617d5d7e1b Add RAID management
Change-Id: Id342bf5de2cf06fa7a9c125a4fac15df21a1f5fe
2015-12-09 16:22:11 +01:00
Imre Farkas
da78c87db2 Add support for BIOS configuration
Change-Id: I574696e460f08cececc47a69b5c2b090a6cd44a2
2015-12-08 14:32:25 +01:00
Imre Farkas
400f9317ba Add job management
Change-Id: Id5c8462c9f797f5d506fcacab5736a7768dbd99d
2015-11-11 12:59:21 +01:00
Imre Farkas
9153b850b2 Add power management
Change-Id: Iab9d9f7e4e25e3d3fdec9b28fe49a7226e68c9ff
2015-11-10 10:05:21 +01:00