11293 Commits

Author SHA1 Message Date
Dhuldev Valekar
266be4eb4c Follow up to add iDRAC management via Redfish
Add unit tests to redfish utils method wait_until_get_system_ready.

Followup to change: Iad69c8d7cf3a373f5cfcc619a479a106efa2e4d4

Change-Id: I334d6d5d7a35557a57ba118bed0a6beedba934d3
2021-04-23 04:48:24 -05:00
OpenStack Proposal Bot
0a417f52e6 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie9a1b59bf7c070fe69c9d3a20d4d972364eb527c
2021-04-05 06:48:35 +00:00
Julia Kreger
c6b8ee6667 Update release note version header for wallaby
Change-Id: Ib52d0a1e1944e657b1b0be38d433717493cdc401
2021-04-01 10:21:53 -07:00
Zuul
af0e5ee096 Merge "Add Python3 xena unit tests" 2021-04-01 13:05:07 +00:00
Zuul
a4f087a27a Merge "Update master for stable/wallaby" 2021-04-01 10:24:19 +00:00
Zuul
3b2d15394e Merge "Follow-up Automaticaly set cipher suite" 2021-04-01 10:08:40 +00:00
94bd4c8e37 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: I24a4b8fd3d7c086b79875a2d0dd5f2399357d988
2021-04-01 09:12:27 +00:00
dd56a20b6b Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: I87ce46bfcca8b023ef26cf0cdc807de6956fb2b3
2021-04-01 09:12:21 +00:00
Zuul
31d93dccdc Merge "Restrict syncing of boot mode to Supermicro" 2021-04-01 07:12:46 +00:00
Zuul
5249646f64 Merge "Add agent_status and agent_status_message params to heartbeat" 2021-04-01 07:09:33 +00:00
Arun S A G
288b8fd883 Add agent_status and agent_status_message params to heartbeat
agent_status is used by anaconda ramdisk to inform the
conductor about state of the deployment. Valid agent
states are 'start', 'end' and 'error'. The agent_status_message
is used to describe the why the agent_status is set to a
particular state. Use of these parameters require API
version 1.72 or greater.

When anaconda finishes deployment the agent_status is
set to 'end'. When anaconda ramdisk is unable to deploy
the OS for some reason the agent_status is set to 'error'.

PXEAnacondaDeploy is implemented to handle the 'anaconda'
deploy interface. PXEAnacondaDeploy ties to together pieces
needed to deploy a node using anaconda ramdisk.

Co-Authored-By: Jay Faulkner <jay@jvf.cc>
Change-Id: Ieb452149730510b001c4712bbb2e0f28acfc3c2e
2021-03-31 14:20:39 -07:00
Bob Fournier
8bd25a9882 Restrict syncing of boot mode to Supermicro
The fix for https://storyboard.openstack.org/#!/story/2008252 synced
the boot mode after changing the boot device, because Supermicro nodes
reset the boot mode if not included in the boot device set. However this
can cause a problem on Dell nodes when changing the mode uefi->bios or
bios->uefi. Restrict the syncing of the boot mode to Supermicro.

Story: 2008712
Task: 42046
Change-Id: I9f305cb3f33766c1c93cf4347368b1ce025fc635
2021-03-31 15:02:57 -04:00
Zuul
e215f7a180 Merge "Fix Bandit check" 2021-03-31 18:41:42 +00:00
Zuul
a7988cb416 Merge "Add iDRAC management via Redfish to idrac HW type" 2021-03-31 17:52:39 +00:00
Iury Gregory Melo Ferreira
a036728fb4 Follow-up Automaticaly set cipher suite
This commit is a follow-up to  I6788585a83268e20ff6447e570995871bc9c25d5

Change-Id: I658b6b4eca7978473b08244c349ea5ac8bf37f76
2021-03-31 18:35:45 +02:00
Zuul
c9f9c2ca9b Merge "Generic way to configure clean step priorites" 2021-03-31 16:30:19 +00:00
DhuldevValekar3
601f6d51f6 Add iDRAC management via Redfish to idrac HW type
This change adds support for managing an iDRAC -- reset, clear job
queue, and reset to known good state -- via the Redfish out-of-band
(OOB) management protocol to the idrac hardware type. This is offered by
new idrac-redfish management hardware interface implementation cleaning
steps: reset_idrac, clear_job_queue, and known_good_state.
known_good_state both resets an iDRAC and clears its job queue.

Story: 2007617
Task: 39628
Depends-On: https://review.opendev.org/c/x/sushy-oem-idrac/+/782254

Change-Id: Iad69c8d7cf3a373f5cfcc619a479a106efa2e4d4
2021-03-31 09:13:59 -04:00
Zuul
ff4c370d4b Merge "Add import, export configuration to idrac-redfish" 2021-03-31 11:53:03 +00:00
Zuul
4e8a3fdc29 Merge "Fix configuration generation for ironic doc pages" 2021-03-31 05:36:31 +00:00
Zuul
c2ac96458a Merge "Always add 'boot_method' vmedia in redfish/ilo vmedia boot" 2021-03-31 05:19:48 +00:00
Jacob Anders
1523ae1ce4 Generic way to configure clean step priorites
This change adds a generic method of configuring clean step
priorities instead of making changes in Ironic code every time a new
clean step is introduced.

Change-Id: I56b9a878724d27af2ac05232a1680017de4d8df5
Story: 1618014
2021-03-31 14:11:49 +10:00
Zuul
34b2183862 Merge "[doc] Warning about out-of-sync ESPs for UEFI software RAID" 2021-03-29 23:38:19 +00:00
Julia Kreger
12d1dd5309 Fix configuration generation for ironic doc pages
Ironic's sample configuration page previously did not render any
of the items in the default section, except for those items added
by other libraries. This was because we were trying to use an iterator
instead of a list.

Using an iterator, in theory should have worked, and did work for
normal invocations, but didn't work when it came to sphinx generated
output.

Instead of trying to use itertools to assemble everything, we just
now instead assemble the list and use a list_opts method like some
of the other more complex groups to add values.

Confirmed in local build output that the sphinx generated output
works as expected now.

Change-Id: I7f1cffb2a91728ab632ab0ccaa6acbb7e86fb533
2021-03-29 15:56:51 -07:00
Julia Kreger
4afbf74798 Fix Bandit check
Bandit has started to fail on master.

 >> Issue: [B701:jinja2_autoescape_false] Using jinja2 templates with autoescape=False is dangerous and can lead to XSS. Ensure autoescape=True or use the select_autoescape function to mitigate XSS vulnerabilities.
    Severity: High   Confidence: Medium
    Location: ironic/common/utils.py:491
    More Info: https://bandit.readthedocs.io/en/latest/plugins/b701_jinja2_autoescape_false.html
 489	    # NOTE(pas-ha) not using default_for_string=False as we set the name
 490	    # of the template above for strings too.
 491	    env = jinja2.Environment(
 492	        loader=loader,
 493	        autoescape=jinja2.select_autoescape(),
 494	        undefined=jinja2.StrictUndefined if strict else jinja2.Undefined
 495	    )

It appears that Arun changed this around a little in
https://review.opendev.org/c/openstack/ironic/+/777448/10/ironic/common/utils.py
however this doesn't seem to pass reliably. As such, I'm returning
the notation of the label to the first line as it was before, which
seems to consistently pass bandit checking.

Change-Id: I7f5b7323b108b303b5b77609d5903128d4adca3c
2021-03-29 14:45:56 -07:00
Julia Kreger
4bd1c40bdc Always add 'boot_method' vmedia in redfish/ilo vmedia boot
The inclusion of a boot_method=vmedia kernel command line
argument is mandatory singnaling so IPA understands it has
been booted via virtual media, and to act accordingly.

Change-Id: I92751a3f4305fe0ded9ff379643b45132fe66157
Story: 2008749
Task: 42181
2021-03-29 10:41:47 -07:00
Zuul
b748ff6529 Merge "Fix webserver_verify_ca config documentation" 2021-03-29 17:25:50 +00:00
Zuul
d80a6b2651 Merge "Fix idrac-wsman BIOS step async error handling" 2021-03-29 17:25:26 +00:00
Aija Jauntēva
457d0cd70b Add import, export configuration to idrac-redfish
Introduces import_configuration, export_configuration
and import_export_configuration steps.

Currently as MVP supports OEM section only.

Story: 2003594
Task: 40622

Depends-On: https://review.opendev.org/#/c/759425/

Change-Id: I10dbc30614d8654dda540ffaa5e61e7a9f03c7b3
2021-03-29 12:33:10 -04:00
Zuul
851aac397e Merge "Allow using per-site network_data schema" 2021-03-29 16:09:49 +00:00
Zuul
065bc617fd Merge "Allow running RAID cleaning steps with in-band cleaning" 2021-03-29 16:09:35 +00:00
Zuul
cd75c7dc70 Merge "Move configuration mold utilities" 2021-03-29 15:44:44 +00:00
Zuul
1caaa0c507 Merge "Validate the kickstart template and file before use" 2021-03-29 15:13:31 +00:00
Aija Jauntēva
d913ef6396 Move configuration mold utilities
Utilities moved to ironic.common.molds.
New config section [molds] created and settings moved there.

Change-Id: I1177f7dd5d5157bb3a5c0bd09acd75c9a394ab47
2021-03-29 07:42:53 -04:00
Zuul
356734aaca Merge "Automaticaly set cipher suite" 2021-03-29 10:51:18 +00:00
Zuul
6fe8e6beb8 Merge "DRAC : idrac-redfish inspect updates pxe port" 2021-03-29 10:07:21 +00:00
Zuul
b64cc44d1b Merge "[doc] Update available software RAID levels." 2021-03-29 09:46:09 +00:00
Zuul
54d74c06e5 Merge "Add configuration mold storage" 2021-03-29 09:45:43 +00:00
Arne Wiebalck
fc457a49d7 [doc] Warning about out-of-sync ESPs for UEFI software RAID
Add a note that the ESPs created by the IPA may get out of sync.

Change-Id: Ie2553eac42ed2e36a9be0b9720a79269a08e3252
2021-03-29 09:45:41 +02:00
Arne Wiebalck
86c34114d8 [doc] Update available software RAID levels.
The initial RAID levels have been extended by levels 5 and 6.
Update the documentation to reflect this.

Change-Id: Ifd7eb9d836b6fbf0a08648654ef2080b9717be83
2021-03-29 09:35:29 +02:00
Zuul
98f662dbf7 Merge "update grub2 file name" 2021-03-29 05:25:25 +00:00
Iury Gregory Melo Ferreira
b029fb3770 Automaticaly set cipher suite
In some cases the operator can't specify `ipmi_cipher_suite`
for each node and the problem with session can still occour:
`Error in open session response message : no matching cipher suite`

This patch adds a new configuration option that will take a list
of possible cipher suite versions that can be used when the error
occurs and the node doesn't have the `ipmi_cipher_suite` set.

Story: 2008739
Task: 42093
Change-Id: I6788585a83268e20ff6447e570995871bc9c25d5
2021-03-29 05:50:25 +02:00
Zuul
71935eaf8c Merge "Enable Reuse of Zuul Job in 3rd Party CI Environment" 2021-03-27 02:14:13 +00:00
Julia Kreger
9da8f418e3 Fix webserver_verify_ca config documentation
When a specific configuration options list is created and delineated
out, it needs to be explicitly added so it gets pulled in, either
through each configuration generator file's list options method, or
in the case of default for the list of lists to iterate through.

It seems websever_verify_ca was missing in the docs, and this
results in it being properly generated.

Change-Id: I84709f5093c4b716b4cb21bd31fa05c65f93d8df
Story: 2008732
Task: 42084
2021-03-26 17:22:29 -07:00
Dmitry Tantsur
24be3c2286 Allow using per-site network_data schema
I have been against it since the beginning of this work, hoping that we
can settle down on one network data format, one is more native for
Ironic because of our relation to OpenStack. This has not happened, with
e.g. CoreOS only using its own formats. So, let it be. Use with caution.

Change-Id: I872d010517cd343fcbcafadb4535f07ca15c2c95
2021-03-26 15:33:14 +01:00
Zuul
3f219703f1 Merge "redfish boot_interfaces, ipmitool -> pxe" 2021-03-26 13:10:42 +00:00
Zuul
328f0ca826 Merge "redfish-virtual-media: allow USB devices instead of floppies" 2021-03-26 13:10:30 +00:00
Aija Jauntēva
15e20fe293 Add configuration mold storage
Support Swift and Web server via HTTP GET and PUT.

Story: 2003594
Task: 40621
Change-Id: I1d253650f6a3b98dbbe4e09c167c35526f5f940c
2021-03-26 05:40:09 -04:00
Pradip Kadam
7d82d7f3dd DRAC : idrac-redfish inspect updates pxe port
Extends generic Redfish OOB inspection to add setting pxe_enabled
on the discovered ports for the idrac hardware type.
It retrieves the list of PXE device MAC addresses using an OEM extension
to the Redfish API if necessary
and updates the pxe_enabled field of Port.

Change-Id: Ife8387a3bdb75717b896cf1067d2490084665e49
Story: 2006819
Task: 37380
Co-Authored-By: Mahendra Kamble <mahendra.kamble358@gmail.com>
Co-Authored-By: Sonali Borkar <sonaliborkar85@gmail.com>
2021-03-26 04:35:45 -04:00
Armstrong Liu
8f474bfe59 update grub2 file name
Some higher versions of grub2 (e.g. 2.05 or 2.06-rc1) use
grub.cfg-01-MAC, while another lower versions of
grub2 (e.g. 2.04) use MAC.conf, so we generate both paths
in order to be compatible with both.

For more information we can see:
https://docs.oracle.com/en/operating-systems/oracle-linux/7/install/ol7-install-prepare.html#ol7-install-pxe-boot-uefi

Change-Id: Icbdd284de38b8e54c52cdbba709bba0e644c35cd
Signed-off-by: Armstrong Liu <vpbvmw651078@gmail.com>
2021-03-26 11:30:58 +08:00
Bernd Mueller
918f3c33c3 redfish boot_interfaces, ipmitool -> pxe
Change-Id: I10fd83b081e56dff686be9698e63585dec8676a8
2021-03-25 16:52:02 +01:00