/
exceptions.py
112 lines (60 loc) · 1.97 KB
/
exceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
"""Module of exceptions that zaza may raise."""
class MissingOSAthenticationException(Exception):
"""Exception when some data needed to authenticate is missing."""
pass
class CloudInitIncomplete(Exception):
"""Cloud init has not completed properly."""
pass
class SSHFailed(Exception):
"""SSH failed."""
pass
class NeutronAgentMissing(Exception):
"""Agent binary does not appear in the Neutron agent list."""
pass
class NeutronBGPSpeakerMissing(Exception):
"""No BGP speaker appeared on agent."""
pass
class ApplicationNotFound(Exception):
"""Application not found in machines."""
def __init__(self, application):
"""Create Application not found exception.
:param application: Name of the application
:type application: string
:returns: ApplicationNotFound Exception
"""
msg = ("{} application was not found in machines.".
format(application))
super(ApplicationNotFound, self).__init__(msg)
class SeriesNotFound(Exception):
"""Series not found in status."""
pass
class OSVersionNotFound(Exception):
"""OS Version not found."""
pass
class ReleasePairNotFound(Exception):
"""Release pair was not found in OPENSTACK_RELEASES_PAIRS."""
pass
class ProcessNameCountMismatch(Exception):
"""Count of process names doesn't match."""
pass
class ProcessNameMismatch(Exception):
"""Name of processes doesn't match."""
pass
class PIDCountMismatch(Exception):
"""PID's count doesn't match."""
pass
class ProcessIdsFailed(Exception):
"""Process ID lookup failed."""
pass
class UnitNotFound(Exception):
"""Unit not found in actual dict."""
pass
class UnitCountMismatch(Exception):
"""Count of unit doesn't match."""
pass
class UbuntuReleaseNotFound(Exception):
"""Ubuntu release not found in list."""
pass
class ServiceNotFound(Exception):
"""Service not found on unit."""
pass