
Co-Authored-By: Alberto Barros <albertoffb@lsd.ufcg.edu.br> Co-Authored-By: André Aranha <afaranha@lsd.ufcg.edu.br> Co-Authored-By: Caio Oliveira <caiobo@lsd.ufcg.edu.br> Co-Authored-By: Diego Pereira <diegolp@lsd.ufcg.edu.br> Co-Authored-By: Gabriel Bezerra <gabrielb@lsd.ufcg.edu.br> Co-Authored-By: Lilia Sampaio <liliars@lsd.ufcg.edu.br> Co-Authored-By: Thiago Paiva <thiagop@lsd.ufcg.edu.br> Change-Id: I8c7457157f6d5a2599cccb9e86be240fc4283767
76 lines
2.4 KiB
Python
76 lines
2.4 KiB
Python
# -*- encoding: utf-8 -*-
|
|
#
|
|
# (c) Copyright 2015 Hewlett Packard Enterprise Development LP
|
|
# Copyright 2015 Universidade Federal de Campina Grande
|
|
#
|
|
# 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.
|
|
|
|
|
|
class OneViewConnectionError(Exception):
|
|
message = "Can't connect to OneView"
|
|
|
|
|
|
class OneViewNotAuthorizedException(Exception):
|
|
message = ("Unauthorized access to OneView. Check the credentials used.")
|
|
|
|
|
|
class OneViewResourceNotFoundError(Exception):
|
|
message = ("Resource not found in OneView")
|
|
|
|
|
|
class OneViewServerProfileTemplateError(Exception):
|
|
message = ("Server Profile Template not found in the node's driver_info")
|
|
|
|
|
|
class OneViewMaxPollingAttemptsExceededError(Exception):
|
|
message = ("Max polling attempts to OneView exceeded")
|
|
|
|
|
|
class OneViewBootDeviceInvalidError(Exception):
|
|
message = ("Device selected is not a valid boot device")
|
|
|
|
|
|
class OneViewServerProfileAssociatedError(Exception):
|
|
message = ("There is no Server Profile assigned to this Server"
|
|
" Hardware")
|
|
|
|
|
|
class OneViewErrorStateSettingPowerState(Exception):
|
|
message = ("Server Hardware went to error state when trying to change"
|
|
" power state")
|
|
|
|
|
|
class OneViewErrorSettingBootDevice(Exception):
|
|
message = ("Server Hardware went to error state when trying to change"
|
|
" the primary boot device")
|
|
|
|
|
|
class OneViewTaskError(Exception):
|
|
message = ("The task for this action in OneView returned an error state")
|
|
|
|
|
|
class OneViewInconsistentResource(Exception):
|
|
message = ("The resource is inconsistent with its OneView counterpart")
|
|
|
|
|
|
class OneViewHealthStatusError(Exception):
|
|
message = ("There is a health status issue with an OneView Server Profile")
|
|
|
|
|
|
class IncompatibleOneViewAPIVersion(Exception):
|
|
message = ("The version of OneView's API is unsupported")
|
|
|
|
|
|
class UnknowOneViewResponseError(Exception):
|
|
message = ("OneView appliance returned an unknown response status")
|