diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-04-27 12:05:10 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-04-27 12:05:10 +0000 |
commit | 4a4527725f97dcbd02c7c5b626d4c4c5e4576ad5 (patch) | |
tree | f08d218c0fa66e87e81ce84bd5d55d3652eccc97 /ironic/drivers/modules/ilo/boot.py | |
parent | 9d2f64840dc46c27ecf7e35d0d47eb53d043ffde (diff) | |
parent | 1dedfdb7b75e5b766e8a70d176ed75616698c440 (diff) | |
download | ironic-4a4527725f97dcbd02c7c5b626d4c4c5e4576ad5.tar.gz |
Merge "Remove log translations from iLO drivers"
Diffstat (limited to 'ironic/drivers/modules/ilo/boot.py')
-rw-r--r-- | ironic/drivers/modules/ilo/boot.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ironic/drivers/modules/ilo/boot.py b/ironic/drivers/modules/ilo/boot.py index 459eb2bae..ff31544bf 100644 --- a/ironic/drivers/modules/ilo/boot.py +++ b/ironic/drivers/modules/ilo/boot.py @@ -28,7 +28,7 @@ import six.moves.urllib.parse as urlparse from ironic.common import boot_devices from ironic.common import exception from ironic.common.glance_service import service_utils -from ironic.common.i18n import _, _LE, _LW +from ironic.common.i18n import _ from ironic.common import image_service from ironic.common import images from ironic.common import states @@ -130,11 +130,11 @@ def _get_boot_iso(task, root_uuid): image_service.HttpImageService().validate_href(boot_iso) except exception.ImageRefValidationFailed: with excutils.save_and_reraise_exception(): - LOG.error(_LE("Virtual media deploy accepts only Glance " - "images or HTTP(S) URLs as " - "instance_info['ilo_boot_iso']. Either %s " - "is not a valid HTTP(S) URL or is " - "not reachable."), boot_iso) + LOG.error("Virtual media deploy accepts only Glance " + "images or HTTP(S) URLs as " + "instance_info['ilo_boot_iso']. Either %s " + "is not a valid HTTP(S) URL or is " + "not reachable.", boot_iso) return task.node.instance_info['ilo_boot_iso'] @@ -158,8 +158,8 @@ def _get_boot_iso(task, root_uuid): return boot_iso_uuid if not kernel_href or not ramdisk_href: - LOG.error(_LE("Unable to find kernel or ramdisk for " - "image %(image)s to generate boot ISO for %(node)s"), + LOG.error("Unable to find kernel or ramdisk for " + "image %(image)s to generate boot ISO for %(node)s", {'image': image_href, 'node': task.node.uuid}) return @@ -218,8 +218,8 @@ def _clean_up_boot_iso_for_instance(node): try: swift_api.delete_object(container, boot_iso_object_name) except exception.SwiftOperationError as e: - LOG.exception(_LE("Failed to clean up boot ISO for node " - "%(node)s. Error: %(error)s."), + LOG.exception("Failed to clean up boot ISO for node " + "%(node)s. Error: %(error)s.", {'node': node.uuid, 'error': e}) elif CONF.ilo.use_web_server_for_images: result = urlparse.urlparse(ilo_boot_iso) @@ -490,8 +490,8 @@ class IloVirtualMediaBoot(base.BootInterface): if root_uuid_or_disk_id: self._configure_vmedia_boot(task, root_uuid_or_disk_id) else: - LOG.warning(_LW("The UUID for the root partition could not " - "be found for node %s"), node.uuid) + LOG.warning("The UUID for the root partition could not " + "be found for node %s", node.uuid) # Set boot mode ilo_common.update_boot_mode(task) # Need to enable secure boot, if being requested @@ -549,7 +549,7 @@ class IloVirtualMediaBoot(base.BootInterface): node = task.node boot_iso = _get_boot_iso(task, root_uuid) if not boot_iso: - LOG.error(_LE("Cannot get boot ISO for node %s"), node.uuid) + LOG.error("Cannot get boot ISO for node %s", node.uuid) return # Upon deploy complete, some distros cloud images reboot the system as |