diff options
| author | Dmitry Tantsur <dtantsur@protonmail.com> | 2021-05-10 12:43:17 +0200 |
|---|---|---|
| committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2021-05-10 12:43:44 +0200 |
| commit | be3882162e432b292af9e787661661a05fa7d11a (patch) | |
| tree | 852c7b95ce25bb71c8dd208a28d4c2f7bcdf9f34 /ironic_python_agent/errors.py | |
| parent | 6fb4cec7aa0a3edc76b0e07cc9e7cc0b1d4a4e99 (diff) | |
| download | ironic-python-agent-be3882162e432b292af9e787661661a05fa7d11a.tar.gz | |
Remove the iscsi extension
Change-Id: I2f0e581575112d6c7ba0d211661cab3e0b6caca6
Diffstat (limited to 'ironic_python_agent/errors.py')
| -rw-r--r-- | ironic_python_agent/errors.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ironic_python_agent/errors.py b/ironic_python_agent/errors.py index 0f7a185c..1f97c0e2 100644 --- a/ironic_python_agent/errors.py +++ b/ironic_python_agent/errors.py @@ -312,31 +312,12 @@ class DeploymentError(RESTError): super(DeploymentError, self).__init__(details) -class ISCSIError(RESTError): - """Error raised when an image cannot be written to a device.""" - - message = 'Error starting iSCSI target' - - def __init__(self, error_msg): - details = 'Error starting iSCSI target: {}'.format(error_msg) - super(ISCSIError, self).__init__(details) - - class IncompatibleNumaFormatError(RESTError): """Error raised when unexpected format data in NUMA node.""" message = 'Error in NUMA node data format' -class ISCSICommandError(ISCSIError): - """Error executing TGT command.""" - - def __init__(self, error_msg, exit_code, stdout, stderr): - details = ('{}. Failed with exit code {}. stdout: {}. stderr: {}') - details = details.format(error_msg, exit_code, stdout, stderr) - super(ISCSICommandError, self).__init__(details) - - class DeviceNotFound(NotFound): """Error raised when the device to deploy the image onto is not found.""" |
