A:
• 现象:
报错如下:
"org.zstack.vmware.APIAddVCenterMsg": {
"domainName": "192.168.0.16",
"name": "VC",
"username": "administrator@vsphere.local",
"password": "******",
"https": "true",
"zoneUuid": "631998da879f4b63b484876138c87a6a",
"session": {
"uuid": "5cec7c53f71344858a30186dd0d8280a",
"callid": "api-mMa45Vw7"
}
}
}{
"success": false,
"apiId": "476e659189ef4097b98dcf0ed4adc51c",
"headers": {
"api-id": "476e659189ef4097b98dcf0ed4adc51c",
"schema": {}
},
"session": {
"callid": "api-mMa45Vw7",
"uuid": "5cec7c53f71344858a30186dd0d8280a"
},
"error": {
"code": "SYS.1006",
"description": "An operation failed",
"details": "No dvSwitch found",
"$$hashKey": "object:672"
},
"createdTime": 1496300098050,
"type": {
"_name": "key.event.API.API_EVENT"
},
"id": "872c5d4ab75e4fd88a69bec0f90b41fe"
}
• 原因及解决方案:
vCenter环境需要先创建分布式交换机:VC CLUSTER HOST dvswitch。如果需要ZStack来
接管vCenter,vCenter必须能先创建dvSwitch;ZStack创建云路由网络也基于dvSwitch。