heat.common.exception 模块¶
Heat 异常子类
- exception heat.common.exception.ActionInProgress(**kwargs)[source]¶
基类:
HeatException- msg_fmt = 'Stack %(stack_name)s 已经 有一个 正在进行中的 操作 (%(action)s) 。'¶
- exception heat.common.exception.ActionNotComplete(**kwargs)[source]¶
基类:
HeatException- msg_fmt = 'Stack %(stack_name)s 有一个 正在进行中或 失败状态的操作 (%(action)s) 。'¶
- exception heat.common.exception.AuthorizationFailure(failure_reason='')[source]¶
基类:
HeatException- msg_fmt = '授权失败。%(failure_reason)s'¶
- exception heat.common.exception.CircularDependencyException(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '发现循环依赖:%(cycle)s'¶
- exception heat.common.exception.ClientNotAvailable(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '客户端 (%(client_name)s) 不可用。'¶
- exception heat.common.exception.ConcurrentTransaction(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '并发事务,用于 %(action)s'¶
- exception heat.common.exception.ConflictingMergeStrategyForParam(**kwargs)[source]¶
基类:
HeatException- msg_fmt = "参数 '%(param)s' 在文件 '%(env_file)s' 中存在冲突的合并策略 '%(strategy)s'。"¶
- exception heat.common.exception.DownloadLimitExceeded(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '超过允许的下载限制:%(message)s'¶
- exception heat.common.exception.EgressRuleNotAllowed(**kwargs)[source]¶
基类:
HeatException- msg_fmt = "仅当使用 Neutron 并且设置了 'VpcId' 属性时才允许出站规则。"¶
- exception heat.common.exception.EntityNotFound(entity=None, name=None, **kwargs)[source]¶
基类:
HeatException- msg_fmt = '无法找到 %(entity)s (%(name)s) 。'¶
- exception heat.common.exception.Error(msg)[source]¶
基类:
HeatException- msg_fmt = '%(message)s'¶
- exception heat.common.exception.EventSendFailed(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '将消息发送到堆栈 (%(stack_name)s) 在其他引擎 (%(engine_id)s) 上失败。'¶
- exception heat.common.exception.Forbidden(action='此操作')[source]¶
基类:
HeatException- msg_fmt = '您无权使用 %(action)s 。'¶
- exception heat.common.exception.HTTPExceptionDisguise(exception)[source]¶
基础:
Exception伪装 HTTP 异常。
它们可以由 wsgi 管道中的 webob 错误应用程序处理。
- safe = True¶
- exception heat.common.exception.HeatException(**kwargs)[source]¶
基础:
ExceptionHeat 基础异常。
要正确使用此类,请从中继承并定义一个“msg_fmt”属性。该 msg_fmt 将使用提供给构造函数的关键字参数进行格式化。
- error_code = None¶
- message = '发生未知异常。'¶
- safe = True¶
- exception heat.common.exception.HeatExceptionWithPath(error=None, path=None, message=None)[source]¶
基类:
HeatException- msg_fmt = '%(error)s%(path)s%(message)s'¶
- exception heat.common.exception.ImmutableParameterModified(*args, **kwargs)[source]¶
基类:
HeatException- msg_fmt = '以下参数不可变,可能无法更新:%(keys)s'¶
- exception heat.common.exception.IncompatibleObjectVersion(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(objname)s 的版本 %(objver)s 不受支持'¶
- exception heat.common.exception.InterfaceAttachFailed(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '将接口 (%(port)s) 附加到服务器 (%(server)s) 失败'¶
- exception heat.common.exception.InterfaceDetachFailed(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '从服务器 (%(server)s) 分离接口 (%(port)s) 失败'¶
- exception heat.common.exception.Invalid(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '提供的数据无效:%(reason)s'¶
- exception heat.common.exception.InvalidBreakPointHook(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(message)s'¶
- exception heat.common.exception.InvalidContentType(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '无效的内容类型 %(content_type)s'¶
- exception heat.common.exception.InvalidEncryptionKey(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '无法使用 heat 配置中的 auth_encryption_key 解密数据。'¶
- exception heat.common.exception.InvalidExternalResourceDependency(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '使用外部 %(resource_type)s 资源时的依赖关系无效:%(external_id)s'¶
- exception heat.common.exception.InvalidGlobalResource(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '加载全局资源类型 %(type_name)s 的定义时出错。'¶
- exception heat.common.exception.InvalidMergeStrategyForParam(**kwargs)[source]¶
基类:
HeatException- msg_fmt = "参数 '%(param)s' 的合并策略 '%(strategy)s' 无效。"¶
- exception heat.common.exception.InvalidRestrictedAction(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(message)s'¶
- exception heat.common.exception.InvalidSchemaError(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(message)s'¶
- exception heat.common.exception.InvalidServiceVersion(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '无效的服务 %(service)s 版本 %(version)s'¶
- exception heat.common.exception.InvalidTemplateAttribute(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '引用的属性 (%(resource)s %(key)s) 不正确。'¶
- exception heat.common.exception.InvalidTemplateReference(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '指定的引用 "%(resource)s" (在 %(key)s 中) 不正确。'¶
- exception heat.common.exception.InvalidTemplateSection(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '模板部分无效:%(section)s'¶
- exception heat.common.exception.InvalidTemplateVersion(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '模板版本无效:%(explanation)s'¶
- 异常 heat.common.exception.InvalidTemplateVersions(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '模板 版本 别名 %(version)s 是 为 没有 官方 YYYY-MM-DD 版本的 模板 类 添加的。'¶
- 异常 heat.common.exception.InvalidTenant(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '从 租户 %(actual)s 搜索 租户 %(target)s 被禁止。'¶
- 异常 heat.common.exception.KeystoneServiceNameConflict(**kwargs)[source]¶
基类:
HeatException- msg_fmt = 'Keystone 拥有 多个 具有相同名称 %(service)s 的服务。请使用服务 ID 代替名称。'¶
- 异常 heat.common.exception.MissingCredentialError(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '缺少必需的凭证: %(required)s'¶
- 异常 heat.common.exception.NotAuthenticated(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '您 未 进行身份验证。'¶
- 异常 heat.common.exception.NotAuthorized(action='此操作')[source]¶
基类:
Forbidden- msg_fmt = '您 无权 完成此操作。'¶
- 异常 heat.common.exception.NotFound(msg_fmt='未找到')[source]¶
基类:
HeatException
- 异常 heat.common.exception.NotSupported(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(feature)s 不受支持。'¶
- 异常 heat.common.exception.ObjectActionError(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '对象操作 %(action)s 失败,因为: %(reason)s'¶
- 异常 heat.common.exception.ObjectFieldInvalid(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(objname)s 的字段 %(field)s 不是 Field 的实例。'¶
- 异常 heat.common.exception.OrphanedObjectError(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '无法在孤立的 %(objtype)s 对象上调用 %(method)s'¶
- 异常 heat.common.exception.PhysicalResourceExists(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '物理资源 (%(name)s) 存在。'¶
- 异常 heat.common.exception.PhysicalResourceIDAmbiguity(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '发现多个资源具有相同的物理 ID (%(phys_id)s)。'¶
- 异常 heat.common.exception.PhysicalResourceNameAmbiguity(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '发现多个物理资源具有名称 (%(name)s)。'¶
- 异常 heat.common.exception.PropertyUnspecifiedError(*args, **kwargs)[source]¶
基类:
HeatException- msg_fmt = '必须指定以下属性中的至少一个: %(props)s。'¶
- 异常 heat.common.exception.ReadOnlyFieldError(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '无法修改只读字段 %(field)s'¶
- 异常 heat.common.exception.RequestLimitExceeded(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '请求限制已超出: %(message)s'¶
- 异常 heat.common.exception.ResourceActionNotSupported(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(action)s 不受 资源 支持。'¶
- 异常 heat.common.exception.ResourceActionRestricted(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(action)s 受 资源 限制。'¶
- 异常 heat.common.exception.ResourceInError(status_reason='Unknown', **kwargs)[source]¶
基类:
HeatException- msg_fmt = '变为 状态 %(resource_status)s 由于 "%(status_reason)s"'¶
- 异常 heat.common.exception.ResourceNotAvailable(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '资源 (%(resource_name)s) 不可用。'¶
- 异常 heat.common.exception.ResourceNotFound(entity=None, name=None, **kwargs)[source]¶
基类:
EntityNotFound- msg_fmt = '资源 (%(resource_name)s) 在 堆栈 %(stack_name)s 中 未找到。'¶
- 异常 heat.common.exception.ResourcePropertyConflict(*args, **kwargs)[source]¶
基类:
HeatException- msg_fmt = '不能 同时 定义 以下 属性: %(props)s。'¶
- 异常 heat.common.exception.ResourcePropertyDependency(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(prop1)s 属性 不能 在没有 %(prop2)s 的情况下 指定。'¶
- 异常 heat.common.exception.ResourcePropertyValueDependency(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(prop1)s 属性 应仅 为 具有 值 %(value)s 的 %(prop2)s 指定。'¶
基类:
HeatException
- 异常 heat.common.exception.ResourceUnknownStatus(result='资源 失败', status_reason='Unknown', **kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(result)s - 未知 状态 %(resource_status)s 由于 "%(status_reason)s"'¶
- 异常 heat.common.exception.SIGHUPInterrupt(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '系统 收到 SIGHUP 信号。'¶
- 异常 heat.common.exception.SnapshotNotFound(entity=None, name=None, **kwargs)[source]¶
基类:
EntityNotFound- msg_fmt = '堆栈 (%(stack)s) 的 快照 (%(snapshot)s) 未找到。'¶
- 异常 heat.common.exception.StackExists(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '堆栈 (%(stack_name)s) 已存在。'¶
- 异常 heat.common.exception.StackResourceLimitExceeded(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '堆栈 资源 数量 已超过 限制。'¶
- 异常 heat.common.exception.StackValidationFailed(error=None, path=None, message=None, resource=None)[source]¶
- 异常 heat.common.exception.StopActionFailed(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '停止 堆栈 (%(stack_name)s) 在 其他 引擎 (%(engine_id)s) 上 失败'¶
- 异常 heat.common.exception.TemplateOutputError(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '%(resource)s 输出 %(attribute)s 中的 错误: %(message)s'¶
- 异常 heat.common.exception.UnableToAutoAllocateNetwork(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '无法 自动 分配 网络: %(message)s'¶
- 异常 heat.common.exception.UnknownUserParameter(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '模板中 未 定义 参数 (%(key)s)'¶
- 异常 heat.common.exception.UnsupportedObjectError(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '不支持的对象类型 %(objtype)s'¶
- 异常 heat.common.exception.UpdateReplace(resource_name='Unknown')[source]¶
基础:
Exception当资源更新需要替换时引发。
- 异常 heat.common.exception.UserParameterMissing(**kwargs)[source]¶
基类:
HeatException- msg_fmt = '未 提供 参数 (%(key)s)'¶