Marc Koderer | 0abc93b | 2015-07-15 09:18:35 +0200 | [diff] [blame] | 1 | # 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 Swartzlander | 1c4ff52 | 2016-03-02 22:16:23 -0500 | [diff] [blame] | 16 | from tempest.lib import exceptions |
Marc Koderer | 0abc93b | 2015-07-15 09:18:35 +0200 | [diff] [blame] | 17 | |
| 18 | |
| 19 | class ShareBuildErrorException(exceptions.TempestException): |
lkuchlan | f7fc5b6 | 2021-01-26 14:53:43 +0200 | [diff] [blame] | 20 | message = "Share %(resource_id)s failed to build and is in ERROR status" |
Marc Koderer | 0abc93b | 2015-07-15 09:18:35 +0200 | [diff] [blame] | 21 | |
| 22 | |
| 23 | class ShareInstanceBuildErrorException(exceptions.TempestException): |
lkuchlan | f7fc5b6 | 2021-01-26 14:53:43 +0200 | [diff] [blame] | 24 | message = ("Share instance %(resource_id)s failed to build and is in " |
| 25 | "ERROR status") |
Marc Koderer | 0abc93b | 2015-07-15 09:18:35 +0200 | [diff] [blame] | 26 | |
| 27 | |
Andrew Kerr | b843692 | 2016-06-01 15:32:43 -0400 | [diff] [blame] | 28 | class ShareGroupBuildErrorException(exceptions.TempestException): |
lkuchlan | f7fc5b6 | 2021-01-26 14:53:43 +0200 | [diff] [blame] | 29 | message = ("Share group %(resource_id)s failed to build and " |
Andrew Kerr | b843692 | 2016-06-01 15:32:43 -0400 | [diff] [blame] | 30 | "is in ERROR status") |
Andrew Kerr | bf31e91 | 2015-07-29 10:39:38 -0400 | [diff] [blame] | 31 | |
| 32 | |
Marc Koderer | 0abc93b | 2015-07-15 09:18:35 +0200 | [diff] [blame] | 33 | class AccessRuleBuildErrorException(exceptions.TempestException): |
lkuchlan | f7fc5b6 | 2021-01-26 14:53:43 +0200 | [diff] [blame] | 34 | message = "Share's rule with id %(resource_id)s is in ERROR status" |
Marc Koderer | 0abc93b | 2015-07-15 09:18:35 +0200 | [diff] [blame] | 35 | |
| 36 | |
| 37 | class SnapshotBuildErrorException(exceptions.TempestException): |
lkuchlan | f7fc5b6 | 2021-01-26 14:53:43 +0200 | [diff] [blame] | 38 | message = "Snapshot %(resource_id)s failed to build and is in ERROR status" |
Marc Koderer | 0abc93b | 2015-07-15 09:18:35 +0200 | [diff] [blame] | 39 | |
| 40 | |
zhongjun | 4e9bdfe | 2015-10-14 16:40:32 +0800 | [diff] [blame] | 41 | class SnapshotInstanceBuildErrorException(exceptions.TempestException): |
lkuchlan | f7fc5b6 | 2021-01-26 14:53:43 +0200 | [diff] [blame] | 42 | message = ("Snapshot instance %(resource_id)s failed to build and is in " |
zhongjun | 4e9bdfe | 2015-10-14 16:40:32 +0800 | [diff] [blame] | 43 | "ERROR status.") |
| 44 | |
| 45 | |
Andrew Kerr | b843692 | 2016-06-01 15:32:43 -0400 | [diff] [blame] | 46 | class ShareGroupSnapshotBuildErrorException(exceptions.TempestException): |
lkuchlan | f7fc5b6 | 2021-01-26 14:53:43 +0200 | [diff] [blame] | 47 | message = ("Share Group Snapshot %(resource_id)s failed " |
Andrew Kerr | b843692 | 2016-06-01 15:32:43 -0400 | [diff] [blame] | 48 | "to build and is in ERROR status") |
Andrew Kerr | bf31e91 | 2015-07-29 10:39:38 -0400 | [diff] [blame] | 49 | |
| 50 | |
Marc Koderer | 0abc93b | 2015-07-15 09:18:35 +0200 | [diff] [blame] | 51 | class ShareProtocolNotSpecified(exceptions.TempestException): |
| 52 | message = "Share can not be created, share protocol is not specified" |
| 53 | |
| 54 | |
| 55 | class ShareNetworkNotSpecified(exceptions.TempestException): |
| 56 | message = "Share can not be created, share network not specified" |
| 57 | |
| 58 | |
| 59 | class NoAvailableNetwork(exceptions.TempestException): |
| 60 | message = "No available network for service VM" |
| 61 | |
| 62 | |
| 63 | class InvalidResource(exceptions.TempestException): |
| 64 | message = "Provided invalid resource: %(message)s" |
| 65 | |
| 66 | |
Rodrigo Barbieri | b7137ad | 2015-09-06 22:53:16 -0300 | [diff] [blame] | 67 | class ShareMigrationException(exceptions.TempestException): |
| 68 | message = ("Share %(share_id)s failed to migrate from " |
| 69 | "host %(src)s to host %(dest)s.") |
| 70 | |
| 71 | |
Marc Koderer | 0abc93b | 2015-07-15 09:18:35 +0200 | [diff] [blame] | 72 | class ResourceReleaseFailed(exceptions.TempestException): |
| 73 | message = "Failed to release resource '%(res_type)s' with id '%(res_id)s'." |
Yogesh | bdb8810 | 2015-09-29 23:41:02 -0400 | [diff] [blame] | 74 | |
| 75 | |
| 76 | class ShareReplicationTypeException(exceptions.TempestException): |
| 77 | message = ("Option backend_replication_type is set to incorrect value: " |
| 78 | "%(replication_type)s") |
Lucio Seki | 3705694 | 2019-01-24 15:40:20 -0200 | [diff] [blame] | 79 | |
| 80 | |
| 81 | class ShareServerBuildErrorException(exceptions.TempestException): |
| 82 | message = ("Share server %(server_id)s failed to build and is in ERROR " |
| 83 | "status") |
debeltrami | 0d523bb | 2020-08-20 12:48:49 +0000 | [diff] [blame] | 84 | |
| 85 | |
| 86 | class ShareServerMigrationException(exceptions.TempestException): |
| 87 | message = ("Share server %(server_id)s failed to migrate and is in ERROR " |
| 88 | "status") |
Kiran Pawar | edd82c7 | 2022-05-07 14:48:36 +0000 | [diff] [blame] | 89 | |
| 90 | |
silvacarloss | cbab9fe | 2024-03-06 19:24:36 -0300 | [diff] [blame^] | 91 | class ShareBackupBuildErrorException(exceptions.TempestException): |
Kiran Pawar | edd82c7 | 2022-05-07 14:48:36 +0000 | [diff] [blame] | 92 | message = ("Share backup %(backup_id)s failed and is in ERROR status") |