更新时间:2022-01-25 GMT+08:00

错误码说明 v2

背景信息

  • 接口返回的错误码与Error Message不具有一一对应关系,表中只是列出比较常见的一种或几种Error Message。
  • 本服务接口以异步接口居多,有的错误码是在查询任务的返回体中体现的,http状态码有可能不是很准确。
  • 本服务对网络、存储等服务具有强依赖性,Error Message显示依赖服务的错误消息时,处理措施需要联系技术支持。

错误码说明

表1 错误码说明 v2

模块

http状态码

错误码

错误说明

Error Message

处理措施

公共

400

NAT.0001

时间戳不合法

Invalid value for created_at %(timestamp)s.

请检查输入的时间格式是否正确。

400

NAT.0002

请求参数不合法

Invalid parameters.

请检查输入的参数是否正确。

404

NAT.0004

Router不存在

The router %(router_id)s does not exist.

路由器不存在,请检查输入的路由器是否正确。

404

NAT.0005

Network不存在

Network %(network_id)s does not exist.

子网不存在,请输入合法的子网。

400

NAT.0006

规则还没有被删除

Rule has not been deleted.

请先排查一下是否有规则未删除导致删除网关失败。

400

NAT.0007

数据库异常

DB Error

请联系技术支持。

400

NAT.0008

子网没有连接到虚拟路由器

Router %(router)s has no port for subnet %(subnet)s.

请将子网添加到路由器接口。

400

NAT.0009

资源被占用

Resource %(res_type)s %(res)s is used by %(user_type)s %(user)s

请先排查一下该资源是否已被使用。

400

NAT.0010

Network下没有Subnet

Network %(network)s does not contain any IPv4 subnet

请先排查一下该network下是否添加subnet。

400

NAT.0012

Network已创建nat网关

The network %(network)s already has nat gateway.

请选择一个未创建nat网关的子网。

404

NAT.0013

NAT网关没有找到

Router %(router)s for the specified NAT gateway could not be found.

NAT网关没有找到。

400

NAT.0014

参数description描述字符超过255个

Invalid input for description.+exceeds maximum length of 255.

请检查参数description描述字符个数。

400

NAT.0015

参数name字符超过255个

Invalid input for name.+exceeds maximum length of 255.

请检查参数name描述字符个数。

400

NAT.0016

参数spec不在(1,2,3,4)其中之一

Invalid input for spec. Reason: '*' is not in ['1', '2', '3', '4'].

请检查参数spec的值是否在(1,2,3,4)其中之一。

400

NAT.0017

router_id不是合法的UUID

Invalid input for router_id. Reason: '********-****-****-****-*************' is not a valid UUID.

请检查输入的router_id是否正确。

400

NAT.0018

internal_network_id不是合法的UUID

Invalid input for internal_network_id. Reason: ‘********-****-****-****-*************' is not a valid UUID.

请检查输入的internal_network_id是否正确。

404

NAT.0019

network_id不存在

Network ********-****-****-****-************* could not be found.

请检查输入的internal_network_id是否存在。

404

NAT.0020

tenant_id为空或不存在

Specifying 'tenant_id' other than authenticated tenant in request requires admin privileges

请检查输入的tenant_id是否存在。

404

NAT.0021

Nat_gateway_id为空或不存在

Invalid input for nat_gateway_id. Reason: '********-****-****-****-*************'is not a valid UUID.

请检查输入的nat_gateway_id是否存在。

400

NAT.0022

Snat规则cidr和network冲突

Either network_id or cidr must be specified. Both can not be specified at the same time

请选择network_id和cidr两个输入一个即可。

404

NAT.0023

Port_id不存在

Port '********-****-****-****-*************' could not be found.

请检查输入的port_id是否存在。

404

NAT.0024

Floating_ip_id不存在、为空或者非法

Invalid input for floating_ip_id. Reason: '********-****-****-****-*************'is not a valid UUID.

请检查输入的floating_ip_id是否存在。

401

NAT.0025

Token过期

Token is expired.

请检查输入的token是否在有效期。

400

NAT.0026

Floating_ip_id不存在

Floating IP ********-****-****-****-************* could not be found.

请检查输入的floating_ip_id是否存在。

NatGateway

400

NAT.0101

Nat网关请求错误

Lack of user authority.

//request is null.

//endpoint is empty.

// resource type is invalid. //create natgateway requset is null. //update natgateway request is null

请根据错误提示排查一下错误原因或联系技术支持。

400

NAT.0102

系统繁忙,请稍后再试

The system is busy. Please try again later.

系统繁忙,请稍后再试。

400

NAT.0101

Nat网关参数错误

Request is invalid. //NatGateway id unvalid.

// the enterprise project id is unsupported.

// the enterprise project id in request is invalid. //parameter is null.

// tags is invalid.

// get natgateways error limit is invalid.

//get natgateways error marker is invalid.

//Only admin user can do this action. //Parameters are invalid, check them and try.

请确认输入的参数是否正确或联系技术支持。

400

NAT.0103

Nat网关未处于激活状态

NatGateway %(nat_gateway_id)s is not ACTIVE.

请确认网关状态,如果长时间处于非“运行”状态,请联系技术支持。

400

NAT.0104

Nat网关未处于UP状态

NatGateway %(nat_gateway_id)s is not UP.

请确认网关状态,网关可能因为欠费等原因被冻结。

400

NAT.0104

Nat网关处于冻结状态

NatGateway %(nat_gateway_id)s is frozen.can not update

请确认网关状态,网关可能因为欠费等原因被冻结,不允许进行更新操作。

400/404

NAT.0105

Nat网关不存在(http状态码400对应的是删除网关时网关不存在,404对应创建、查询时网关不存在)

NatGateway %(nat_gateway_id)s does not exist.

请检查该nat_gateway_id是否存在。

400

NAT.0106

Nat网关并发操作冲突

Concurrent conflict requests found

请联系技术支持。

400

NAT.0107

Nat网关内部端口创建失败

Create NG Port failed.

NAT网关内部错误,请联系技术支持。

400

NAT.0108

Nat网关内部端口未绑定

NG Port %(port)s is unbound.

NAT网关内部错误,请联系技术支持。

400

NAT.0109

Nat网关不支持IPv6

NatGateway does not support IPv6.

NAT网关不支持绑定IPv6类型的弹性公网IP。

400

NAT.0110

选择网关节点错误

Get Nat gateway host failed

请联系技术支持。

400

NAT.0111

获取网关节点的IP错误

Get Nat gateway agent local_ip failed

请联系技术支持。

400

NAT.0112

获取VPC路由表错误

Get RouteTable %(router_id)s failed.

请联系技术支持。

400

NAT.0113

NAT网关数目超出规格

%(limit)s NAT gateways has been created to this VPC, no more is allowed

请选择其他vpc创建nat网关或者删除该vpc下已创建的nat网关。

SnatRule

400

NAT.0201

Snat规则参数错误

Endpoint is null or empty. //Endpoint is Invalid.

//Request is null. //natGatewayId is invalid. //SnatRule id unvalid. //NatGatewayId is unvalid.

//Invalid value for public ip id.

//Endpoint is null.

//request is null.

//Query SnatRules list error marker is invalid.

请确认输入的参数是否正确或联系技术支持。

400

NAT.0202

Snat规则cidr和network冲突

Either network_id or cidr must be specified.Both can not be specified at the same time

请配置SNAT规则时不要同时指定Cidr和Network_id字段。

400

NAT.0203

Snat规则cidr不合法

cidr is invalid, make sure it's format is correct.

请输入合法的CIDR,例如192.168.0.0/24。

400

NAT.0204

Snat规则类型不合法

source_type and network_id is incompatible.

如果为VPC配置SNAT规则,Source_Type可不携带,如果携带,必须为0;

如果为专线侧配置SNAT规则,Source_type必须为1。

400

NAT.0205

VPC侧snat规则中的cidr必须是子网网段的子集

cidr must be a subset of subnet's cidr.

如果为VPC配置SNAT规则,CIDR必须是子网的子集。例如:子网为192.168.0.0/24,CIDR可填写192.168.0.0/25。

400

NAT.0206

Snat规则cidr与子网网段冲突

cidr conflicts with subnet's cidr.

如果为专线配置SNAT规则,CIDR不能与VPC的子网冲突。

400

NAT.0207

Snat网段冲突

cidr in the request conflicts with cidrs of existing rules.

请输入与现有SNAT规则不冲突的CIDR。

400

NAT.0208

规则已存在

Snat rule for network %(network)s exists.

请选择一个未配置SNAT规则的子网。

404

NAT.0209

snat规则不存在

No Snat Rule exist with id %(id)s

请检查snat规则的id是否存在。

400

NAT.0210

Snat规则的公网地址的ID不是合法的UUID

Invalid input for floating_ip_id. Reason: \'%(fip)s\' is not a valid UUID.

请输入合法的UUID。

400

NAT.0210

Snat规则的公网地址的ID不可以是空串

Invalid value for public ip id.

请输入合法的UUID。

400

NAT.0211

关联到SNAT规则的EIP个数超过上限

%(limit)s EIP has been associated to this SNAT rules's EIP pool, no more is allowed.

SNAT规则支持的弹性公网IP已经超过上限。具体限制请参考NAT网关接口。

400

NAT.0212

SNAT规则绑定或解绑FIP失败

SNAT Rule %(rule)s Associated or disassociate EIP %(fip)s Failed."

SNAT规则绑定或解绑FIP失败。

DnatRule

400

NAT.0301

Dnat规则参数错误

get dnatRules error limit is invalid.

//get dnatrules error marker is invalid.

//endpoint is empty.

//DnatRule id unvalid.

//VPC ID is invalid.

//Request is null.

//DnatRule id invalid.

//internal_service_port_range' out of range(1-65535).

//internal_service_port_range': invalid format.

//internal_service_port_range': param is null.

//'internal_service_port_range' and 'external_service_port_range' must be equal.

//for non-all port rule,the portocol can not be any

//param nat_gateway_id is null in request body

//param floating_ip_id is null in request body

//param xxxxxxx is null in request body

请确认输入的参数是否正确或联系技术支持。

400

NAT.0302

Dnat规则协议不合法

Dnat rule protocol %(protocol)s not supported.Only protocol values %(values)s and integer representations [6, 17, 0] are supported.

请配置合法的协议,范围在[6, 17, 0]中,对应TCP、UDP、ANY。

400

NAT.0303

Dnat规则端口不合法

Invalid value for port %(port)s

请配置合法的内网端口和外网端口,范围0-65535。

400

NAT.0304

Dnat规则内网信息冲突

The port_id, private_ip, internal port and protocol spcified have been occupied.

请输入与现有DNAT规则不冲突的虚拟机Port ID或私网地址及私网端口。

400

NAT.0305

Dnat规则外网信息冲突

The floating ip, external port and protocol specified have been occupied.

请输入与现有DNAT规则不冲突的浮动IP的ID、外网端口、协议。

400

NAT.0306

Dnat规则AllPort类型请求信息错误

The external port equals 0 and internal port equls 0 and protocol equals any must satisfied at the same time.

私网端口和外网端口都为0及协议为any必须同时配置才生效。

400

NAT.0307

Dnat规则中port_id与已有Dnat规则冲突

The port_id already existing dnat allport rules or dnat_rules, can no longer create dnat rules or dnat allport rules.

虚拟机Port ID与已有dnat规则冲突,请更换虚拟机Port ID创建或更新dnat规则。

400

NAT.0308

Dnat规则中私网IP与已有Dnat规则冲突

The private_ip already existing dnat allport rules or dnat rules, can no longer create dnat rules or dnat allport rules.

私网地址与已有dnat规则冲突,请更换私网地址创建或更新dnat规则。

400

NAT.0318

DNAT规则被冻结,无法更新

DNAT rule is frozen, can no longer update.

请检查dnat规则绑定的floating_ip是否处于欠费状态或用户账户是否处于欠费状态。

400

NAT.0309

Dnat规则条数超出规格

%(limit)s DNAT rules has been associated to this NAT Gateway, no more is allowed

同一nat网关的Dnat规则条数超出上限。

400

NAT.0317

Dnat规则存在互斥参数

The port_id and private_ip exist at the same time and value is not empty, but at least one value is empty.

虚拟机Port ID和私网地址不能同时配置,请确认配置。

400

NAT.0310

Dnat规则缺少参数

The port_id and private_ip values are both empty, at least one value is not empty.

虚拟机Port ID和私网地址都没有配置,请确认配置。

400

NAT.0311

Dnat规则私网IP不合法

The private ip address is not legal.

请配置合法的私网地址。

400

NAT.0312

不支持虚拟IP地址

The virtual IP address is not supported.

私网地址不支持配置为虚拟IP地址,请配置合法的私网地址。

400

NAT.0313

Dnat规则条数超出规格

%(limit)s DNAT rules has been associated to this Floating IP, no more is allowed

绑定同一浮动IP的Dnat规则条数超出上限。

400

NAT.0314

批量创建Dnat规则条数超出规格

batch create dnat rules max limit: %(limit)s

批量创建Dnat规则条数超出上限。

400

NAT.0315

Dnat规则虚拟机Port ID不合法

Port %(port)s is not a valid port.

请配置合法的虚拟机Port ID。

400

NAT.0316

VtepIp参数不能为空

Vtep_ip is Null.

请删除重建dnat规则或联系技术支持。

404

NAT.0319

dnat规则不存在

No Dnat Rule exist with id %(id)s

dnat规则不存在。

EIP

400

NAT.0401

EIP处于冻结状态

Floating Ip %(fip)s is freezed.

请重新选择未被冻结的弹性公网IP地址。

400

NAT.0402

EIP关联限制(已关联到另一个端口)

Floating Ip %(fip)s has associated with port %(port)s.

请选择未绑定到其他对象的弹性公网IP地址,例如弹性公网IP地址绑定到了ECS,则不能再绑定到NAT网关。

400

NAT.0403

公网IP已被Snat规则占用,请重新绑定

There is a duplicate EIP %(fips)s in SNAT rule.

该弹性公网IP已被SNAT规则绑定,请重新绑定其他弹性公网IP。

400

NAT.0404

EIP关联限制(已关联到另一个Nat网关实例)

Floating Ip %(fip)s has used by nat gateway %(nat_gateway)s.

弹性公网IP已经绑定到其他NAT网关,请重新选择。

400

NAT.0405

EIP已被占用

Floating Ip %(fip)s has been occupied.

弹性公网IP已经绑定到其他NAT网关,请重新选择。

400

NAT.0408

EIP关联限制(不能同时关联dnat和dnat all port)

Floating Ip %(fip)s can not be associated with both DNAT rule and DNAT all port rule.

弹性公网IP不能同时绑定到Dnat和Dnat all port规则。

400

NAT.0409

公网IP关联限制(snat和dnat all port 不能共用)

Floating Ip %(fip)s can not be associated with both SNAT rule and DNAT all port rule.

snat和dnat all port 不能共用一条弹性公网IP。

400

NAT.0407

EIP关联限制(已关联到另一条规则)

Floating Ip %(fip)s is used by other rules

弹性公网IP被其他规则使用。