"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ironic/drivers/modules/redfish/boot.py" between
ironic-16.0.2.tar.gz and ironic-16.0.3.tar.gz

About: OpenStack Ironic (Optional Service: Bare-Metal Provisioning) aims to provision bare metal machines instead of virtual machines, forked from the Nova baremetal driver.
The "Victoria" series (latest release).

boot.py  (ironic-16.0.2):boot.py  (ironic-16.0.3)
skipping to change at line 501 skipping to change at line 501
- Otherwise build boot image, insert it into virtual media device - Otherwise build boot image, insert it into virtual media device
and set node to boot from CD. and set node to boot from CD.
:param task: a task from TaskManager. :param task: a task from TaskManager.
:returns: None :returns: None
:raises: InstanceDeployFailure, if its try to boot iSCSI volume in :raises: InstanceDeployFailure, if its try to boot iSCSI volume in
'BIOS' boot mode. 'BIOS' boot mode.
""" """
node = task.node node = task.node
boot_mode_utils.sync_boot_mode(task)
boot_option = deploy_utils.get_boot_option(node) boot_option = deploy_utils.get_boot_option(node)
self.clean_up_instance(task) self.clean_up_instance(task)
iwdi = node.driver_internal_info.get('is_whole_disk_image') iwdi = node.driver_internal_info.get('is_whole_disk_image')
if boot_option == "local" or iwdi: if boot_option == "local" or iwdi:
self._set_boot_device(task, boot_devices.DISK, persistent=True) self._set_boot_device(task, boot_devices.DISK, persistent=True)
LOG.debug("Node %(node)s is set to permanently boot from local " LOG.debug("Node %(node)s is set to permanently boot from local "
"%(device)s", {'node': task.node.uuid, "%(device)s", {'node': task.node.uuid,
'device': boot_devices.DISK}) 'device': boot_devices.DISK})
return return
skipping to change at line 532 skipping to change at line 534
return return
params.update(root_uuid=root_uuid) params.update(root_uuid=root_uuid)
deploy_info = _parse_deploy_info(node) deploy_info = _parse_deploy_info(node)
iso_ref = image_utils.prepare_boot_iso(task, deploy_info, **params) iso_ref = image_utils.prepare_boot_iso(task, deploy_info, **params)
_eject_vmedia(task, sushy.VIRTUAL_MEDIA_CD) _eject_vmedia(task, sushy.VIRTUAL_MEDIA_CD)
_insert_vmedia(task, iso_ref, sushy.VIRTUAL_MEDIA_CD) _insert_vmedia(task, iso_ref, sushy.VIRTUAL_MEDIA_CD)
boot_mode_utils.sync_boot_mode(task)
self._set_boot_device(task, boot_devices.CDROM, persistent=True) self._set_boot_device(task, boot_devices.CDROM, persistent=True)
LOG.debug("Node %(node)s is set to permanently boot from " LOG.debug("Node %(node)s is set to permanently boot from "
"%(device)s", {'node': task.node.uuid, "%(device)s", {'node': task.node.uuid,
'device': boot_devices.CDROM}) 'device': boot_devices.CDROM})
def clean_up_instance(self, task): def clean_up_instance(self, task):
"""Cleans up the boot of instance. """Cleans up the boot of instance.
This method cleans up the environment that was setup for booting This method cleans up the environment that was setup for booting
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)