blob: 33478cd15961e0aaca169541f9843bcf0771d2a1 [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
16from tempest_lib import exceptions
17
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
27class AccessRuleBuildErrorException(exceptions.TempestException):
28 message = "Share's rule with id %(rule_id)s is in ERROR status"
29
30
31class SnapshotBuildErrorException(exceptions.TempestException):
32 message = "Snapshot %(snapshot_id)s failed to build and is in ERROR status"
33
34
35class ShareProtocolNotSpecified(exceptions.TempestException):
36 message = "Share can not be created, share protocol is not specified"
37
38
39class ShareNetworkNotSpecified(exceptions.TempestException):
40 message = "Share can not be created, share network not specified"
41
42
43class NoAvailableNetwork(exceptions.TempestException):
44 message = "No available network for service VM"
45
46
47class InvalidResource(exceptions.TempestException):
48 message = "Provided invalid resource: %(message)s"
49
50
Rodrigo Barbierib7137ad2015-09-06 22:53:16 -030051class ShareMigrationException(exceptions.TempestException):
52 message = ("Share %(share_id)s failed to migrate from "
53 "host %(src)s to host %(dest)s.")
54
55
Marc Koderer0abc93b2015-07-15 09:18:35 +020056class ResourceReleaseFailed(exceptions.TempestException):
57 message = "Failed to release resource '%(res_type)s' with id '%(res_id)s'."