1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
5
# Licensed under the Apache License, Version 2.0 (the "License"); you may
6
# not use this file except in compliance with the License. You may obtain
7
# a copy of the License at
9
# http://www.apache.org/licenses/LICENSE-2.0
11
# Unless required by applicable law or agreed to in writing, software
12
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
# License for the specific language governing permissions and limitations
17
from nova import exception
20
class PowerVMConnectionFailed(exception.NovaException):
21
message = _('Connection to PowerVM manager failed')
24
class PowerVMFileTransferFailed(exception.NovaException):
25
message = _("File '%(file_path)' transfer to PowerVM manager failed")
28
class PowerVMLPARInstanceNotFound(exception.NovaException):
29
message = _("LPAR instance '%(instance_name)s' could not be found")
32
class PowerVMLPARCreationFailed(exception.NovaException):
33
message = _("LPAR instance '%(instance_name)s' creation failed")
36
class PowerVMNoSpaceLeftOnVolumeGroup(exception.NovaException):
37
message = _("No space left on any volume group")
40
class PowerVMLPARAttributeNotFound(exception.NovaException):
44
class PowerVMImageCreationFailed(exception.NovaException):
45
message = _("Image creation failed on PowerVM")
48
class PowerVMInsufficientFreeMemory(exception.NovaException):
49
message = _("Insufficient free memory on PowerVM system to spawn instance "
50
"'%(instance_name)s'")
53
class PowerVMInsufficientCPU(exception.NovaException):
54
message = _("Insufficient available CPUs on PowerVM system to spawn "
55
"instance '%(instance_name)s'")
58
class PowerVMLPARInstanceCleanupFailed(exception.NovaException):
59
message = _("PowerVM LPAR instance '%(instance_name)s' cleanup failed")