blob: efa61b5c6ac1e37fdb4187d50098b5d1371972d2 [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):
lkuchlanf7fc5b62021-01-26 14:53:43 +020020 message = "Share %(resource_id)s failed to build and is in ERROR status"
Marc Koderer0abc93b2015-07-15 09:18:35 +020021
22
23class ShareInstanceBuildErrorException(exceptions.TempestException):
lkuchlanf7fc5b62021-01-26 14:53:43 +020024 message = ("Share instance %(resource_id)s failed to build and is in "
25 "ERROR status")
Marc Koderer0abc93b2015-07-15 09:18:35 +020026
27
Andrew Kerrb8436922016-06-01 15:32:43 -040028class ShareGroupBuildErrorException(exceptions.TempestException):
lkuchlanf7fc5b62021-01-26 14:53:43 +020029 message = ("Share group %(resource_id)s failed to build and "
Andrew Kerrb8436922016-06-01 15:32:43 -040030 "is in ERROR status")
Andrew Kerrbf31e912015-07-29 10:39:38 -040031
32
Marc Koderer0abc93b2015-07-15 09:18:35 +020033class AccessRuleBuildErrorException(exceptions.TempestException):
lkuchlanf7fc5b62021-01-26 14:53:43 +020034 message = "Share's rule with id %(resource_id)s is in ERROR status"
Marc Koderer0abc93b2015-07-15 09:18:35 +020035
36
37class SnapshotBuildErrorException(exceptions.TempestException):
lkuchlanf7fc5b62021-01-26 14:53:43 +020038 message = "Snapshot %(resource_id)s failed to build and is in ERROR status"
Marc Koderer0abc93b2015-07-15 09:18:35 +020039
40
zhongjun4e9bdfe2015-10-14 16:40:32 +080041class SnapshotInstanceBuildErrorException(exceptions.TempestException):
lkuchlanf7fc5b62021-01-26 14:53:43 +020042 message = ("Snapshot instance %(resource_id)s failed to build and is in "
zhongjun4e9bdfe2015-10-14 16:40:32 +080043 "ERROR status.")
44
45
Andrew Kerrb8436922016-06-01 15:32:43 -040046class ShareGroupSnapshotBuildErrorException(exceptions.TempestException):
lkuchlanf7fc5b62021-01-26 14:53:43 +020047 message = ("Share Group Snapshot %(resource_id)s failed "
Andrew Kerrb8436922016-06-01 15:32:43 -040048 "to build and is in ERROR status")
Andrew Kerrbf31e912015-07-29 10:39:38 -040049
50
Marc Koderer0abc93b2015-07-15 09:18:35 +020051class ShareProtocolNotSpecified(exceptions.TempestException):
52 message = "Share can not be created, share protocol is not specified"
53
54
55class ShareNetworkNotSpecified(exceptions.TempestException):
56 message = "Share can not be created, share network not specified"
57
58
59class NoAvailableNetwork(exceptions.TempestException):
60 message = "No available network for service VM"
61
62
63class InvalidResource(exceptions.TempestException):
64 message = "Provided invalid resource: %(message)s"
65
66
Rodrigo Barbierib7137ad2015-09-06 22:53:16 -030067class ShareMigrationException(exceptions.TempestException):
68 message = ("Share %(share_id)s failed to migrate from "
69 "host %(src)s to host %(dest)s.")
70
71
Marc Koderer0abc93b2015-07-15 09:18:35 +020072class ResourceReleaseFailed(exceptions.TempestException):
73 message = "Failed to release resource '%(res_type)s' with id '%(res_id)s'."
Yogeshbdb88102015-09-29 23:41:02 -040074
75
76class ShareReplicationTypeException(exceptions.TempestException):
77 message = ("Option backend_replication_type is set to incorrect value: "
78 "%(replication_type)s")
Lucio Seki37056942019-01-24 15:40:20 -020079
80
81class ShareServerBuildErrorException(exceptions.TempestException):
82 message = ("Share server %(server_id)s failed to build and is in ERROR "
83 "status")
debeltrami0d523bb2020-08-20 12:48:49 +000084
85
86class ShareServerMigrationException(exceptions.TempestException):
87 message = ("Share server %(server_id)s failed to migrate and is in ERROR "
88 "status")