blob: 3a11531d94ddaa65aaafd0338037e3055eecaa6a [file] [log] [blame]
Marc Koderer0abc93b2015-07-15 09:18:35 +02001# Copyright 2014 Mirantis Inc.
2# All Rights Reserved.
3#
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
15
Ben Swartzlander1c4ff522016-03-02 22:16:23 -050016from tempest.lib import exceptions
Marc Koderer0abc93b2015-07-15 09:18:35 +020017
18
19class ShareBuildErrorException(exceptions.TempestException):
20 message = "Share %(share_id)s failed to build and is in ERROR status"
21
22
23class ShareInstanceBuildErrorException(exceptions.TempestException):
24 message = "Share instance %(id)s failed to build and is in ERROR status"
25
26
Andrew Kerrbf31e912015-07-29 10:39:38 -040027class ConsistencyGroupBuildErrorException(exceptions.TempestException):
28 message = ("Consistency group %(consistency_group_id)s failed to build "
29 "and is in ERROR status")
30
31
Marc Koderer0abc93b2015-07-15 09:18:35 +020032class AccessRuleBuildErrorException(exceptions.TempestException):
33 message = "Share's rule with id %(rule_id)s is in ERROR status"
34
35
36class SnapshotBuildErrorException(exceptions.TempestException):
37 message = "Snapshot %(snapshot_id)s failed to build and is in ERROR status"
38
39
Andrew Kerrbf31e912015-07-29 10:39:38 -040040class CGSnapshotBuildErrorException(exceptions.TempestException):
41 message = ("CGSnapshot %(cgsnapshot_id)s failed to build and is in ERROR "
42 "status")
43
44
Marc Koderer0abc93b2015-07-15 09:18:35 +020045class ShareProtocolNotSpecified(exceptions.TempestException):
46 message = "Share can not be created, share protocol is not specified"
47
48
49class ShareNetworkNotSpecified(exceptions.TempestException):
50 message = "Share can not be created, share network not specified"
51
52
53class NoAvailableNetwork(exceptions.TempestException):
54 message = "No available network for service VM"
55
56
57class InvalidResource(exceptions.TempestException):
58 message = "Provided invalid resource: %(message)s"
59
60
Rodrigo Barbierib7137ad2015-09-06 22:53:16 -030061class ShareMigrationException(exceptions.TempestException):
62 message = ("Share %(share_id)s failed to migrate from "
63 "host %(src)s to host %(dest)s.")
64
65
Marc Koderer0abc93b2015-07-15 09:18:35 +020066class ResourceReleaseFailed(exceptions.TempestException):
67 message = "Failed to release resource '%(res_type)s' with id '%(res_id)s'."
Yogeshbdb88102015-09-29 23:41:02 -040068
69
70class ShareReplicationTypeException(exceptions.TempestException):
71 message = ("Option backend_replication_type is set to incorrect value: "
72 "%(replication_type)s")