[HCS]DAYU下发集群失败:init脚本报错
1、由于部分局点安装的时候跳过了预置数据步骤,导致下发集群 初始化脚本报错
2、报错信息:报错信息具有较大迷惑性,往往是python异常,例如 '>=' not supported between instances of 'tuple' and 'int', KeyError: 'resources' 等
这种情况一下一般是由于ECF的数据库初始化没有在rds_resspec表中添加SATA、SAS、SSD三种磁盘的信息。可以通过执行
SELECT * FROM rds_resspec WHERE id IN ("8d9270c9-691b-490e-905f-14db7c261e58","6a0882d8-0210-42bf-bd0a-2dc391bba083","0f8c45f7-49df-4d4a-96f7-fdba1aeaa80c");
如果没有查询到值的话则执行:
INSERT INTO `rds_resspec` (`id`, `addedCodeInBill`, `comment`,`disabled`,`regionCode`,`resTypeCode`,`specCode`,`bssProductId`,`instanceType`) VALUES
('8d9270c9-691b-490e-905f-14db7c261e58', 'OTC_DWS_SATA', 'Disk Type:COMMON ,', '0', 'eu-de', 'hws.resource.type.dws.volume', 'dws.volume.commom', '{"onHour": "c010c7869f8f47e7851143a734faa701","onMonth": "79a89226905f473e83b1946c07d20ff6","onYear": "034179fd170b4820a39279fa4abefbf4"}', 'master'),
('6a0882d8-0210-42bf-bd0a-2dc391bba083', 'OTC_DWS_SAS', 'Disk Type:HIGH ,', '0', 'eu-de', 'hws.resource.type.dws.volume', 'dws.volume.high', '{"onHour": "c010c7869f8f47e7851143a734faa701","onMonth": "79a89226905f473e83b1946c07d20ff6","onYear": "034179fd170b4820a39279fa4abefbf4"}', 'master'),
('0f8c45f7-49df-4d4a-96f7-fdba1aeaa80c', 'OTC_DWS_SSD', 'Disk Type:ULTRAHIGH ,', '0', 'eu-de', 'hws.resource.type.dws.volume', 'dws.volume.ultrahigh', '{"onHour": "c010c7869f8f47e7851143a734faa701","onMonth": "79a89226905f473e83b1946c07d20ff6","onYear": "034179fd170b4820a39279fa4abefbf4"}', 'master')
- 点赞
- 收藏
- 关注作者
评论(0)