101 Commits

Author SHA1 Message Date
Jacob Anders
0b6dd9362e Wait for BIOS configuration job to complete
When reconfiguring BIOS on iDRAC nodes, there can be a conflict between
Lifecycle Controller job implementing the actual BIOS change and another
job implementing boot sequence override. This change resolves the issue
with the exception handler by adding code dealing with HTTP 409 error
which wasn't correctly handled before, causing the problem.

Change-Id: Ib57a330d267f573c8481e4823b0f5ee14556fde3
2024-04-23 23:20:59 +10:00
Zuul
f304f34d48 Merge "Add jobs in Paused state to the list of unfinished jobs" 2024-04-02 15:01:15 +00:00
Zuul
4b12f31512 Merge "Remove Id field from DellJobCollection class" 2024-04-02 15:01:14 +00:00
Jacob Anders
d8dc61bc1c Add jobs in Paused state to the list of unfinished jobs
Currently, get_unfinished_jobs() returns jobs in Running and Scheduled
states but not Paused state. This causes problems, because a job in
Paused state will still block more instances of the same job from being
created. This change adds jobs in Paused state to this function's
output. It also migrates states indicating that job hasn't finished
to a constant.

Change-Id: I617b7427704aba7bc6cbaa4384906598f9d4e408
2024-04-02 12:23:25 +10:00
Jacob Anders
77336713bb Remove Id field from DellJobCollection class
Currently, the requirement of having Id field set is triggering
MissingAttribute exceptions. Removing this code doesn't seem to be
causing any issues.

Change-Id: I827ef12b48767b8491106e25e85a71a220a99505
2024-03-28 11:46:37 +00:00
Riccardo Pittau
f3b4c830f5 Update setup and tox config
Change-Id: Ie14902a25f7bc958683ea9acad42970e533995a8
2024-03-28 11:04:21 +01:00
Zuul
34b96be03b Merge "Switch to 2023.1 Python3 unit tests and generic template name" 2023-01-06 09:58:17 +00:00
Kamlesh Chauvhan
7b086093c2 fix tox4
Remove skipsdist that it was never supported and causes breakage
when used with usedevelop.

Change-Id: I35c0365ae9681188a1063eeee827857a78d4c6ce
2023-01-06 09:27:29 +00:00
Aija Jauntēva
8cc447a670 Switch to 2023.1 Python3 unit tests and generic template name
This is a patch to ensure unit testing is in place for all the of the tested
runtimes for antelope. Also, updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ic9fbc911b9af557be1bb1a7741e0409fcd09406e
2022-09-26 07:02:52 -04:00
Aija Jauntēva
da9a0e4042 Add OEM storage controller extension
Can determine controller's mode and convert to RAID mode for
eligible controllers (PERC 9 and PERC 10).

Depends-On: https://review.opendev.org/c/openstack/sushy/+/850899
Change-Id: I492c476c6d69b458449eed69644b051b66dfdc65
5.0.0
2022-08-31 03:36:11 -04:00
Aija Jauntēva
aac2509f7b Update .gitreview after project rename
sushy-oem-idrac was moved from x/ to openstack/ namespace.

Change-Id: I17caac21c62961d4facd37840c7447e48cf3980f
2022-04-19 06:57:34 -04:00
Aija Jauntēva
d036bea3a2 Add Python3 Zed unit tests
This change ensures unit testing is in place for all of the tested
runtimes for Zed.

See also the Project Testing Interface (PTI) in OpenStack Governance
[1].

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I5fcfc4c022bf921f35b1d729aae5f8dfafa5a590
2022-03-08 05:36:15 -05:00
Zuul
7b75e6ea89 Merge "Migrate constants to enums" 4.0.0 2022-01-13 13:43:33 +00:00
Aija Jauntēva
48e17f3c40 Migrate constants to enums
Following sushy change at Ic950a35bb9fc603e5c4b943ac19dba982bdf7212

Change-Id: Id5424ec2742b7fdd1c96185ee0164468a4c0768e
2022-01-06 10:38:16 -05:00
Riccardo Pittau
e6b444bbd9 Re-add python 3.6/3.7 in classifier
We have updated the yoga testing runtime to keep the
py36 testing.

- https://review.opendev.org/c/openstack/governance/+/820195

Unit tests job template is also updated to keep python
3.6 as a voting job. So with the py3.6 and py3.9 testing as voting
job template, we are keeping python 3.6, 3.7, 3.8, and 3.9 as
tested versions in the Yoga cycle.

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

This commit re-add the python 3.6/3.7 versions in setup.cfg classifier.

Change-Id: Iaf69ad23ccf85b3a92d89b46a8c4726b3f38ce8f
2021-12-14 09:42:09 +01:00
Zuul
1d40392814 Merge "Updating yoga tested python versions in classifier" 2021-12-02 13:29:43 +00:00
Aija Jauntēva
8fb44bc93f Add destructive field flag to export configuration
New optional parameter added to export configuration method to control
if destructive iDRAC settings, such as those that could cause loss of
network access, are exported. It is also unlikely that these fields
are necessary during import to replicate same static IP address
settings. User can still put these fields back during import.

Change-Id: Iad39267fedf1c1a7381d03152eb0cea0c114eede
2021-11-30 14:16:36 +00:00
Aija Jauntēva
e0cad7aaaa Updating yoga tested python versions in classifier
Yoga testing runtime has been updated with py38 and py39
as voting and removed the py36 testing. Unit tests update are
handled by the job template change in openstack-zuul-job and you
can see the updated jobs running in gate.

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/818609

this commit updates the tested py versions in setup.cfg classifier.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: Id5b91de2ec099500d84972f008fd914dcc458cfe
2021-11-25 04:51:54 -05:00
Aija Jauntēva
797e085483 Fix moved tests
Follow up to I37f6985ac5e66e33bfd21f242e4b69366bd06818

Change-Id: Ifb15758b19c9a1b1b71fe5067e54a4ae8e359cdd
2021-11-04 07:02:47 -04:00
Aija Jauntēva
6556f94b2e Update unit test folder structure
Now the test files have the same folder structure as the files
they are testing.

Change-Id: I37f6985ac5e66e33bfd21f242e4b69366bd06818
2021-10-21 09:48:47 -04:00
Riccardo Pittau
e2aa47d492 Update min tox version
Change-Id: I643d28b6f5a0d92fee6b60a3a4d5b999736c960b
2021-10-19 11:40:29 +02:00
Aija Jauntēva
9733d23aac Add Python3 Yoga unit tests
This change ensures unit testing is in place for all of the tested
runtimes for Yoga.

See also the Project Testing Interface (PTI) in OpenStack Governance
[1].

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I3cc936dd316ccab897d1c3908230b9d80e26d2a0
2021-09-29 04:33:24 -04:00
Aija Jauntēva
7859b3329f Exclude BOSS controllers in clear_foreign_config
BOSS controllers do not support clearing foreign config.
Requesting to do so results in HTTP 400 Bad Request response.

Change-Id: I6b8f0a97e73dafc3b130e79769f3391dc0061999
3.0.1
2021-09-01 06:51:49 -04:00
Aija Jauntēva
0a7249467b Add OEM Task extension
Added to get OEM JobType to determine if rebooting is done by iDRAC
for OEM RAID jobs.

Depends-On: https://review.opendev.org/c/openstack/sushy/+/800267
Change-Id: I1c83d59f1c99f0b70fbf4f5a5d71698b76d8e975
3.0.0
2021-08-27 04:16:09 -04:00
Aija Jauntēva
be0b8450bc Fix exposing system constants
Exposed incorrect file at
I53964f935d82c349d51c0991c46a3e2b9b0d2682

Change-Id: Iede5a4b505316601ac81f8c36d5790a2e935869a
2021-08-23 10:55:37 -04:00
Zuul
1b311b8166 Merge "Add RAID clear foreign config method" 2021-08-19 07:44:45 +00:00
Zuul
be3196e332 Merge "Add RAID mode conversion methods" 2021-08-19 07:44:43 +00:00
Aija Jauntēva
6de8236ca8 Update default IncludeInExport value
Change-Id: I34f04ffc321306947ad76d6f5c40a2b72e3bb73a
2021-08-18 10:40:38 -04:00
Zuul
44430d29e7 Merge "Update set_virtual_boot_device for no manager" 2021-08-18 14:25:02 +00:00
Zuul
148f056367 Merge "Expose manager constants" 2021-08-18 14:25:00 +00:00
Zuul
ba3184900b Merge "Fix IncludeInExport allowed value validation" 2021-08-18 14:22:42 +00:00
Aija Jauntēva
c63e28113a Add RAID clear foreign config method
Change-Id: If1669e7a666d0897557bc96554a2e403b2ccecf8
2021-08-17 10:30:24 -04:00
Aija Jauntēva
40f966c007 Fix IncludeInExport allowed value validation
Newer iDRAC firmware has changed how it reports
IncludeInExport@Redfish.AllowableValues, no longer including
comma separated option. Although iDRAC violates AllowableValues
validation logic, need to work around this.

Change-Id: I21524bef52e32eb56c105bb57c8f846503a401f4
2021-08-17 09:46:13 -04:00
Aija Jauntēva
79d4ecb587 Add RAID mode conversion methods
Introduces System OEM extension and Dell RAID service
with first Convert to RAID/Non-RAID methods.

Depends-On: https://review.opendev.org/c/openstack/sushy/+/799504
Change-Id: I53964f935d82c349d51c0991c46a3e2b9b0d2682
2021-08-10 09:56:28 -04:00
Zuul
6ef23ff296 Merge "Fix missing Target@Redfish.AllowableValues" 2021-08-10 13:13:54 +00:00
Zuul
3ff451586c Merge "Increase version of hacking and pycodestyle" 2021-08-10 13:07:40 +00:00
Aija Jauntēva
ee7611faa2 Update set_virtual_boot_device for no manager
Change-Id: I4ba566fe4c20f7e12ff2eccda22bb1dd49d43535
2021-08-05 10:16:40 -04:00
Riccardo Pittau
76b5e65ef6 Increase version of hacking and pycodestyle
Change-Id: I7dd593b05719440f5c47d61fdf76c61a8cc06acc
2021-08-04 10:41:26 +02:00
Aija Jauntēva
a9ab0b8051 Add Flake8 W503 ignore
Change-Id: Iaf6fc196cd87de2e7423cfda6df79660b6b2c5f7
2021-08-04 03:39:48 -04:00
Zuul
8792ec74d8 Merge "Enable coverage HTML output" 2021-07-16 15:08:39 +00:00
erbarr
622f96311a Enable coverage HTML output
Adds HTML output report to coverage and
removes dist packages and tests from results.

Change-Id: I33e62b8946356e9a3dfe5e9e0433e5162a464d69
2021-07-16 14:36:49 +00:00
Zuul
a8c12eabc3 Merge "Add Python3 Xena unit tests" 2021-07-16 14:22:08 +00:00
Zuul
f652c4679e Merge "setup.cfg: Replace dashes with underscores" 2021-07-16 14:22:06 +00:00
Aija Jauntēva
81fcf99ee5 Fix missing Target@Redfish.AllowableValues
Change-Id: I492a201e9ae2be6a8b9284ca50f21698d9593526
2021-07-12 10:56:18 -04:00
Riccardo Pittau
cf01b5d116 Add Python3 Xena unit tests
This change ensures unit testing is in place for all of the tested
runtimes for Xena.

See also the Project Testing Interface (PTI) in OpenStack Governance.
[1]

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ifccdd0e1e75aab008a581149ab284a7d3f211b26
2021-06-08 12:57:05 +00:00
erbarr
428fd2cd06 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ib392d89aded3c0f639036bb47739d10f5396a346
2021-06-03 21:24:45 -05:00
erbarr
ecbeca6846 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I2e6521c9f0c6a0885692edc485659b420828a2d2
2021-06-03 20:19:28 -05:00
Aija Jauntēva
bbaca56bda Expose manager constants
Change-Id: I5559300443da4bea157f65f4dc14c885c9edd598
2021-05-21 04:55:43 -04:00
Zuul
83b7eb0de7 Merge "Add reset iDRAC method" 2.1.0 2021-03-26 15:06:51 +00:00
Dhuldev Valekar
8f42e419d2 Add reset iDRAC method
Change-Id: I617297d16080f87e61b7cf0605ee44543b33f2c2
2021-03-26 04:52:46 -04:00