From: Paul Carver Date: Thu, 15 Oct 2020 15:27:04 +0000 (+0000) Subject: Merge "Boot nodes from virtual, rather than local, CD" X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fironic-virtmedia-driver.git;a=commitdiff_plain;h=9b864a429da88413f51a0ed097ed610b44c4681b;hp=f0dbbaff90b48a1248f8df07828e87e2233e8d5b Merge "Boot nodes from virtual, rather than local, CD" --- diff --git a/src/ironic_virtmedia_driver/vendors/dell/dell.py b/src/ironic_virtmedia_driver/vendors/dell/dell.py index 0706842..5c188fa 100644 --- a/src/ironic_virtmedia_driver/vendors/dell/dell.py +++ b/src/ironic_virtmedia_driver/vendors/dell/dell.py @@ -158,4 +158,20 @@ class DELL(IronicVirtMediaHW): self.log.warning('Failed to disable booting options: %s', str(err)) #For time being lets do the boot order with ipmitool since, well dell doesn't provide open support #for this. - manager_utils.node_set_boot_device(task, boot_devices.CDROM, persistent=False) + try: + # 0x00 0x08 0x05 0x80 0x20: chassis|set|bootdev|for next boot only|remote CD + # other options for device (per ipmitool's "ipmi_chassis.c"): + # 04: PXE + # 08: HDD + # 0c: Safe + # 10: Diag + # 14: CDROM + # 18: Setup + # 1c: Remote FDD + # 24: Remote primary media + # 2c: Remote HDD + # 3c: FDD + ipmitool.send_raw(task, '0x00 0x08 0x05 0x80 0x20 0x00 0x00 0x00') + self.log.info('Set next boot to remote media') + except Exception as err: + self.log.warning('Failed to set next boot to remote media: %s', str(err))