147 Commits

Author SHA1 Message Date
Zuul
098302fe36 Merge "Provide last system inventory time" into stable/stein 2.2.0 2020-10-23 19:23:08 +00:00
Yogesh Ramachandra
b8a31b37d1 Provide last system inventory time
This change provides the time system inventory was last performed
by the iDRAC. That is done during system restart and referred to as
Collect System Inventory on Restart (CSIOR). The value is represented
in yyyymmddHHMMSS format.

Change-Id: I73ff5eb517528afe56b5cf45a74fa5d5519db186
Closes-Bug: #1894938
(cherry picked from commit a4c819e3045a13fb2d6c633af9c8b71dfb49d8f9)
2020-10-13 04:36:21 -05:00
Mudit
eb8fb2446f Add video enumeration to InventoryManagement
Change-Id: Ia14ae67fea9d69ba27ebd43f6043b817f6cc5eff
Closes-Bug: #1894940
(cherry picked from commit d341ab4b3c22337fd12f54c6d3bdbedfd9d00d43)
2020-10-13 02:22:30 -04:00
Julia Kreger
3ec4896061 Clarify module name
Change-Id: I76b2dc05aadb1773a87efaee64bc1184a1246521
(cherry picked from commit 94576895f7553462ef75ca6923609b114a435417)
2020-09-28 17:43:57 -04:00
Christopher Dearborn
ccc106647a Fix issue with reset_idrac on some servers
This patch increases the amount of time to sleep before checking to see
if the iDRAC is ready following a reset to 60 seconds. 30 seconds was
too short for some servers.

Change-Id: I9252a2d56b852f72efcf571bf7d8e70cbb7cd874
(cherry picked from commit 1aaaf93f7cdcd51b9b57ff405ff64058202b7aa3)
2020-08-06 16:12:04 -04:00
mpardhi23
d7b0f98925 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)
2.1.0
2020-04-09 07:33:54 -04:00
Rachit7194
7f17054b52 Added `bus` attribute to PhysicalDisks for NVMe drives
This patch adds `bus` attribute to PhysicalDisks so clients
can determine the PCI bus ID of NVMe drives.

Change-Id: I9b6b88826b9902a059e1bf537e51d9f97c9389ba
(cherry picked from commit 719a7d81f8ac4d49bf1fd784665117adc62f676b)
2020-04-08 09:09:06 -04:00
Christopher Dearborn
d3b2d1e8dc Create doc requirements.txt
This patch creates a new doc/requirements.txt file, moves into it the
required packages from test-requirements.txt, and makes the necessary
changes to the docs build to fix the dependencies.

Change-Id: I6cc9aadc6359fac5b985afb370bd4e33d4749b74
(cherry picked from commit 1b22d279e81c565396b126a40d0760d46ddf6ce7)
2020-04-07 07:33:45 -04:00
Thomas Bechtold
2cda62558a Switch from oslosphinx to openstackdocstheme
That's what the OpenStack community is using today. Also with newer
Sphinx versions, the current approach does no longer build.

Change-Id: Iab9f72bb146e8dd36de7fa868b41801e0c97e2ea
(cherry picked from commit b4c304c5d61a044f3e57025a5e5b729550458dc5)
2020-04-02 10:14:07 -04:00
Rachit7194
60d1c46076 Fix parsing for virtual disk RAIDStatus attribute
This patch changes the parsing of virtual disks so
that if the DCIM_VirutalDiskView.RAIDStatus attribute
is not present then DCIM_VirutalDiskView.RaidStatus
will be used instead.
This is needed due to the attribute being renamed in
LCC version 4.0.0

Change-Id: I4ca1b7f6df47ce808920b5e24ad0be6b76963917
(cherry picked from commit 01e7ca19ce4161d9153dfe45520072521b0164b0)
2020-04-01 11:16:13 -04:00
Rachit7194
69906919ee Fix for clear_foreign_config() unsupported on some controllers
iDRAC driver fails to clear foreign drives on some controllers
and returns  message_id ``STOR058`` which means controllers does
not support clear_foreign_config operation.

Change-Id: I7df2d30242e7a490dfdce04d7f6ce98c68e9f0ed
(cherry picked from commit 8394938d2f72dbadb4ebf7a95c1973216cd8dd3a)
2020-03-30 18:41:28 -04:00
mpardhi23
3b7a3e4f0b 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:27 -04:00
mpardhi23
6b35e31ba7 Check LCStatus instead of MessageID to determine if an iDRAC is ready
We are currently checking the MessageID to determine if an iDRAC
is ready. This patch is to check the value of LCStatus instead of
MessageID. If the value of LCStatus is "0", then the iDRAC is
considered ready.

Change-Id: I3426c226c4bb3cdcc95b98e9b203f100bb6777d5
(cherry picked from commit bcce3bdc6b33c8d6f0721eac024ebff61de1e2db)
2020-03-26 06:57:45 -04:00
Christopher Dearborn
6c113d2919 Add realtime support to drive conversion
This patch updates change_physical_disk_state() so that it returns the
actual results of drive conversion on each controller.  This allows the
caller to use the returned information for realtime drive conversion.

This patch also deprecates returning the is_reboot_required and
commit_required_ids keys in the dictionary.

Change-Id: I10f4a44660e70f0cd8efd0ca9e8e96cb46751a61
(cherry picked from commit ff312640d8af2b2b18ab08bf725a4ee8f2e99bcf)
2020-03-25 14:58:39 -04:00
mpardhi23
313db4bf73 clear_foreign_config() succeeds if no foreign disk
When clear_foreign_config() does not detect a foreign disk, instead
of failing and raising an exception, it succeeds and returns a value
which informs the caller nothing further needs to be done.

Change-Id: I4cea95659db11747b1c8708e1dbe7cac53c0eaf9
(cherry picked from commit 8eec25c00d208c19dceb266c74c7bc4811ba6076)
2020-03-24 11:28:43 -04:00
jacky06
d41a26095d Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I06dfee32f6cf0a232a49901109b6b794f845c2fd
Closes-Bug: #1826699
(cherry picked from commit 15fe14b8a00da35a1d0e009a122899e11f705681)
2020-03-12 10:56:26 -04:00
Zuul
d448d4d8da Merge "Add doc/requirements.txt to docs tox environment" into stable/stein 2020-03-11 22:40:41 +00:00
Christopher Dearborn
6218cca3a2 Changes for zuulv3
This patch adds the gate jobs for this repo to this repo.

Change-Id: Iee58de2768962fa27d11b513b1462f2d9c2a277d
(cherry picked from commit 2570a588cd22130f383d106422f6636bcde39696)
2020-02-18 11:50:24 -05:00
98k
0ed45f6f95 Add doc/requirements.txt to docs tox environment
Without these dependencies, the docs build does not actually
work.

Change-Id: Iacb3707016077649a48f7640f1ff73b5a2ea1a28
(cherry picked from commit e4bf12d7c59f46d72742c0e620ce28a9797e4b5f)
2020-02-18 09:34:28 -05:00
Christopher Dearborn
793140c9a9 Consider a BOSS card a RAID controller
This fixes the is_raid_controller method so that it returns true
for a BOSS controller in addition to normal RAID controllers.

Change-Id: Iedd3179b8b2b6e3815709cc1acfd6a3059e42399
(cherry picked from commit caff41164f361ad69dc08979882fba47cc3e7bda)
2019-06-17 16:43:42 -04:00
mpardhi23
b7178a43e2 Implement ResetConfig and ClearForeignConfig functionality
For raid deletion, existing delete_virtual_disk functionality is not
freeing up foreign drives and spares, so have added ResetConfig and
ClearForeignConfig functionality for freeing up foreign drives and
spares.

Change-Id: I76390dc4fcf8de2fe5aa3d660f77edcef4a4dec1
(cherry picked from commit 6857a6d000f7e61af872fd782092d5f4341d5f31)
2019-06-14 15:49:30 -04:00
Christopher Dearborn
bf0aea753b Filter unprintable ASCII during enumeration
When enumerating DCIM_ControllerView, the DriverVersion field may have
unprintable ASCII characters in it if the server has a BOSS card. In
the past, it was observed that this field could contain unprintable
non-ASCII characters, but unprintable ASCII characters have been
found in it as well.

This fix changes the filtering so that only printable ASCII
characters and the tab character pass the filter.

Closes-Bug: 1816194
Change-Id: If7274fed19fb763aa7c2e4adc3676a4e3c26aee0
(cherry picked from commit 95440920fd487cea921883f71f619fdfa8229669)
2019-06-14 14:31:57 -04:00
Christopher Dearborn
68cbf5a06e Fix iDRAC reset
The current code waits for 3 consecutive failed pings, each 10 seconds
apart to determine that an iDRAC has gone down during an iDRAC reset.
This is too long for some servers, as the iDRAC may come back up before
the 3rd ping failure.  This results in a failure to detect the iDRAC
going down, which causes a timeout on the reset.

This patch changes the code to wait for only 2 consecutive ping
failures, which is what our highly tested downstream code does.

Closes-Bug: 1816195
Change-Id: Iac21d5eb722834089cbe4a2e7e19370a951951f0
(cherry picked from commit e204c367ab118878aa5202e10d74c3c28de8ba21)
2019-06-14 13:43:39 -04:00
digambar
2a2a53ee24 Add a real-time option when commit RAID creation/deletion
in python-dracclient.

Change-Id: I3ada0e51235941620c9f27796da9790a182fb0e4
(cherry picked from commit 9069b1e416187c3ad293acd87a24c1ee96a9846c)
2019-06-14 10:31:09 -04:00
OpenDev Sysadmins
b8a5460194 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:33:58 +00:00
David Paterson
6c812b203e Fixes problem in is_boss_controller function
We need to make sure we check model name of controller
starts with "BOSS"

Change-Id: I0b8608bad4ffc1f6c5bcf5ae36d9c0c76478260b
(cherry picked from commit 5ec4f3dc1f2a661257b1b1468ea11c8400a34bc2)
2019-04-09 14:05:35 -04:00
98k
342c84bc9d Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I0d6c03b871014ab3f260fa23e20da8cbfdbdcc75
(cherry picked from commit db211b9b65cde87e017d555af105976305c71a81)
(cherry picked from commit 05fd61d751ad2b7d57520af4cd79ecfdaae14a78)
2019-04-04 14:53:12 -04:00
Christopher Dearborn
fdd272cc41 Fix stable/stein .gitreview
This adds a default branch to the stable/stein .gitreview file which
makes git review function correctly on this branch.

Change-Id: Icaddf30c4ff9840b9da966a290de2c67e75d03da
2019-04-03 17:32:23 -04:00
zhouxinyong
2f52f51b73 Replacing the link in HACKING.rst
Change-Id: Ibd94975d4fd56ca63fa317d847e0822e75e2009f
2.0.0
2018-11-16 03:24:21 +08:00
David Paterson
bef7a0a8ce Add change_physical_disk_state function to client
Build a list of controllers which had disks converted
to or from RAID/JBOD and inidicate if a reboot is required.

The following steps allow the caller to retrieve a list of
controllers that have disks comverted to the specified
RAID status:
- Examine all disks in the system and filter out any that
are not attached to a RAID/BOSS controller.
- Inspect the controllers' disks to see if there are
disks that need to be converted. If a disk is already in
the desired status the disk is ignored, otherwise
it is converted. This function also handles failed or
unknown disk status appropriately and will raise exception(s)
where needed.
- Finally a dict is returned containing a list of controller
IDs for controllers whom had any of their disks converted,
and whether a reboot is required.

Typically the caller would then create a config job for the
list of controllers returned to finalize the RAID
configuration and reboot the node if necessary.

Change-Id: I5229f7699c9ca1d5b72a54b4ddcea6313b440836
Co-Authored-By: Christopher Dearborn <Christopher.Dearborn@dell.com>
2018-10-19 18:43:44 -04:00
Zuul
f823194b2e Merge "Adds ability to reset iDRAC" 2018-10-05 16:26:55 +00:00
Mark Beierl
88023841ef Adds ability to reset iDRAC
Adds new function to reset the iDRAC and wait for it
to become operational again.

Change-Id: Ia8dc0b97e02fc5f2c4d39b6b6d90456c1cfc5b7a
Co-Authored-By: Christopher Dearborn <christopher.dearborn@dell.com>
2018-09-27 20:03:05 -04:00
digambar
1baaadf7f2 Add UUID to System object in python-dracclient
Change-Id: I322d07f425470c585db950ef27cd4b9364eff71c
2018-09-27 05:09:41 -05:00
uday344
3cb32a967a Removed deprecated disk,raid and job state
Change-Id: I63e7bc013386449db8cf50aec1d9e80fe9a2c570
2018-09-11 13:04:12 -05:00
Zuul
63e193a1c5 Merge "Fix CPU count returned by introspection in Ironic iDRAC driver" 1.5.0 2018-09-06 17:17:56 +00:00
jainprasuk1996
92e4ba4c2b Fix CPU count returned by introspection in Ironic iDRAC driver
Change-Id: Id8ff61f7f2fb2c24af64f38f6cf34e5b6d66182c
2018-09-06 06:49:16 -05:00
Mark Beierl
6599e7f814 Define constants for types of reboot job
Adds constants, instead of arbitrary strings, for specifying the type
of reboot job.

Change-Id: I4f404bdb158899b4d0f50f87a120a222f4bd5939
2018-08-23 15:34:57 -04:00
Christopher Dearborn
873a86e9c5 Increase default is ready retries
The current number of is ready retries does not work with DSS9000
hardware.  This change doubles the number of retries, which has proven
to work.

Change-Id: I5651acbb22be1cffb2a7f448db6a6975d27ad963
2018-08-13 16:55:16 -04:00
Zuul
01858e0d41 Merge "Add support for NIC configuration" 2018-08-11 12:57:23 +00:00
Zuul
589ee04c83 Merge "Added is_jbod_capable method to raid resource" 2018-08-11 12:50:53 +00:00
Zuul
ee12ec65e7 Merge "Delete Job API" 2018-08-11 12:50:53 +00:00
digambar
0960fba23a Add ability to retrieve system properties
Change-Id: I7ae6efb913895c86aab838481b6025c8a17a42ee
2018-08-10 05:34:28 -05:00
Mark Beierl
96fa6965db Delete Job API
Adds the ability to delete jobs from the iDRAC job queue.

Change-Id: I0e34cc850b968533782af45ef6e61206a3f04949
Co-Authored-By: Richard G. Pioso <richard.pioso@dell.com>
2018-08-08 09:21:28 -04:00
Zuul
e68dacb1d6 Merge "Add ability to schedule jobs" 2018-08-01 19:54:27 +00:00
Mark Beierl
8836c0dedf Add support for NIC configuration
Adds APIs that support listing and setting NIC attributes
by name.

Change-Id: Ie836a3603b6bb49e3f296c10147d58ae745c3f6b
Co-Authored-By: Richard G. Pioso <richard.pioso@dell.com>
2018-07-27 15:48:07 -04:00
Christopher Dearborn
0de8b41768 Filter out non-ASCII characters on invalid UTF8
When an enumerate is done, it is possible that the iDRAC may return
invalid UTF8 that contains non-ASCII characters.  This causes an
XMLSyntaxError to be thrown.  This fix detects that situation and
filters out all non-ASCII characters to bypass the error.

See the following bug for further details:
https://bugs.launchpad.net/python-dracclient/+bug/1779412

Closes-Bug: #1779412
Change-Id: I5003785dee922920dcdd95c8d7e2a26e0bf97a7d
2018-07-09 17:40:52 -04:00
Mark Beierl
dcf4e2d280 Add ability to schedule jobs
Adds an optional start time to allow configuration changes
to be scheduled for a future time.

Co-Authored-By: Christopher Dearborn <christopher.dearborn@dell.com>
Co-Authored-By: Richard G. Pioso <richard.pioso@dell.com>
Change-Id: Ia1f02fd2f8a25efa8bb924bd9d50394cbf5d2034
2018-07-06 15:27:46 -04:00
David Paterson
1d203354a2 Added is_jbod_capable method to raid resource
Some RAID controllers support JBOD (passthrough) mode, while others do not.
This method determines if the passed RAID controller supports JBOD mode.
Note: that the controller must have at least one disk in the non-RAID or ready
state, or this method will be unable to determine if the RAID controller
supports JBOD mode, and an exception will be thrown.

Co-Authored-By: Christopher Dearborn <Christopher.Dearborn@dell.com>
Change-Id: I62d8f92197faf6a6b4fe8a72da5c1a6a79d2af82
2018-06-29 11:20:09 -04:00
Christopher Dearborn
413bfce123 Adds support for Dell BOSS card RAID1 creation
The Dell BOSS card requires that 0 be passed for the RAID 1 size_gb for
the RAID creation to be successful.  This change causes the code to
treat a size of 0 as valid so the BOSS RAID 1 can be created.

Change-Id: Id149f6250318e6162a168d002671faa2b3a7989b
Task: #22082
Story: #2002536
Co-Authored-By: Digambar Patil <digambarpat@gmail.com>
2018-06-19 14:34:16 -04:00
wangqi
a300f85654 Update links in README
Change the links http to https

Change-Id: I95ef797f5711742b3808a53decad409496277971
1.4.0
2018-05-17 09:51:07 +00:00