blob: 67b4fca6e612b168d2e2023c7993897ff0d5b819 [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 Kerrb8436922016-06-01 15:32:43 -040027class ShareGroupBuildErrorException(exceptions.TempestException):
28 message = ("Share group %(share_group_id)s failed to build and "
29 "is in ERROR status")
Andrew Kerrbf31e912015-07-29 10:39:38 -040030
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
zhongjun4e9bdfe2015-10-14 16:40:32 +080040class SnapshotInstanceBuildErrorException(exceptions.TempestException):
41 message = ("Snapshot instance %(id)s failed to build and is in "
42 "ERROR status.")
43
44
Andrew Kerrb8436922016-06-01 15:32:43 -040045class ShareGroupSnapshotBuildErrorException(exceptions.TempestException):
46 message = ("Share Group Snapshot %(share_group_snapshot_id)s failed "
47 "to build and is in ERROR status")
Andrew Kerrbf31e912015-07-29 10:39:38 -040048
49
Marc Koderer0abc93b2015-07-15 09:18:35 +020050class ShareProtocolNotSpecified(exceptions.TempestException):
51 message = "Share can not be created, share protocol is not specified"
52
53
54class ShareNetworkNotSpecified(exceptions.TempestException):
55 message = "Share can not be created, share network not specified"
56
57
58class NoAvailableNetwork(exceptions.TempestException):
59 message = "No available network for service VM"
60
61
62class InvalidResource(exceptions.TempestException):
63 message = "Provided invalid resource: %(message)s"
64
65
Rodrigo Barbierib7137ad2015-09-06 22:53:16 -030066class ShareMigrationException(exceptions.TempestException):
67 message = ("Share %(share_id)s failed to migrate from "
68 "host %(src)s to host %(dest)s.")
69
70
Marc Koderer0abc93b2015-07-15 09:18:35 +020071class ResourceReleaseFailed(exceptions.TempestException):
72 message = "Failed to release resource '%(res_type)s' with id '%(res_id)s'."
Yogeshbdb88102015-09-29 23:41:02 -040073
74
75class ShareReplicationTypeException(exceptions.TempestException):
76 message = ("Option backend_replication_type is set to incorrect value: "
77 "%(replication_type)s")
Lucio Seki37056942019-01-24 15:40:20 -020078
79
80class ShareServerBuildErrorException(exceptions.TempestException):
81 message = ("Share server %(server_id)s failed to build and is in ERROR "
82 "status")