Files
tobiko/tobiko/openstack/manila/_exceptions.py
lkuchlan 5d04e37ab0 [Manila] pre-upgrade resource creation and post-procedure validation
There's a need to create a Manila share resource before the upgrade
process and then validate the share after the process is complete.
To achieve this objective, it is essential to incorporate support for
the Manila client, a task that is accomplished through this commit.

Change-Id: I0d520e40a1a491ee864e707d63413d10035b99ca
2023-10-09 12:45:10 +00:00

25 lines
867 B
Python

# Copyright 2023 Red Hat
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
import tobiko
class ShareNotFound(tobiko.ObjectNotFound):
message = "No such manila share {id!r}"
class ShareReleaseFailed(tobiko.ObjectNotFound):
message = "Share has 'error_deleting' status and can not be deleted"