cfme.exceptions module¶
Provides custom exceptions for the cfme module.
-
exception
cfme.exceptions.ApplianceVersionException(msg, version)[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised when functionality is not supported on this version of the appliance
-
exception
cfme.exceptions.AuthModeUnknown[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if an invalid authenctication mode is passed to
cfme.configure.configuration.ServerAuthentication.configure_auth()
-
exception
cfme.exceptions.AutomateImportError[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised by scripts dealing with Automate when importing automate XML fails
-
exception
cfme.exceptions.BugException(bug_no, operation)[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised by methods inside the framework that are broken due to a bug
-
exception
cfme.exceptions.CFMEException[source]¶ Bases:
ExceptionBase class for exceptions in the CFME tree
Used to easily catch errors of our own making, versus errors from external libraries.
-
exception
cfme.exceptions.CFMEExceptionOccured[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised by when there is a Rails exception currently on page.
-
exception
cfme.exceptions.CUCommandException[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised when one of the commands run to set up a CU VM fails
-
exception
cfme.exceptions.CandidateNotFound(d)[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if there is no candidate found whilst trying to traverse a tree
-
message¶
-
Bases:
cfme.exceptions.CFMEExceptionUsed when it is not possible to continue with navigation.
Raising it will recycle the browser, therefore refresh the session. If you pass a string to the constructor, it will be written to the log.
-
exception
cfme.exceptions.CannotScrollException[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised when even during the heaviest workarounds for scrolling failure comes.
-
exception
cfme.exceptions.ChargebackRateNotFound[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised when a given chargeback (compute or storage) rate is not found during navigation
-
exception
cfme.exceptions.ChassisStatsDoesNotContain[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if the chassis information does not contain the specified key whilst running
cfme.cloud.provider.Provider.do_stats_match().
-
exception
cfme.exceptions.CollectionFilteringError(collection, filter_key)[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised when an action on an un-filtered collection is attempted that requires a filter Common example would be navigation to an ‘AllForProvider’ destination against a collection that does not have a provider filter
-
exception
cfme.exceptions.ConsoleNotSupported(product_name, version)[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised by functions in
cfme.configure.configurationwhen an invalid console type is given
-
exception
cfme.exceptions.ConsoleTypeNotSupported(console_type)[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised by functions in
cfme.configure.configurationwhen an invalid console type is given
-
exception
cfme.exceptions.DestinationNotFound[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised during navigation where the navigator destination is not found
-
exception
cfme.exceptions.HostStatsNotContains[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if the hosts information does not contain the specified key whilst running
cfme.cloud.provider.Provider.do_stats_match().
-
exception
cfme.exceptions.ItemNotFound[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised when an item is not found in general.
-
exception
cfme.exceptions.KeyPairNotFound[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if a specific cloud key pair cannot be found in the UI
-
exception
cfme.exceptions.LabelNotFoundException[source]¶ Bases:
ExceptionRaises when failed to remove label from object via cli
-
exception
cfme.exceptions.ManyEntitiesFound[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised when one or no items were expected but several/many items were obtained instead.
-
exception
cfme.exceptions.MenuItemNotFound[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised during navigation of certain menu item was not found.
Bases:
cfme.exceptions.CFMEExceptionRaised when pytest_selenium.go_to function is unable to navigate to the requested page.
-
exception
cfme.exceptions.NeedleNotFoundInLog[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised when log doesnt’t contain needle
-
exception
cfme.exceptions.NodeNotFound[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if a specific container node cannot be found in the UI
-
exception
cfme.exceptions.OptionNotAvailable[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if a specified option is not available.
-
exception
cfme.exceptions.ProviderHasNoKey[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if the
cfme.cloud.provider.Provider.mgmt()method is called but the Provider instance has no key.
-
exception
cfme.exceptions.ProviderHasNoProperty[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if the provider does not have the property requested whilst running
cfme.cloud.provider.Provider.do_stats_match().
-
exception
cfme.exceptions.RBACOperationBlocked[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised when a Role Based Access Control operation is blocked from execution due to invalid permissions. Also thrown when trying to perform actions CRUD operations on roles/groups/users that are CFME defaults
-
exception
cfme.exceptions.RackStatsDoesNotContain[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if the rack information does not contain the specified key whilst running
cfme.cloud.provider.Provider.do_stats_match().
-
exception
cfme.exceptions.RequestException[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if a request was not found or multiple rows matched during _request functions in
cfme.services.requests
-
exception
cfme.exceptions.StatsDoNotMatch[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if the stats retrieved from CFME do not match those retrieved by wrapanapi
-
exception
cfme.exceptions.TaskFailedException(task_name, message)[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised by functions in
cfme/configure/taskswhen task is finished with some error message
Bases:
cfme.exceptions.CFMEExceptionRaised when toolbar wants to click item that is greyed or unavailable
-
exception
cfme.exceptions.UnknownProviderType[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised when the passed provider or provider type is not known or usable in given context e.g. when getting a provider from yaml and the provider type doesn’t match any of known types or when an infra provider is passed to the cloud’s instance_factory method
-
exception
cfme.exceptions.VmNotFoundViaIP[source]¶ Bases:
cfme.exceptions.CFMEExceptionRaised if a specific VM cannot be found.
-
cfme.exceptions.displayed_not_implemented¶