Commit Graph

21 Commits

Author SHA1 Message Date
Dmitry Tantsur 6efa2119e4 Add the initial skeleton of the agent inspect interface
No real inspection is done: it only accepts data and returns success.

Common code has been extracted from the existing inspector-based
implementation.

Change-Id: I7462bb2e0449fb1098fe59e394b5c583fea89bac
2023-07-13 09:50:03 +02:00
Vanou Ishii eae33a0acb [iRMC] identify BMC firmware version
Since iRMC S6 2.00, iRMC firmware doesn't support HTTP
connection to REST API.

To deal with this firmware incompatibility, this commit
adds verify step to check connection to REST API and adds
node vendor passthru to fetch&cache version of iRMC firmware.

Story: 2010396
Task: 46745
Change-Id: Ib04b66b0c7b1ef1c4175841689c16a7fbc0b1e54
2023-01-16 18:38:57 +09:00
Vanou Ishii 2200f931de Change boot_interface order of iRMC driver
This change aligns the boot interface order of the irmc
hardware type to match the other hardware type interface
order lists.

This change is a result of an operator reporting inconsistent
behavior of ironic when they are adding nodes using the irmc
hardware type, where they would default to use the "irmc-pxe" boot
interface, where as the other interfaces would end up defaulting
to "ipxe".

Change-Id: I017c6560f9de884eefb2c1925321380cc1c721e2
2022-11-06 21:55:58 -05:00
Yushiro FURUKAWA 8bd138ca85 Support iRMC hardware type again
This commit supports ``irmc`` hardware type again.

Co-Authored-By: Vanou Ishii <ishii.vanou@fujitsu.com>
Change-Id: I37b9ac5943a153f54ea64f26cbd758f53982a6ac
2020-09-29 23:20:21 +09:00
Julia Kreger 92fee40538 Deprecate irmc hardware type
Third party CI for the Fujitsu irmc hardware type has been down for
a substantial amount of time and we've been unable to contact anyone
at Fujitsu.

As such, we are deprecating the driver in order to eventually remove
it from the code base.

Change-Id: If0d124352dec7072d7f806d60628eefe3619a8b0
Story: 2007186
Task: 38312
2020-01-22 09:24:10 -08:00
Vanou Ishii 66b0739831 Deal with iPXE boot interface incompatibility in Train
In Train cycle, iPXE boot with [pxe]ipxe_enabled option in
ironic.conf file will be removed. And ipxe boot interface
will be the only boot interface to deploy Ironic node with
iPXE. Till Train, iRMC driver has supported iPXE boot with
[pxe]ipxe_enabled option.

This commit copes with this incompatibility and supports
ipxe boot interface by adding ipxe.iPXEBoot to
supported_boot_interface.

Change-Id: Iec2284c2d101aebadd9d1b531c44794e2d4efacf
Related-Bug: #1628069
2019-07-03 04:06:54 +00:00
Luong Anh Tuan fa59565be0 Implement iRMC BIOS configuration
This patch supports BIOS configuration for iRMC drivers using
out-of-band method.

Tested successfully on TX2540 M1 along with eLCM license.

Story: #1743674
Task: #10651
Co-Authored-By: Nguyen Van Trung <trungnv@vn.fujitsu.com>
Change-Id: I61f15e7c65c4ef5cc5f959d2b016b053e70ba19b
2018-07-11 08:04:15 +07:00
Nguyen Van Trung 84ae0c323c Support RAID configuration for BM via iRMC driver
This is OOB solution which using create/delete raid config via
Fujitsu iRMC driver. In addition, This commit will enable raid
interface via iRMC driver.

Tested successfully on TX2540 M1 along with eLCM license, SDcard and
SP(Service Platform) available.

Change-Id: Iacaf213f76abf130d5570fc13704b1d1bfcf49d7
Story: #1699695
Task: #10597
2018-07-04 15:45:34 +07:00
Dmitry Tantsur 3d8f3ec1a9 Remove the iRMC classic drivers
This changes removes pxe_irmc, iscsi_irmc and agent_irmc.

Change-Id: Ie829ee1758fce38acdd3ae2bb3525bcea37ac6d4
2018-06-26 14:30:38 +02:00
Hironori Shiina aaf17eb5e7 iRMC: Support ipmitool power interface with irmc hardware
Irmc power interface requires a vendor agent on an instance for
enabling soft reboot and soft power off. For a case where the agent is
not installed, this patch enables ipmitool power interface with irmc
hardware type.

Change-Id: I9bbe702645ba2a8ddbc0cf825b00999568f384c5
Story: 2002595
Task:  22206
2018-06-18 16:17:08 +09:00
Dmitry Tantsur d1062cfbdd Migrate the remaining classic drivers to hardware types
I've tried my best to provide a correct matching for these, but
there are two exceptions:

* fake_drac uses iscsi deploy with None boot, which cannot work,
  so changing both to fake
* some fake drivers are migrated to the 'fake' power interface,
  which is changed to include soft power as well.

The latter means that all fake classic drivers now support fake
soft power actions, while previously only fake_soft_power did.
Now fake_soft_power is identical to fake and is left for backward
compatibility

Also wrote more tests to check correctness of this migration.

Change-Id: I00c9c6ed698b10f035e65428e1a20d733c7e544a
Partial-Bug: #1690185
2018-02-01 18:38:24 +01:00
Dao Cong Tien e7664a161d Adds clean step 'restore_irmc_bios_config' to iRMC drivers
- Adds new boot interface 'irmc-pxe'. Deprecates 'pxe' boot interface
from using with hardware type 'irmc'.

- Adds functions backup_bios_config and restore_bios_config to iRMC
management interface for implementing the BIOS BACKUP/RESTORE
mechanism supporting iRMC S4 hardware. The function backup_bios_config()
will be called automatically before deploying.

- Adds clean step restore_irmc_bios_config to restore BIOS config
for a node during automatic cleaning.

Change-Id: I04aa5bc2f5e287e048d0b52fee123e53ae2eaa99
Partial-Bug: #1639688
2017-06-29 10:06:20 +00:00
Dao Cong Tien 6855ab17a3 Add hardware type 'irmc' for FUJITSU PRIMERGY servers
Added IRMCHardware type for FUJITSU PRIMERGY servers
which have iRMC S4 management system.

Change-Id: I92c62a1680d4662dce5b1158b323192f35af7e9c
Closes-Bug:#1659209
2017-02-01 00:09:22 +07:00
Pavlo Shchelokovskyy 206e246d25 Remove agent vendor passthru from most drivers
This patch removes the deprecated agent lookup/heartbeat as vendor
passthru functionality from most of the drivers in following modules:
- ironic.drivers.agent
- ironic.drivers.pxe
- ironic.drivers.drac
- ironic.drivers.irmc

Some drivers are left untouched though:
- iLO and OneView drivers are a bit more complicated and will be fixed
  in follow-up patches
- iBoot, WoL and AMT drivers will be fixed in ironic-staging-drivers
  repo first and then removed from ironic tree.

Change-Id: Ia9ee46cda68ef823d1fe8e5ea03c1d5948810a50
Partial-Bug: #1640533
2016-11-29 09:30:32 +02:00
Naohiro Tamura 37590a8633 Add hardware inspection module for iRMC driver
This module enables iRMC out-of-band hardware inspection for FUJITSU
PRIMERGY bare metal nodes having iRMC S4 and beyond.

Change-Id: I8f406a9beb3fd3c01b15f764211ffd18494464f6
Closes-Bug: #1525108
2016-02-12 11:28:38 +09:00
Naohiro Tamura 8d0949817e Refactor IRMCVirtualMediaAgentDeploy by applying new BootInterface
This patch refactors IRMCVirtualMediaAgentDeploy by applying new
BootInterface. Consequently IRMCVirtualMediaAgentDeploy is divided
into IRMCVirtualMediaBoot and IRMCVirtualMediaAgentDeploy.

Implements: blueprint irmc-driver-uses-boot-interface

Change-Id: I7cae6588dfeffec3c5667ecabdb164ca72d63f22
2015-11-22 14:41:45 +09:00
Naohiro Tamura 1ec4faad7b Refactor IRMCVirtualMediaIscsiDeploy by applying new BootInterface
This patch refactors IRMCVirtualMediaIscsiDeploy by applying new
BootInterface. Consequently IRMCVirtualMediaIscsiDeploy is divided
into IRMCVirtualMediaBoot and IRMCVirtualMediaIscsiDeploy.

Implements: blueprint irmc-driver-uses-boot-interface

Change-Id: I709f3eb9b7798fa9b8a415bafbebbc24b03c5ebe
2015-11-22 14:35:39 +09:00
Naohiro Tamura 38da9d5cbc Fix iRMC vmedia deploy failure due to already attached image
This patch fixes an agent_irmc bug which which doesn't detach virtual
cd and fd at the end of deploy process.
And also this patch adds detach virtual cd and fd calls before attach
calls so that proper images can be attached.

Closes-Bug: #1497799
Change-Id: Ifb975123de0f273952941e070e0a7cd9ef6925a0
2015-09-21 09:33:57 +09:00
John L. Villalovos 6e1d0c54dd Remove executable permission from irmc.py
ironic/drivers/irmc.py is an imported module and should not be set to
executable. Change permissions to 0664 like the other files in
ironic/drivers/

Change-Id: I2bacdc5faaea3874344f623bc1995b8783cc904b
2015-09-05 14:10:24 -07:00
Naohiro Tamura bcf43bff84 Add copyright notice to iRMC driver source code.
This patch adds copyright notice in accordance with "APPENDIX: How to
apply the Apache License to your work" [1].
Also this is a reflection of the gerrit review comment in [2] that is
there's no problem adding a copyright line in the license header in
OpenStack.

[1] http://www.apache.org/licenses/LICENSE-2.0
[2] https://review.openstack.org/#/c/171672/

Change-Id: Ic0d69c735170267640803a9bc707f058306c9da1
2015-08-14 13:47:25 +09:00
Naohiro Tamura f55ab34e54 Add iRMC Virtual Media Deploy module for iRMC Driver
This module enables PXE/TFTP less deployment capability to provision
PRIMERGY bare metal nodes (having iRMC S4 and beyond) by booting the
bare metal node with virtual media using NFS or CIFS from conductor
node to deploy the image.

Implements: blueprint irmc-virtualmedia-deploy-driver
Change-Id: I747b3245c7ba5e991abb07c894c8cd2b2d3c45e8
2015-07-06 01:22:25 +09:00