Matthew Treinish | 8bdf6e3 | 2014-04-03 11:49:14 -0400 | [diff] [blame] | 1 | # Copyright 2012 OpenStack Foundation |
| 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 | |
Andrea Frittoli (andreaf) | af4f7cf | 2016-06-13 15:12:26 +0100 | [diff] [blame] | 16 | |
| 17 | from tempest.lib import exceptions |
Matthew Treinish | 8bdf6e3 | 2014-04-03 11:49:14 -0400 | [diff] [blame] | 18 | |
| 19 | |
Andrea Frittoli (andreaf) | af4f7cf | 2016-06-13 15:12:26 +0100 | [diff] [blame] | 20 | class BuildErrorException(exceptions.TempestException): |
Matthew Treinish | 8bdf6e3 | 2014-04-03 11:49:14 -0400 | [diff] [blame] | 21 | message = "Server %(server_id)s failed to build and is in ERROR status" |
| 22 | |
| 23 | |
Matt Riedemann | 1395435 | 2017-02-07 14:03:54 -0500 | [diff] [blame] | 24 | class SnapshotNotFoundException(exceptions.TempestException): |
| 25 | message = "Server snapshot image %(image_id)s not found." |
| 26 | |
| 27 | |
Andrea Frittoli (andreaf) | af4f7cf | 2016-06-13 15:12:26 +0100 | [diff] [blame] | 28 | class ImageKilledException(exceptions.TempestException): |
Matthew Treinish | 8bdf6e3 | 2014-04-03 11:49:14 -0400 | [diff] [blame] | 29 | message = "Image %(image_id)s 'killed' while waiting for '%(status)s'" |
| 30 | |
| 31 | |
Andrea Frittoli (andreaf) | af4f7cf | 2016-06-13 15:12:26 +0100 | [diff] [blame] | 32 | class AddImageException(exceptions.TempestException): |
Matthew Treinish | 8bdf6e3 | 2014-04-03 11:49:14 -0400 | [diff] [blame] | 33 | message = "Image %(image_id)s failed to become ACTIVE in the allotted time" |
| 34 | |
| 35 | |
lkuchlan | 52d7b0d | 2016-11-07 20:53:19 +0200 | [diff] [blame] | 36 | class VolumeResourceBuildErrorException(exceptions.TempestException): |
| 37 | message = ("%(resource_name)s %(resource_id)s failed to build and is in " |
| 38 | "ERROR status") |
Matthew Treinish | 8bdf6e3 | 2014-04-03 11:49:14 -0400 | [diff] [blame] | 39 | |
| 40 | |
Andrea Frittoli (andreaf) | af4f7cf | 2016-06-13 15:12:26 +0100 | [diff] [blame] | 41 | class VolumeRestoreErrorException(exceptions.TempestException): |
Matt Riedemann | f77e7dc | 2015-08-10 16:39:39 -0700 | [diff] [blame] | 42 | message = "Volume %(volume_id)s failed to restore and is in ERROR status" |
| 43 | |
| 44 | |
zhufl | 0ea2c01 | 2019-06-03 15:37:13 +0800 | [diff] [blame] | 45 | class VolumeExtendErrorException(exceptions.TempestException): |
| 46 | message = ("Volume %(volume_id)s failed to extend and " |
| 47 | "is in error_extending status") |
| 48 | |
| 49 | |
Andrea Frittoli (andreaf) | af4f7cf | 2016-06-13 15:12:26 +0100 | [diff] [blame] | 50 | class StackBuildErrorException(exceptions.TempestException): |
Matthew Treinish | 8bdf6e3 | 2014-04-03 11:49:14 -0400 | [diff] [blame] | 51 | message = ("Stack %(stack_identifier)s is in %(stack_status)s status " |
| 52 | "due to '%(stack_status_reason)s'") |
| 53 | |
| 54 | |
Andrea Frittoli (andreaf) | af4f7cf | 2016-06-13 15:12:26 +0100 | [diff] [blame] | 55 | class ServerUnreachable(exceptions.TempestException): |
zhufl | 955f82b | 2016-07-22 11:14:34 +0800 | [diff] [blame] | 56 | message = ("Server %(server_id)s is not reachable via " |
| 57 | "the configured network") |
Matthew Treinish | 8bdf6e3 | 2014-04-03 11:49:14 -0400 | [diff] [blame] | 58 | |
| 59 | |
Andrea Frittoli | cd36841 | 2017-08-14 21:37:56 +0100 | [diff] [blame] | 60 | class InvalidServiceTag(exceptions.TempestException): |
| 61 | message = "Invalid service tag" |