~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/virt/powervm/exception.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
 
2
 
 
3
# Copyright 2012 IBM
 
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
 
8
#
 
9
#         http://www.apache.org/licenses/LICENSE-2.0
 
10
#
 
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
 
15
#    under the License.
 
16
 
 
17
from nova import exception
 
18
 
 
19
 
 
20
class PowerVMConnectionFailed(exception.NovaException):
 
21
    message = _('Connection to PowerVM manager failed')
 
22
 
 
23
 
 
24
class PowerVMFileTransferFailed(exception.NovaException):
 
25
    message = _("File '%(file_path)' transfer to PowerVM manager failed")
 
26
 
 
27
 
 
28
class PowerVMLPARInstanceNotFound(exception.NovaException):
 
29
    message = _("LPAR instance '%(instance_name)s' could not be found")
 
30
 
 
31
 
 
32
class PowerVMLPARCreationFailed(exception.NovaException):
 
33
    message = _("LPAR instance '%(instance_name)s' creation failed")
 
34
 
 
35
 
 
36
class PowerVMNoSpaceLeftOnVolumeGroup(exception.NovaException):
 
37
    message = _("No space left on any volume group")
 
38
 
 
39
 
 
40
class PowerVMLPARAttributeNotFound(exception.NovaException):
 
41
    pass
 
42
 
 
43
 
 
44
class PowerVMImageCreationFailed(exception.NovaException):
 
45
    message = _("Image creation failed on PowerVM")
 
46
 
 
47
 
 
48
class PowerVMInsufficientFreeMemory(exception.NovaException):
 
49
    message = _("Insufficient free memory on PowerVM system to spawn instance "
 
50
                "'%(instance_name)s'")
 
51
 
 
52
 
 
53
class PowerVMInsufficientCPU(exception.NovaException):
 
54
    message = _("Insufficient available CPUs on PowerVM system to spawn "
 
55
                "instance '%(instance_name)s'")
 
56
 
 
57
 
 
58
class PowerVMLPARInstanceCleanupFailed(exception.NovaException):
 
59
    message = _("PowerVM LPAR instance '%(instance_name)s' cleanup failed")