CloudStack多管理节点设置。使用HAProxy实现负载均衡。
由于内存不足,只创建三个虚拟机用以实现CloudStack环境搭建。
两个管理节点
192.168.199.91 manager1
192.168.199.92 manager2
一个计算节点
192.168.199.93 agent
一个HAProxy节点
192.168.199.90 haproxy
MySQL数据库设置在agent节点
CloudStack官方建议 设置负载均衡转发的端口。
源端口 | 目标端口 | 协议类型 | 持久保持 |
---|---|---|---|
80/443 | 8080 | HTTP | 是 |
8250 | 8250 | TCP | 是 |
8096 | 8096 | HTTP | 否 |
如果不使用HAProxy对管理节点做负载均衡。
直接使用管理节点IP。。。管理节点设置完毕
192.168.199.91 192.168.199.92 都可以访问UI界面。
全局设置 host=192.168.199.91,192.168.199.92
192.168.199.92 IP 登录UI 创建资源域
资源域无法创建,会报错
Failed to add data store: Failed to create storage pool as it is not accessible to hosts.
两个管理节点的日志文件报错如下
192.168.199.91
2020-07-16 10:47:25,886 DEBUG [o.a.c.c.p.RootCACustomTrustManager] (pool-27-thread-1:null) (logid:) A client/agent attempting connection from address=192.168.199.92 has presented these certificate(s):
Certificate [1] :
Serial: 778ff50524209e6d
Not Before:Wed Jul 15 22:36:45 CST 2020
Not After:Sat Jul 09 10:36:45 CST 2050
Signature Algorithm:SHA256withRSA
Version:3
Subject DN:CN=manager2
Issuer DN:CN=ca.cloudstack.apache.org
Alternative Names:[[2, manager2]]
Certificate [2] :
Serial: 73a8f04f8a7ad2ef
Not Before:Wed Jul 15 22:35:13 CST 2020
Not After:Sat Jul 09 10:35:13 CST 2050
Signature Algorithm:SHA256withRSA
Version:3
Subject DN:CN=ca.cloudstack.apache.org
Issuer DN:CN=ca.cloudstack.apache.org
Alternative Names:null
2020-07-16 10:47:25,889 ERROR [o.a.c.c.p.RootCACustomTrustManager] (pool-27-thread-1:null) (logid:) Certificate ownership verification failed for client: 192.168.199.92
2020-07-16 10:47:25,892 ERROR [c.c.u.n.Link] (AgentManager-SSLHandshakeHandler-1:null) (logid:) SSL error caught during wrap data: General SSLEngine problem, for local address=/192.168.199.91:8250, remote address=/192.168.199.92:34646.
192.168.199.92
2020-07-16 10:48:10,640 ERROR [c.c.u.n.Link] (StatsCollector-5:ctx-b39a4359) (logid:27c99646) SSL error caught during unwrap data: Received fatal alert: certificate_unknown, for local address=/192.168.199.92:34656, remote address=